Skip to contentSkip to conversation

powercap: Add AMD Fam19h RAPL support

PATCH In review Kim Phillips 2 participants 2 messages Aug 17, 2020 – Sep 22, 2020 Power management core

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 powercap: Add AMD Fam19h RAPL support

AMD Family 19h's RAPL MSRs are identical to Family 17h's. Extend Family 17h's support to Family 19h.

---
Depends on Victor Ding's "powercap: Enable RAPL for AMD Fam17h" series, submitted here:

https://lore.kernel.org/lkml/[email protected]/

 drivers/powercap/intel_rapl_common.c | 1 +
 1 file changed, 1 insertion(+)
drivers/powercap/intel_rapl_common.c +1 -0
index 2e311f9c0d85..1bc0e67cd7a4 100644
@@ -1052,6 +1052,7 @@ static const struct x86_cpu_id rapl_ids[] __initconst = {
 	X86_MATCH_INTEL_FAM6_MODEL(XEON_PHI_KNM,	&rapl_defaults_hsw_server),
 
 	X86_MATCH_VENDOR_FAM(AMD, 0x17, &rapl_defaults_core),
+	X86_MATCH_VENDOR_FAM(AMD, 0x19, &rapl_defaults_core),
 	{}
 };
 MODULE_DEVICE_TABLE(x86cpu, rapl_ids);
Signature · 1 line
2.27.0
#1 lore raw
Quoted 10 lines · Kim Phillips

AMD Family 19h's RAPL MSRs are identical to Family 17h's. Extend Family 17h's support to Family 19h.

Quoted 5 lines

---
Depends on Victor Ding's "powercap: Enable RAPL for AMD Fam17h" series, submitted here:

https://lore.kernel.org/lkml/[email protected]/

So I'm deferring this one, because the submitter of the above was requested to resend the series.

Quoted 18 lines
 drivers/powercap/intel_rapl_common.c | 1 +
 1 file changed, 1 insertion(+)
drivers/powercap/intel_rapl_common.c +1 -1
index 2e311f9c0d85..1bc0e67cd7a4 100644
@@ -1052,6 +1052,7 @@ static const struct x86_cpu_id rapl_ids[] __initconst = {
        X86_MATCH_INTEL_FAM6_MODEL(XEON_PHI_KNM,        &rapl_defaults_hsw_server),
 
        X86_MATCH_VENDOR_FAM(AMD, 0x17, &rapl_defaults_core),
+       X86_MATCH_VENDOR_FAM(AMD, 0x19, &rapl_defaults_core),
        {}
 };
 MODULE_DEVICE_TABLE(x86cpu, rapl_ids);
--

2.27.0