Skip to contentSkip to conversation

powercap: intel_rapl: Add PL4 support for Ice Lake

PATCH In review Daniel Tang 2 participants 2 messages Jan 15 Power management core

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 powercap: intel_rapl: Add PL4 support for Ice Lake

Microsoft Surface Pro 7 firmware throttles the processor upon boot/resume. Userspace needs to be able to restore the correct value.

---
 drivers/powercap/intel_rapl_msr.c | 1 +
 1 file changed, 1 insertion(+)
drivers/powercap/intel_rapl_msr.c +1 -0
index 9a7e150b3536..a2bc0a9c1e10 100644
@@ -162,6 +162,7 @@ static int rapl_msr_write_raw(int cpu, struct reg_action *ra)
 
 /* List of verified CPUs. */
 static const struct x86_cpu_id pl4_support_ids[] = {
+	X86_MATCH_VFM(INTEL_ICELAKE_L, NULL),
 	X86_MATCH_VFM(INTEL_TIGERLAKE_L, NULL),
 	X86_MATCH_VFM(INTEL_ALDERLAKE, NULL),
 	X86_MATCH_VFM(INTEL_ALDERLAKE_L, NULL),
Signature · 1 line
2.51.0
#1 lore raw
Quoted 15 lines · Daniel Tang

Microsoft Surface Pro 7 firmware throttles the processor upon boot/resume. Userspace needs to be able to restore the correct value.

---
 drivers/powercap/intel_rapl_msr.c | 1 +
 1 file changed, 1 insertion(+)
drivers/powercap/intel_rapl_msr.c +0 -0
index 9a7e150b3536..a2bc0a9c1e10 100644

drivers/powercap/intel_rapl_msr.c static int rapl_msr_write_raw(int cpu, struct reg_action *ra)

Quoted 8 lines
drivers/powercap/intel_rapl_msr.c +1 -1
@@ -162,6 +162,7 @@ static int rapl_msr_write_raw(int cpu, struct reg_action *ra)
 
 /* List of verified CPUs. */
 static const struct x86_cpu_id pl4_support_ids[] = {
+       X86_MATCH_VFM(INTEL_ICELAKE_L, NULL),
        X86_MATCH_VFM(INTEL_TIGERLAKE_L, NULL),
        X86_MATCH_VFM(INTEL_ALDERLAKE, NULL),
        X86_MATCH_VFM(INTEL_ALDERLAKE_L, NULL),
--

Applied 6.20 material, thanks!