hc
2024-12-19 9370bb92b2d16684ee45cf24e879c93c509162da
kernel/drivers/powercap/Kconfig
....@@ -1,3 +1,4 @@
1
+# SPDX-License-Identifier: GPL-2.0-only
12 #
23 # Generic power capping sysfs interface configuration
34 #
....@@ -15,18 +16,23 @@
1516
1617 if POWERCAP
1718 # Client driver configurations go here.
19
+config INTEL_RAPL_CORE
20
+ tristate
21
+ depends on PCI
22
+ select IOSF_MBI
23
+
1824 config INTEL_RAPL
19
- tristate "Intel RAPL Support"
20
- depends on X86 && IOSF_MBI
21
- default n
22
- ---help---
25
+ tristate "Intel RAPL Support via MSR Interface"
26
+ depends on X86 && PCI
27
+ select INTEL_RAPL_CORE
28
+ help
2329 This enables support for the Intel Running Average Power Limit (RAPL)
24
- technology which allows power limits to be enforced and monitored on
25
- modern Intel processors (Sandy Bridge and later).
30
+ technology via MSR interface, which allows power limits to be enforced
31
+ and monitored on modern Intel processors (Sandy Bridge and later).
2632
2733 In RAPL, the platform level settings are divided into domains for
2834 fine grained control. These domains include processor package, DRAM
29
- controller, CPU core (Power Plance 0), graphics uncore (Power Plane
35
+ controller, CPU core (Power Plane 0), graphics uncore (Power Plane
3036 1), etc.
3137
3238 config IDLE_INJECT
....@@ -39,4 +45,17 @@
3945 CPUs for power capping. Idle period can be injected
4046 synchronously on a set of specified CPUs or alternatively
4147 on a per CPU basis.
48
+
49
+config DTPM
50
+ bool "Power capping for Dynamic Thermal Power Management (EXPERIMENTAL)"
51
+ help
52
+ This enables support for the power capping for the dynamic
53
+ thermal power management userspace engine.
54
+
55
+config DTPM_CPU
56
+ bool "Add CPU power capping based on the energy model"
57
+ depends on DTPM && ENERGY_MODEL
58
+ help
59
+ This enables support for CPU power limitation based on
60
+ energy model.
4261 endif