hello:
We found that CPU temperature was too high when running imx8 with high performance,and too high temperature will cause crash.So we need to reduce the CPU frequency when the CPU temperature is too high.
and we refer to this article:
System Controller Firmware 101 - Miscellaneous service
change as fllow:
board_system_config(...)
{
...
int16_t celsius; int8_t tenths; sc_misc_get_temp(ipc, SC_R_A53, SC_MISC_TEMP, &celsius, &tenths);
...
}
and it doesn't work,please tell me the way to solve this problem,thank u!
Hi wuguangnan110
for using this article it is necessary to use SCFW Porting Kit
Please also check processor revision, as old may not work with latest linux
releases described on i.MX Software and Development Tools | NXP
Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Hi igorpadykov :
I'm sorry
system version:Android P9.0.0_2.1.0_AUTO (4.14.98 kernel)
scfw version:L4.14.98_2.0.0_SCFWKIT-1.2
check also "&thermal_zones" in
fsl-imx8qxp-mek.dtsi\freescale\dts\boot\arm64\arch - linux-imx - i.MX Linux kernel
thermal driver imx_sc_thermal.c\thermal\drivers - linux-imx - i.MX Linux kernel
Best regards
igor
thank you!
I find thermal driver in android system, I can get the temperature from it,like "cat /sys/class/thermal/thermal_zone0/temp".
but I can't find the way to control cpu freq,is there have Temperature control strategy in imx8qm?
one can check sect.2.9 Thermal Linux Manual included in
Linux 4.19.35_1.1.0 Documentation
Best regards
igor