Hi,

Not sure if this is the right place to report this, but since we
noticed it via an update to
the meta-ti layer, I thought I'd start here.

We noticed that reading the bandgap temperature sensors stopped working when
the ti kernel was updated to 5.4.52 with this commit:

    $ git log -1 346017b313e7c2a376724f71c1b2559fbdc221da
    commit 346017b313e7c2a376724f71c1b2559fbdc221da (refs/bisect/bad)
    Author: Denys Dmytriyenko <[email protected]>
    Date:   Fri Jul 31 00:27:08 2020 +0000

        linux-ti-staging: update to 5.4.52

        Signed-off-by: Denys Dmytriyenko <[email protected]>

After that change, we see this output:

    # cat /sys/class/thermal/thermal_zone*/type
    cpu_thermal
    gpu_thermal
    core_thermal
    dspeve_thermal
    iva_thermal
    board_thermal
    bq27000-battery
    # cat /sys/class/thermal/thermal_zone*/temp
    cat: /sys/class/thermal/thermal_zone0/temp: Invalid argument
    cat: /sys/class/thermal/thermal_zone1/temp: Invalid argument
    cat: /sys/class/thermal/thermal_zone2/temp: Invalid argument
    cat: /sys/class/thermal/thermal_zone3/temp: Invalid argument
    cat: /sys/class/thermal/thermal_zone4/temp: Invalid argument
    30187
    cat: /sys/class/thermal/thermal_zone6/temp: No such device

After a little bit of digging, it looks like this commit in the main
line stable kernel
causes the breakage:

    
https://git.ti.com/cgit/ti-linux-kernel/ti-linux-kernel/commit/?h=ti-linux-5.4.y&id=ea78361174c4746e8df8e6fdc0ec1dc710a6869d

After reverting that commit and adding the reverted commit as a patch to our
bbappend for the kernel, we're seeing the expected results:

    # cat /sys/class/thermal/thermal_zone*/temp
    47400
    48200
    47800
    46200
    47800
    39937
    cat: /sys/class/thermal/thermal_zone6/temp: No such device

We are seeing this using a BeagleBone X15 board. Our MACHINE config
is based on conf/machine/include/dra7xx.inc.

    # uname -a
    Linux viper-x15 5.4.58-gda26e63e96 #1 SMP PREEMPT Tue Aug 18
18:29:57 UTC 2020 armv7l armv7l armv7l GNU/Linux
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#13093): 
https://lists.yoctoproject.org/g/meta-ti/message/13093
Mute This Topic: https://lists.yoctoproject.org/mt/76387435/21656
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/meta-ti/unsub  
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to