aparcar / openwrt

Staging tree of Paul Spooren
Other
8 stars 1 forks source link

FS#1176 - thermal thermal_zone0: failed to read out thermal zone (-110) #1034

Open aparcar opened 6 years ago

aparcar commented 6 years ago

t0mtaylor:

Supply the following if possible:

Error regarding thermal within kernel log: 56757.023342] thermal thermal_zone0: failed to read out thermal zone (-110)

Appears this issue had a patch supplied in 2015? https://patchwork.kernel.org/patch/5978221/

On Tue, Mar 10, 2015 at 04:06:46PM +0100, Hans de Goede wrote:

Some temperature sensors only get updated every few seconds and while waiting for the first irq reporting a (new) temperature to happen there get_temp operand will return -EAGAIN as it does not have any data to report yet.

Not logging an error in this case avoids messages like these from showing up in dmesg on affected systems:

[ 1.219353] thermal thermal_zone0: failed to read out thermal zone 0 [ 2.015433] thermal thermal_zone0: failed to read out thermal zone 0 [ 2.416737] thermal thermal_zone0: failed to read out thermal zone 0

Signed-off-by: Hans de Goede hdegoede@redhat.com

aparcar commented 6 years ago

yousong:

Several days ago when trying out archlinuxarm on qemu cubieboard (a sunxi board), I encountered the same error. It's expected because maybe the feature was just not emulated, but I can disable it by tinkering with sysfs settings. Hope this helps for now

echo disabled >/sys/class/thermal/thermal_zone0/mode

As for the patch you referred to, it's not relevant here. v2 of it was already in mainline since v4.0. Errno -100 is ETIMEDOUT, not EAGAIN.

In case anyone is also interested in the archlinuxarm on qemu cubieboard experience, here is the link: https://github.com/yousong/gists/blob/master/qemu/cubieboard/qemu-cb