Skip to content

Commit 3701dcb

Browse files
author
CKI KWF Bot
committed
Merge: powercap: intel_rapl: updates
MR: https://gitlab.com/redhat/centos-stream/src/kernel/centos-stream-10/-/merge_requests/1486 Description: updates for powercap: intel_rapl JIRA: https://issues.redhat.com/browse/RHEL-110835 Build Info: 68959831 Tested: Successful platform test results on Intel (intel-arrowlake-s-02) system. Signed-off-by: Steve Best <sbest@redhat.com> Approved-by: Tony Camuso <tcamuso@redhat.com> Approved-by: Lenny Szubowicz <lszubowi@redhat.com> Approved-by: CKI KWF Bot <cki-ci-bot+kwf-gitlab-com@redhat.com> Merged-by: CKI GitLab Kmaint Pipeline Bot <26919896-cki-kmaint-pipeline-bot@users.noreply.gitlab.com>
2 parents be314c9 + 62f969d commit 3701dcb

File tree

5 files changed

+6
-3
lines changed

5 files changed

+6
-3
lines changed

drivers/powercap/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ config DTPM
8282

8383
config DTPM_CPU
8484
bool "Add CPU power capping based on the energy model"
85-
depends on DTPM && ENERGY_MODEL
85+
depends on DTPM && ENERGY_MODEL && SMP
8686
help
8787
This enables support for CPU power limitation based on
8888
energy model.

drivers/powercap/dtpm_cpu.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,8 @@ static u64 get_pd_power_uw(struct dtpm *dtpm)
9696
int i;
9797

9898
pd = em_cpu_get(dtpm_cpu->cpu);
99+
if (!pd)
100+
return 0;
99101

100102
pd_mask = em_span_cpus(pd);
101103

drivers/powercap/intel_rapl_common.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1276,6 +1276,7 @@ static const struct x86_cpu_id rapl_ids[] __initconst = {
12761276
X86_MATCH_VFM(INTEL_RAPTORLAKE, &rapl_defaults_core),
12771277
X86_MATCH_VFM(INTEL_RAPTORLAKE_P, &rapl_defaults_core),
12781278
X86_MATCH_VFM(INTEL_RAPTORLAKE_S, &rapl_defaults_core),
1279+
X86_MATCH_VFM(INTEL_BARTLETTLAKE, &rapl_defaults_core),
12791280
X86_MATCH_VFM(INTEL_METEORLAKE, &rapl_defaults_core),
12801281
X86_MATCH_VFM(INTEL_METEORLAKE_L, &rapl_defaults_core),
12811282
X86_MATCH_VFM(INTEL_SAPPHIRERAPIDS_X, &rapl_defaults_spr_server),

drivers/powercap/intel_rapl_msr.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,7 @@ static const struct x86_cpu_id pl4_support_ids[] = {
149149
X86_MATCH_VFM(INTEL_METEORLAKE_L, NULL),
150150
X86_MATCH_VFM(INTEL_ARROWLAKE_U, NULL),
151151
X86_MATCH_VFM(INTEL_ARROWLAKE_H, NULL),
152+
X86_MATCH_VFM(INTEL_PANTHERLAKE_L, NULL),
152153
{}
153154
};
154155

kernel/power/Kconfig

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -380,8 +380,7 @@ config CPU_PM
380380

381381
config ENERGY_MODEL
382382
bool "Energy Model for devices with DVFS (CPUs, GPUs, etc)"
383-
depends on SMP
384-
depends on CPU_FREQ
383+
depends on CPU_FREQ || PM_DEVFREQ
385384
help
386385
Several subsystems (thermal and/or the task scheduler for example)
387386
can leverage information about the energy consumed by devices to

0 commit comments

Comments
 (0)