Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
cpu throttling not working after resume from stadnby/suspend
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
gigel
Guru
Guru


Joined: 14 Jan 2003
Posts: 369
Location: .se/.ro

PostPosted: Tue Apr 14, 2020 8:57 am    Post subject: cpu throttling not working after resume from stadnby/suspend Reply with quote

hi all,

since I've upgraded my kernel from the 4.* series to newer 5.4 and 5.6 series the thermal throttling of cpu does not work as expected

Code:

Linux heimdal 5.4.7 #1 SMP Thu Jan 2 19:29:19 EET 2020 x86_64 Intel(R) Core(TM) i5-3230M CPU @ 2.60GHz GenuineIntel GNU/Linux
the same with
5.6.3  5.4.30
first boot
heimdal ~ # echo 60 >   /sys/devices/system/cpu/intel_pstate/max_perf_pct
heimdal ~ # cpupower  frequency-info | grep "call to kernel"
  current CPU frequency: 2.19 GHz (asserted by call to kernel)
heimdal ~ # echo 80 >   /sys/devices/system/cpu/intel_pstate/max_perf_pct
heimdal ~ # cpupower  frequency-info | grep "call to kernel"
  current CPU frequency: 2.59 GHz (asserted by call to kernel)
heimdal ~ # echo 90 >   /sys/devices/system/cpu/intel_pstate/max_perf_pct
heimdal ~ # cpupower  frequency-info | grep "call to kernel"
  current CPU frequency: 2.89 GHz (asserted by call to kernel)
heimdal ~ # cpupower  frequency-info | grep "call to kernel"
  current CPU frequency: 2.88 GHz (asserted by call to kernel)
heimdal ~ # echo 80 >   /sys/devices/system/cpu/intel_pstate/max_perf_pct
heimdal ~ # cpupower  frequency-info | grep "call to kernel"
  current CPU frequency: 2.59 GHz (asserted by call to kernel)

heimdal ~ # grep MHz /proc/cpuinfo
cpu MHz         : 2517.578
cpu MHz         : 2536.647
cpu MHz         : 2536.648
cpu MHz         : 2536.650


  suspend
  resume

heimdal ~ # echo 60 >   /sys/devices/system/cpu/intel_pstate/max_perf_pct
heimdal ~ # cpupower  frequency-info | grep "call to kernel"
  current CPU frequency: 2.99 GHz (asserted by call to kernel)
heimdal ~ # echo 80 >   /sys/devices/system/cpu/intel_pstate/max_perf_pct
heimdal ~ # cpupower  frequency-info | grep "call to kernel"
  current CPU frequency: 2.99 GHz (asserted by call to kernel)
heimdal ~ # echo 90 >   /sys/devices/system/cpu/intel_pstate/max_perf_pct
heimdal ~ # cpupower  frequency-info | grep "call to kernel"
  current CPU frequency: 2.99 GHz (asserted by call to kernel)
heimdal ~ # echo 80 >   /sys/devices/system/cpu/intel_pstate/max_perf_pct
heimdal ~ # cpupower  frequency-info | grep "call to kernel"
  current CPU frequency: 2.99 GHz (asserted by call to kernel)
heimdal ~ # grep MHz /proc/cpuinfo
cpu MHz         : 2990.055
cpu MHz         : 2990.054
cpu MHz         : 2990.054
cpu MHz         : 2990.055
heimdal ~ # cpupower -c all frequency-set --governor powersave
Setting cpu: 0
Setting cpu: 1
Setting cpu: 2
Setting cpu: 3
heimdal ~ # cpupower  frequency-info | grep "call to kernel"
  current CPU frequency: 2.93 GHz (asserted by call to kernel)
heimdal ~ # echo 60 >  /sys/devices/system/cpu/intel_pstate/max_perf_pct
heimdal ~ # cpupower  frequency-info | grep "call to kernel"
  current CPU frequency: 2.95 GHz (asserted by call to kernel)



any ways of solving this without reverting to the good ol' 4.x kernels?
_________________
$emerge sux
:D
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum