[Bug 256628] Allwinner aw_thermal error

From: <bugzilla-noreply_at_freebsd.org>
Date: Tue, 15 Jun 2021 19:53:05 UTC

            Bug ID: 256628
           Summary: Allwinner aw_thermal error
           Product: Base System
           Version: CURRENT
          Hardware: arm64
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: arm
          Assignee: freebsd-arm@FreeBSD.org
          Reporter: freebsd@justmail.de

aw_thermal seems not to attach properly on my NanoPI NEO2:

root@bsd-neopi:~ # dmesg | grep therm 
aw_thermal0: <Allwinner Thermal Sensor Controller> mem 0x1c25000-0x1c250ff irq
4 on simplebus0
aw_thermal0: Cannot read THS efuse
device_attach: aw_thermal0 attach returned 6
interface aw_thermal.1 already present in the KLD 'kernel'!
root@bsd-neopi:~ # sysctl -n dev.aw_thermal.0.cpu
sysctl: unknown oid 'dev.aw_thermal.0.cpu'
root@bsd-neopi:~ # uname -UKa
FreeBSD bsd-neopi 14.0-CURRENT FreeBSD 14.0-CURRENT #0
main-n247356-715df83abc0: Mon Jun 14 21:20:51 CEST 2021    
arm64 1400023 1400023

I do only have another productive node running an old 13-CURRENT where the
driver attaches:
root@nanopi-bsd:~ # cat /var/log/messages | grep therm
Feb 15 11:36:30 nanopi-bsd kernel: aw_thermal0: <Allwinner Thermal Sensor
Controller> mem 0x1c25000-0x1c250ff irq 4 on simplebus0
root@nanopi-bsd:~ # uname -aUK
FreeBSD nanopi-bsd 13.0-CURRENT FreeBSD 13.0-CURRENT efa57a39e85(master)
GENERIC-NODEBUG  arm64 1300021 1300021
root@nanopi-bsd:~ # sysctl dev.aw_thermal.0
dev.aw_thermal.0.gpu: 42C
dev.aw_thermal.0.cpu: 38C
dev.aw_thermal.0.%parent: simplebus0
dev.aw_thermal.0.%pnpinfo: name=thermal_sensor@1c25000
dev.aw_thermal.0.%driver: aw_thermal
dev.aw_thermal.0.%desc: Allwinner Thermal Sensor Controller

You are receiving this mail because:
You are the assignee for the bug.