[Letux-kernel] thermal madness

H. Nikolaus Schaller hns at goldelico.com
Sat Sep 14 12:44:20 CEST 2019


For comparison OMAP5/Pyra (OMAP5 has several temperature zones and
I think the first one is the cpu).

root at letux:~# cpufreq-info 
cpufrequtils 008: cpufreq-info (C) Dominik Brodowski 2004-2009
Report errors and bugs to cpufreq at vger.kernel.org, please.
analyzing CPU 0:
  driver: cpufreq-dt
  CPUs which run at the same hardware frequency: 0 1
  CPUs which need to have their frequency coordinated by software: 0 1
  maximum transition latency: 360 us.
  hardware limits: 250 MHz - 1000 MHz
  available frequency steps: 250 MHz, 500 MHz, 750 MHz, 1000 MHz
  available cpufreq governors: conservative, userspace, powersave, ondemand, performance
  current policy: frequency should be within 250 MHz and 1000 MHz.
                  The governor "ondemand" may decide which speed to use
                  within this range.
  current CPU frequency is 750 MHz (asserted by call to hardware).
  cpufreq stats: 250 MHz:60.95%, 500 MHz:22.51%, 750 MHz:8.16%, 1000 MHz:8.38%  (19512)
analyzing CPU 1:
  driver: cpufreq-dt
  CPUs which run at the same hardware frequency: 0 1
  CPUs which need to have their frequency coordinated by software: 0 1
  maximum transition latency: 360 us.
  hardware limits: 250 MHz - 1000 MHz
  available frequency steps: 250 MHz, 500 MHz, 750 MHz, 1000 MHz
  available cpufreq governors: conservative, userspace, powersave, ondemand, performance
  current policy: frequency should be within 250 MHz and 1000 MHz.
                  The governor "ondemand" may decide which speed to use
                  within this range.
  current CPU frequency is 750 MHz (asserted by call to hardware).
  cpufreq stats: 250 MHz:60.95%, 500 MHz:22.51%, 750 MHz:8.16%, 1000 MHz:8.38%  (19512)
root at letux:~# cat /sys/devices/virtual/thermal/thermal_zone0/temp 
48264
root at letux:~# cat /sys/devices/virtual/thermal/thermal_zone0/temp 
48264
root at letux:~# cat /sys/devices/virtual/thermal/thermal_zone0/temp 
47412
root at letux:~# cat /sys/devices/virtual/thermal/thermal_zone0/temp 
47412
root at letux:~# cat /sys/devices/virtual/thermal/thermal_zone0/temp 
47412
root at letux:~# ./temperatures 
Sat Sep 14 10:40:48 UTC 2019 47° 48° 48° 30° 4151mV 750MHz
root at letux:~# cat /sys/devices/virtual/thermal/thermal_zone0/temp 
47838
root at letux:~# cat /sys/devices/virtual/thermal/thermal_zone0/temp 
47412
root at letux:~# 


Values appear to be right from the initial readout. And no "step"
by running ./temperatures

Maybe the "inaccuracy" of the OMAP3 sensor is the location on
the chip and that there is only one for the whole SoC while
OMAP5 has three? So it is not an inaccuracy of the sensor but
the thermal model one would assume...


> Am 14.09.2019 um 12:28 schrieb H. Nikolaus Schaller <hns at goldelico.com>:
> 
> 
>> Am 14.09.2019 um 12:23 schrieb Andreas Kemnade <andreas at kemnade.info>:
>> 
>> On Fri, 13 Sep 2019 22:27:11 +0200
>> Andreas Kemnade <andreas at kemnade.info> wrote:
>> 
>>> some more testing here:
>>> root@(none):/# cpufreq-info 
>>> cpufrequtils 008: cpufreq-info (C) Dominik Brodowski 2004-2009
>>> Report errors and bugs to cpufreq at vger.kernel.org, please.
>>> analyzing CPU 0:
>>> driver: cpufreq-dt
>>> CPUs which run at the same hardware frequency: 0
>>> CPUs which need to have their frequency coordinated by software: 0
>>> maximum transition latency: 300 us.
>>> hardware limits: 300 MHz - 1000 MHz
>>> available frequency steps: 300 MHz, 600 MHz, 800 MHz, 1000 MHz
>>> available cpufreq governors: conservative, userspace, powersave, ondemand, performance
>>> current policy: frequency should be within 300 MHz and 1000 MHz.
>>>                 The governor "ondemand" may decide which speed to use
>>>                 within this range.
>>> current CPU frequency is 600 MHz (asserted by call to hardware).
>>> cpufreq stats: 300 MHz:94.86%, 600 MHz:2.49%, 800 MHz:0.92%, 1000 MHz:1.73%  (51)
>> 
>> should this be 1000Mhz: 0%? If not enabled the boost switch.
> 
> I had it enabled... 
> 
> And we can remove the turbo-mode; tag anyways as soon as thermal throttling works.
> 
> BR,
> Nikolaus
> 
> _______________________________________________
> http://projects.goldelico.com/p/gta04-kernel/
> Letux-kernel mailing list
> Letux-kernel at openphoenux.org
> http://lists.goldelico.com/mailman/listinfo.cgi/letux-kernel



More information about the Letux-kernel mailing list