Hi All,
Kernel 5.13-rc1 has been released and is on the Ubuntu mainline PPA. I have not tried it yet, but shortly. My knowledge if changes is limited, but I know: turbostat has been fixed for use with recent AMD processors; There is now user space access to TCC offset for a limited number of Intel processors, and turbostat is aware of the offset, but also for a limited number of processors.
EDIT: Compile fails for me:
Code:
LD [M] drivers/iio/pressure/st_pressure.o
error: the following would cause module name conflict:
drivers/clk/xilinx/xlnx_vcu.ko
drivers/soc/xilinx/xlnx_vcu.ko
make[4]: *** [Makefile:1758: modules_check] Error 1
make[4]: *** Waiting for unfinished jobs....
...
make[3]: *** [debian/rules:7: build-arch] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
make[2]: *** [scripts/Makefile.package:83: bindeb-pkg] Error 2
make[1]: *** [Makefile:1557: bindeb-pkg] Error 2
make: *** [Makefile:346: __build_one_by_one] Error 2
And from the last cycle, I can't install the Ubuntu compiled version on my 20.04 server due to Requires libc >=2.33.
EDIT: Forgot link back trail:
Previous cycle threads: 5.12,5.11, 5.10, 5.9, 5.8, 5.7, 5.6, 5.5, 5.4, 5.3, 5.2, 5.1, 5.0, 4.20, 4.19 ?, 4.18, 4.17, 4.16, 4.15, 4.14.
EDIT: In a mindless attempt to get it to compile, I changed "CONFIG_XILINX_VCU=m" to not set, but then got other compile errors.
It is not clear to me why mainline compiled properly for Ubuntu, but not on my system.
EDIT: I think this might be the source of my problem, but I do not yet know why.
Code:
commit 1a998be620a10000c1e1240026e4bd6bc3378c96
Author: Masahiro Yamada <masahiroy@kernel.org>
Date: Wed Mar 31 22:38:05 2021 +0900
kbuild: check module name conflict for external modules as well
If there are multiple modules with the same name in the same external
module tree, there is ambiguity about which one will be loaded, and
very likely something odd is happening.
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
EDIT: A "make clean" before compile fixed the problem. Typically, I never run "make clean".
EDIT: O.K., finally: And I'll show an example of the new TCC offset (only available for a few processors so far):
Code:
$ uname -a
Linux s19 5.13.0-rc1-tcc #888 SMP PREEMPT Mon May 10 06:34:42 PDT 2021 x86_64 x86_64 x86_64 GNU/Linux
# what is the module name?
$ locate tcc | grep "\.ko"
/usr/lib/modules/5.13.0-051300rc1-lowlatency/kernel/drivers/thermal/intel/intel_tcc_cooling.ko
# load it (example only, it is built in in the kernel I am actually running):
$ sudo modprobe intel_tcc_cooling.ko
# and which cooling zone does it turn out to be?
$ grep . /sys/devices/virtual/thermal/cooling_device*/type
/sys/devices/virtual/thermal/cooling_device0/type:Fan
/sys/devices/virtual/thermal/cooling_device10/type:Processor
...
/sys/devices/virtual/thermal/cooling_device17/type:intel_powerclamp
/sys/devices/virtual/thermal/cooling_device18/type:TCC Offset
/sys/devices/virtual/thermal/cooling_device1/type:Fan
...
# O.K. so 18. Set a 30 degrees offset, for a test. (I actually use 24 normally)
$ echo 30 | sudo tee /sys/devices/virtual/thermal/cooling_device18/cur_state
30
# Now run turbostat, meanwhile apply a huge load via prime95 torture test:
$ sudo /home/doug/temp-k-git/linux/tools/power/x86/turbostat/turbostat --Summary --show Busy%,Bzy_MHz,IRQ,PkgWatt,PkgTmp,RAMWatt,GFXWatt --interval 15
turbostat version 21.05.04 - Len Brown <lenb@kernel.org>
...
cpu0: MSR_PKG_POWER_INFO: 0x000003e8 (125 W TDP, RAPL 0 - 0 W, 0.000000 sec.)
cpu0: MSR_PKG_POWER_LIMIT: 0x428440001b83e8 (UNlocked)
cpu0: PKG Limit #1: ENabled (125.000000 Watts, 8.000000 sec, clamp ENabled)
cpu0: PKG Limit #2: ENabled (136.000000 Watts, 0.002441* sec, clamp DISabled)
...
cpu0: MSR_IA32_TEMPERATURE_TARGET: 0x1e64140d (70 C) (100 default - 30 offset)
...
Busy% Bzy_MHz IRQ PkgTmp PkgWatt GFXWatt RAMWatt
0.02 1182 596 35 1.57 0.00 0.89
0.03 1123 605 34 1.64 0.00 0.89
80.21 4530 146921 67 107.26 0.00 0.89 <<< Power limit 2 engaged
98.93 4524 180356 66 130.02 0.00 0.89 <<< Power limits 2 and 1
99.74 4500 180316 67 124.91 0.00 0.89 <<< Power limit 1
99.70 4493 180356 69 124.92 0.00 0.89
99.67 4488 180343 71 124.91 0.00 0.89 <<< Temperature climbs
99.64 4483 180361 72 124.91 0.00 0.89 <<< There is a time constant involved. On this computer set in BIOS.
99.67 4448 181070 71 122.04 0.00 0.89 <<< TCC offset throttles
99.76 4367 180303 69 114.03 0.00 0.89
99.76 4307 180406 71 107.46 0.00 0.89
99.76 4268 180300 70 105.09 0.00 0.89
43.23 4218 78686 47 45.53 0.00 0.89 <<< load removed