Skip to contentSkip to conversation

powercap: intel_rapl: Add support for MeteorLake platforms

PATCH In review Zhang Rui 2 participants 4 messages Sep 10, 2022 – Sep 11, 2022

Subsystems (2)
lore
Share & tools
lore

Zhang Rui

author
#0 lore raw

PATCH 1/2 powercap: intel_rapl: Add support for MeteorLake platforms

Add intel_rapl support for the MeteorLake platforms, which behave the same as RaptorLake platforms.

---

Note:
This patch depends on commit 5515d21c6817
("x86/cpu: Add CPU model numbers for Meteor Lake") in the x86/urgent branch of tip tree.

Note:
This patch is made on top of commit 0d7a23b5f8e1 ("powercap: intel_rapl: Add support for RAPTORLAKE_S") in the linux-next branch of pm tree to avoid conflict.

---
 drivers/powercap/intel_rapl_common.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/powercap/intel_rapl_common.c +2 -0
index 6812c1ca3100..949eb90f5733 100644
@@ -1111,6 +1111,8 @@ static const struct x86_cpu_id rapl_ids[] __initconst = {
 	X86_MATCH_INTEL_FAM6_MODEL(RAPTORLAKE,		&rapl_defaults_core),
 	X86_MATCH_INTEL_FAM6_MODEL(RAPTORLAKE_P,        &rapl_defaults_core),
 	X86_MATCH_INTEL_FAM6_MODEL(RAPTORLAKE_S,	&rapl_defaults_core),
+	X86_MATCH_INTEL_FAM6_MODEL(METEORLAKE,		&rapl_defaults_core),
+	X86_MATCH_INTEL_FAM6_MODEL(METEORLAKE_L,	&rapl_defaults_core),
 	X86_MATCH_INTEL_FAM6_MODEL(SAPPHIRERAPIDS_X,	&rapl_defaults_spr_server),
 	X86_MATCH_INTEL_FAM6_MODEL(LAKEFIELD,		&rapl_defaults_core),
 
Signature · 1 line
2.25.1
author
#1 lore raw

PATCH 2/2 tools/power turbostat: Add support for MeteorLake platforms

Add turbostat support for MeteorLake platforms, which behave the same as RaptorLake platforms.

---

Note:
This patch depends on commit 5515d21c6817
("x86/cpu: Add CPU model numbers for Meteor Lake") in the x86/urgent branch of tip tree.

Note:
This patch is made on top of patch
"tools/power turbostat: add support for RPL-S" at
https://patchwork.kernel.org/project/linux-pm/patch/[email protected]/
to avoid conflict.

---
 tools/power/x86/turbostat/turbostat.c | 2 ++
 1 file changed, 2 insertions(+)
tools/power/x86/turbostat/turbostat.c +2 -0
index df040d87edd8..597cc2dbc456 100644
@@ -5448,6 +5448,8 @@ unsigned int intel_model_duplicates(unsigned int model)
 	case INTEL_FAM6_RAPTORLAKE:
 	case INTEL_FAM6_RAPTORLAKE_P:
 	case INTEL_FAM6_RAPTORLAKE_S:
+	case INTEL_FAM6_METEORLAKE:
+	case INTEL_FAM6_METEORLAKE_L:
 		return INTEL_FAM6_CANNONLAKE_L;
 
 	case INTEL_FAM6_ATOM_TREMONT_L:
Signature · 1 line
2.25.1
#2 lore raw
In reply to Zhang Rui
Quoted 11 lines · Zhang Rui

Add intel_rapl support for the MeteorLake platforms, which behave the same as RaptorLake platforms.

---

Note:
This patch depends on commit 5515d21c6817
("x86/cpu: Add CPU model numbers for Meteor Lake") in the x86/urgent branch of tip tree.

So I think I will have to rebase the powercap branch on top of a future -rc in order to apply this one.

Quoted 23 lines

Note:
This patch is made on top of commit 0d7a23b5f8e1 ("powercap: intel_rapl: Add support for RAPTORLAKE_S") in the linux-next branch of pm tree to avoid conflict.

---
 drivers/powercap/intel_rapl_common.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/powercap/intel_rapl_common.c +2 -1
index 6812c1ca3100..949eb90f5733 100644
@@ -1111,6 +1111,8 @@ static const struct x86_cpu_id rapl_ids[] __initconst = {
        X86_MATCH_INTEL_FAM6_MODEL(RAPTORLAKE,          &rapl_defaults_core),
        X86_MATCH_INTEL_FAM6_MODEL(RAPTORLAKE_P,        &rapl_defaults_core),
        X86_MATCH_INTEL_FAM6_MODEL(RAPTORLAKE_S,        &rapl_defaults_core),
+       X86_MATCH_INTEL_FAM6_MODEL(METEORLAKE,          &rapl_defaults_core),
+       X86_MATCH_INTEL_FAM6_MODEL(METEORLAKE_L,        &rapl_defaults_core),
        X86_MATCH_INTEL_FAM6_MODEL(SAPPHIRERAPIDS_X,    &rapl_defaults_spr_server),
        X86_MATCH_INTEL_FAM6_MODEL(LAKEFIELD,           &rapl_defaults_core),
 
--
author
#3 lore raw
Quoted 9 lines · Rafael J. Wysocki
Quoted 7 lines · Zhang Rui

Add intel_rapl support for the MeteorLake platforms, which behave the
same as RaptorLake platforms.

---

Quoted 8 lines
Quoted 5 lines

Note:
This patch depends on commit 5515d21c6817 ("x86/cpu: Add CPU model numbers for Meteor Lake") in the x86/urgent
branch of tip tree.

So I think I will have to rebase the powercap branch on top of a future -rc in order to apply this one.

Yeah, or we can wait for the next release cycle as this is not that urgent.

thanks,
rui

Quoted 33 lines
Quoted 33 lines

Note:
This patch is made on top of commit 0d7a23b5f8e1 ("powercap: intel_rapl: Add support for RAPTORLAKE_S") in the linux-next branch of pm tree to avoid conflict.

---
 drivers/powercap/intel_rapl_common.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/powercap/intel_rapl_common.c +0 -0
index 6812c1ca3100..949eb90f5733 100644
@@ -1111,6 +1111,8 @@ static const struct x86_cpu_id rapl_ids[]
 __initconst = {
        X86_MATCH_INTEL_FAM6_MODEL(RAPTORLAKE,          &rapl_defau
 lts_core),
        X86_MATCH_INTEL_FAM6_MODEL(RAPTORLAKE_P,        &rapl_defau
 lts_core),
        X86_MATCH_INTEL_FAM6_MODEL(RAPTORLAKE_S,        &rapl_defau

lts_core),
+ X86_MATCH_INTEL_FAM6_MODEL(METEORLAKE, &rapl_defau
lts_core),
+ X86_MATCH_INTEL_FAM6_MODEL(METEORLAKE_L, &rapl_defau
lts_core),
X86_MATCH_INTEL_FAM6_MODEL(SAPPHIRERAPIDS_X, &rapl_defau
lts_spr_server),
X86_MATCH_INTEL_FAM6_MODEL(LAKEFIELD, &rapl_defau
lts_core),

--