Skip to contentSkip to conversation

perf/x86: Add new Raptor Lake S support

PATCH Superseded [email protected] 1 participant 4 messages Aug 23, 2022

Subsystems (2)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/4 perf/x86: Add new Raptor Lake S support

From: Kan Liang <[email protected]>

From the PMU's perspective, the new Raptor Lake S is the same as the other {ALDER,RAPTOP}LAKE.

---

The series must be on top of commit ea902bcc1943 ("x86/cpu: Add new Raptor Lake CPU model number")

 arch/x86/events/intel/core.c | 1 +
 1 file changed, 1 insertion(+)
arch/x86/events/intel/core.c +1 -0
index 2db93498ff71..3b21f068fcce 100644
@@ -6321,6 +6321,7 @@ __init int intel_pmu_init(void)
 	case INTEL_FAM6_ALDERLAKE_N:
 	case INTEL_FAM6_RAPTORLAKE:
 	case INTEL_FAM6_RAPTORLAKE_P:
+	case INTEL_FAM6_RAPTORLAKE_S:
 		/*
 		 * Alder Lake has 2 types of CPU, core and atom.
 		 *
Signature · 1 line
2.35.1
#1 lore raw

PATCH 2/4 perf/x86/msr: Add new Raptor Lake S support

From: Kan Liang <[email protected]>

The same as the other {ALDER,RAPTOP}LAKE, the new Raptor Lake S also supports the PPERF and SMI_COUNT MSRs.

---
 arch/x86/events/msr.c | 1 +
 1 file changed, 1 insertion(+)
arch/x86/events/msr.c +1 -0
index ac542f98c070..ecced3a52668 100644
@@ -106,6 +106,7 @@ static bool test_intel(int idx, void *data)
 	case INTEL_FAM6_ALDERLAKE_N:
 	case INTEL_FAM6_RAPTORLAKE:
 	case INTEL_FAM6_RAPTORLAKE_P:
+	case INTEL_FAM6_RAPTORLAKE_S:
 		if (idx == PERF_MSR_SMI || idx == PERF_MSR_PPERF)
 			return true;
 		break;
Signature · 1 line
2.35.1
#2 lore raw

PATCH 3/4 perf/x86/cstate: Add new Raptor Lake S support

In reply to [email protected]

From: Kan Liang <[email protected]>

From the perspective of Intel cstate residency counters, the new Raptor Lake S is the same as the other {ALDER,RAPTOP}LAKE.

---
 arch/x86/events/intel/cstate.c | 1 +
 1 file changed, 1 insertion(+)
arch/x86/events/intel/cstate.c +1 -0
index 8ec23f47fee9..a2834bc93149 100644
@@ -685,6 +685,7 @@ static const struct x86_cpu_id intel_cstates_match[] __initconst = {
 	X86_MATCH_INTEL_FAM6_MODEL(ALDERLAKE_N,		&adl_cstates),
 	X86_MATCH_INTEL_FAM6_MODEL(RAPTORLAKE,		&adl_cstates),
 	X86_MATCH_INTEL_FAM6_MODEL(RAPTORLAKE_P,	&adl_cstates),
+	X86_MATCH_INTEL_FAM6_MODEL(RAPTORLAKE_S,	&adl_cstates),
 	{ },
 };
 MODULE_DEVICE_TABLE(x86cpu, intel_cstates_match);
Signature · 1 line
2.35.1
#3 lore raw

PATCH 4/4 perf/x86/uncore: Add new Raptor Lake S support

In reply to [email protected]

From: Kan Liang <[email protected]>

From the perspective of the uncore PMU, the new Raptor Lake S is the same as the other {ALDER,RAPTOP}LAKE.

---
 arch/x86/events/intel/uncore.c | 1 +
 1 file changed, 1 insertion(+)
arch/x86/events/intel/uncore.c +1 -0
index db6c31bca809..6f1ccc57a692 100644
@@ -1831,6 +1831,7 @@ static const struct x86_cpu_id intel_uncore_match[] __initconst = {
 	X86_MATCH_INTEL_FAM6_MODEL(ALDERLAKE_N,		&adl_uncore_init),
 	X86_MATCH_INTEL_FAM6_MODEL(RAPTORLAKE,		&adl_uncore_init),
 	X86_MATCH_INTEL_FAM6_MODEL(RAPTORLAKE_P,	&adl_uncore_init),
+	X86_MATCH_INTEL_FAM6_MODEL(RAPTORLAKE_S,	&adl_uncore_init),
 	X86_MATCH_INTEL_FAM6_MODEL(SAPPHIRERAPIDS_X,	&spr_uncore_init),
 	X86_MATCH_INTEL_FAM6_MODEL(ATOM_TREMONT_D,	&snr_uncore_init),
 	{},
Signature · 1 line
2.35.1