Skip to content

intel_rapl: RAPL abstraction and MMIO RAPL support

Zhang Rui linux-pm 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest13 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/13intel_rapl: use reg instead of msrdrivers/powercap/intel_rapl.c+49 -490 replies
2/13intel_rapl: remove hardcoded register indexdrivers/powercap/intel_rapl.c+22 -220 replies
3/13intel_rapl: introduce intel_rapl.hMAINTAINERS drivers/powercap/intel_rapl.c include/linux/intel_rapl.h+116 -990 replies
4/13intel_rapl: introduce struct rapl_privatedrivers/powercap/intel_rapl.c include/linux/intel_rapl.h+35 -300 replies
5/13intel_rapl: abstract register addressdrivers/powercap/intel_rapl.c include/linux/intel_rapl.h+35 -400 replies
6/13intel_rapl: abstract register access operationsdrivers/powercap/intel_rapl.c include/linux/intel_rapl.h+67 -530 replies
7/13intel_rapl: cleanup some functionsdrivers/powercap/intel_rapl.c+31 -310 replies
8/13intel_rapl: cleanup hardcoded MSR accessdrivers/powercap/intel_rapl.c+22 -160 replies
9/13intel_rapl: abstract RAPL common codedrivers/powercap/Kconfig drivers/powercap/Makefile drivers/powercap/intel_rapl.c +2 more+1491 -14230 replies
10/13intel_rapl: support 64 bit registerdrivers/powercap/intel_rapl.c drivers/powercap/intel_rapl_common.c include/linux/intel_rapl.h+14 -110 replies
11/13intel_rapl: support two power limits for every RAPL domaindrivers/powercap/intel_rapl.c drivers/powercap/intel_rapl_common.c include/linux/intel_rapl.h+27 -470 replies
12/13int340X/processor_thermal_device: add support for MMIO RAPLdrivers/thermal/intel/int340x_thermal/Kconfig drivers/thermal/intel/int340x_thermal/processor_thermal_device.c+173 -61 reply
13/13intel_rapl: Fix module autoloading issuedrivers/powercap/intel_rapl.c drivers/powercap/intel_rapl_common.c+48 -210 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 00/13] intel_rapl: RAPL abstraction and MMIO RAPL support

Besideis MSR interface, RAPL can also be controlled via the MMIO interface, by accessing the MCHBar registers exposed by the processor thermal device.

Currently, we only have RAPL MSR interface in Linux kernel, this brings problems on some platforms that BIOS performs a low power limits via the MMIO interface by default. This results in poor system performance, and there is no way for us to change the MMIO MSR setting in Linux.

To fix this, RAPL MMIO interface support is introduced in this patch set.

Patch 1/13 to patch 11/13 abstract the RAPL code, and move all the shared code into a separate file, intel_rapl_common.c, so that it can be used by both MSR and MMIO interfaces.
Patch 12/13 introduced RAPL support via MMIO registers, exposed by the processor thermal devices.
Patch 13/13 fixes a module autoloading issue found later.

The patch series has been tested on Dell XPS 9360, a SKL platform.

Note that this patch series are based on the -tip tree, which contains the latest RAPL changes for multi-die support.

thanks,
rui