Skip to content

Commit c89a27f

Browse files
committed
Merge branch 'powercap'
Merge power capping updates for 6.5-rc1: - Introduce power capping core support for Intel TPMI (Topology Aware Register and PM Capsule Interface) and a TPMI interface driver for Intel RAPL (Zhang Rui, Dan Carpenter). - Fix CONFIG_IOSF_MBI dependency in the Intel RAPL power capping driver (Zhang Rui). - Fix invalid initialization for pl4_supported field in the Intel RAPL power capping driver (Sumeet Pawnikar). * powercap: powercap: RAPL: Fix a NULL vs IS_ERR() bug powercap: RAPL: Fix CONFIG_IOSF_MBI dependency powercap: RAPL: fix invalid initialization for pl4_supported field powercap: intel_rapl: Introduce RAPL TPMI interface driver powercap: intel_rapl: Introduce core support for TPMI interface powercap: intel_rapl: Introduce RAPL I/F type powercap: intel_rapl: Make cpu optional for rapl_package powercap: intel_rapl: Remove redundant cpu parameter powercap: intel_rapl: Add support for lock bit per Power Limit powercap: intel_rapl: Cleanup Power Limits support powercap: intel_rapl: Use bitmap for Power Limits powercap: intel_rapl: Change primitive order powercap: intel_rapl: Use index to initialize primitive information powercap: intel_rapl: Support per domain energy/power/time unit powercap: intel_rapl: Support per Interface primitive information powercap: intel_rapl: Support per Interface rapl_defaults powercap: intel_rapl: Allow probing without CPUID match powercap: intel_rapl: Remove unused field in struct rapl_if_priv
2 parents 9b8f363 + 49776c7 commit c89a27f

7 files changed

Lines changed: 901 additions & 408 deletions

File tree

drivers/powercap/Kconfig

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,12 @@ if POWERCAP
1818
# Client driver configurations go here.
1919
config INTEL_RAPL_CORE
2020
tristate
21+
depends on PCI
22+
select IOSF_MBI
2123

2224
config INTEL_RAPL
2325
tristate "Intel RAPL Support via MSR Interface"
24-
depends on X86 && IOSF_MBI
26+
depends on X86 && PCI
2527
select INTEL_RAPL_CORE
2628
help
2729
This enables support for the Intel Running Average Power Limit (RAPL)
@@ -33,6 +35,20 @@ config INTEL_RAPL
3335
controller, CPU core (Power Plane 0), graphics uncore (Power Plane
3436
1), etc.
3537

38+
config INTEL_RAPL_TPMI
39+
tristate "Intel RAPL Support via TPMI Interface"
40+
depends on X86
41+
depends on INTEL_TPMI
42+
select INTEL_RAPL_CORE
43+
help
44+
This enables support for the Intel Running Average Power Limit (RAPL)
45+
technology via TPMI interface, which allows power limits to be enforced
46+
and monitored.
47+
48+
In RAPL, the platform level settings are divided into domains for
49+
fine grained control. These domains include processor package, DRAM
50+
controller, platform, etc.
51+
3652
config IDLE_INJECT
3753
bool "Idle injection framework"
3854
depends on CPU_IDLE

drivers/powercap/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,6 @@ obj-$(CONFIG_DTPM_DEVFREQ) += dtpm_devfreq.o
55
obj-$(CONFIG_POWERCAP) += powercap_sys.o
66
obj-$(CONFIG_INTEL_RAPL_CORE) += intel_rapl_common.o
77
obj-$(CONFIG_INTEL_RAPL) += intel_rapl_msr.o
8+
obj-$(CONFIG_INTEL_RAPL_TPMI) += intel_rapl_tpmi.o
89
obj-$(CONFIG_IDLE_INJECT) += idle_inject.o
910
obj-$(CONFIG_ARM_SCMI_POWERCAP) += arm_scmi_powercap.o

0 commit comments

Comments
 (0)