[Bug 256628] Allwinner aw_thermal error

From: <bugzilla-noreply_at_freebsd.org>
Date: Tue, 15 Jun 2021 19:53:05 +0000
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=256628

            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_at_FreeBSD.org
          Reporter: freebsd_at_justmail.de

aw_thermal seems not to attach properly on my NanoPI NEO2:

root_at_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_at_bsd-neopi:~ # sysctl -n dev.aw_thermal.0.cpu
sysctl: unknown oid 'dev.aw_thermal.0.cpu'
root_at_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    
root_at_freebsd-current-vm:/usr/obj/usr/src/arm64.aarch64/sys/GENERIC-NODEBUG 
arm64 1400023 1400023

I do only have another productive node running an old 13-CURRENT where the
driver attaches:
root_at_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_at_nanopi-bsd:~ # uname -aUK
FreeBSD nanopi-bsd 13.0-CURRENT FreeBSD 13.0-CURRENT efa57a39e85(master)
GENERIC-NODEBUG  arm64 1300021 1300021
root_at_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_at_1c25000
compat=allwinner,sun50i-h5-ths
dev.aw_thermal.0.%location: 
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.
Received on Tue Jun 15 2021 - 19:53:05 UTC

Original text of this message