aw_thermal breakage on Allwinner H3 SoC
Milan Obuch
freebsd-arm at dino.sk
Mon Oct 24 15:03:32 UTC 2016
Hi,
today I svnup'ped sources for 12-CURRENT I use to test on Orange Pi One
to svn revision 307846 and there was no aw_thermal device anymore.
After some fiddling I found reason is in aw_sid.c, namely in function
aw_sid_read_tscalib. I managed to get it working, somehow, giving the
patch in attachment. This way "sun8i-h3-sid" is defined and attaches,
which in turn makes aw_thermal attached and working, a bit.
Almost identical patch, without the last chunk was necessary in past,
but now behavior changed a bit - namely, sysctl dev.aw_thermal.0.cpu
shows 99C right after start, now, running for almost six hours idle,
100C. This is surely wrong. SoC is not that hot given I can put my
finger on it without risk of being immediatelly burned. Before this
change it showed some 49 degrees right after power on and rises slowly
up to 60 - 63 degrees. This values were not correct, too, temperature
is maybe 45 degrees or so according to my finger integrated
thermometer :)
Did anybody test this on H3 based board? If yes, is there anything
special to be put into FDT definition file?
Has anybody a clue what's going on? If someone has an idea what to
check, I am ready to check it, but currently have not much experience
with sensors in SoC.
Regards,
Milan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: aw_sid.c.diff
Type: text/x-patch
Size: 1134 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-arm/attachments/20161024/666d0660/attachment.bin>
More information about the freebsd-arm
mailing list