All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/4] perf/x86: Add new Raptor Lake S support
@ 2022-08-23 21:01 kan.liang
  2022-08-23 21:01 ` [PATCH 2/4] perf/x86/msr: " kan.liang
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: kan.liang @ 2022-08-23 21:01 UTC (permalink / raw)
  To: peterz, mingo, linux-kernel; +Cc: Kan Liang

From: Kan Liang <kan.liang@linux.intel.com>

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

Signed-off-by: Kan Liang <kan.liang@linux.intel.com>
---

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(+)

diff --git a/arch/x86/events/intel/core.c b/arch/x86/events/intel/core.c
index 2db93498ff71..3b21f068fcce 100644
--- a/arch/x86/events/intel/core.c
+++ b/arch/x86/events/intel/core.c
@@ -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.
 		 *
-- 
2.35.1


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [PATCH 2/4] perf/x86/msr: Add new Raptor Lake S support
  2022-08-23 21:01 [PATCH 1/4] perf/x86: Add new Raptor Lake S support kan.liang
@ 2022-08-23 21:01 ` kan.liang
  2022-08-23 21:01 ` [PATCH 3/4] perf/x86/cstate: " kan.liang
  2022-08-23 21:01 ` [PATCH 4/4] perf/x86/uncore: " kan.liang
  2 siblings, 0 replies; 4+ messages in thread
From: kan.liang @ 2022-08-23 21:01 UTC (permalink / raw)
  To: peterz, mingo, linux-kernel; +Cc: Kan Liang

From: Kan Liang <kan.liang@linux.intel.com>

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

Signed-off-by: Kan Liang <kan.liang@linux.intel.com>
---
 arch/x86/events/msr.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/x86/events/msr.c b/arch/x86/events/msr.c
index ac542f98c070..ecced3a52668 100644
--- a/arch/x86/events/msr.c
+++ b/arch/x86/events/msr.c
@@ -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;
-- 
2.35.1


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [PATCH 3/4] perf/x86/cstate: Add new Raptor Lake S support
  2022-08-23 21:01 [PATCH 1/4] perf/x86: Add new Raptor Lake S support kan.liang
  2022-08-23 21:01 ` [PATCH 2/4] perf/x86/msr: " kan.liang
@ 2022-08-23 21:01 ` kan.liang
  2022-08-23 21:01 ` [PATCH 4/4] perf/x86/uncore: " kan.liang
  2 siblings, 0 replies; 4+ messages in thread
From: kan.liang @ 2022-08-23 21:01 UTC (permalink / raw)
  To: peterz, mingo, linux-kernel; +Cc: Kan Liang

From: Kan Liang <kan.liang@linux.intel.com>

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

Signed-off-by: Kan Liang <kan.liang@linux.intel.com>
---
 arch/x86/events/intel/cstate.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/x86/events/intel/cstate.c b/arch/x86/events/intel/cstate.c
index 8ec23f47fee9..a2834bc93149 100644
--- a/arch/x86/events/intel/cstate.c
+++ b/arch/x86/events/intel/cstate.c
@@ -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);
-- 
2.35.1


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [PATCH 4/4] perf/x86/uncore: Add new Raptor Lake S support
  2022-08-23 21:01 [PATCH 1/4] perf/x86: Add new Raptor Lake S support kan.liang
  2022-08-23 21:01 ` [PATCH 2/4] perf/x86/msr: " kan.liang
  2022-08-23 21:01 ` [PATCH 3/4] perf/x86/cstate: " kan.liang
@ 2022-08-23 21:01 ` kan.liang
  2 siblings, 0 replies; 4+ messages in thread
From: kan.liang @ 2022-08-23 21:01 UTC (permalink / raw)
  To: peterz, mingo, linux-kernel; +Cc: Kan Liang

From: Kan Liang <kan.liang@linux.intel.com>

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

Signed-off-by: Kan Liang <kan.liang@linux.intel.com>
---
 arch/x86/events/intel/uncore.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/x86/events/intel/uncore.c b/arch/x86/events/intel/uncore.c
index db6c31bca809..6f1ccc57a692 100644
--- a/arch/x86/events/intel/uncore.c
+++ b/arch/x86/events/intel/uncore.c
@@ -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),
 	{},
-- 
2.35.1


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-08-23 21:02 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-23 21:01 [PATCH 1/4] perf/x86: Add new Raptor Lake S support kan.liang
2022-08-23 21:01 ` [PATCH 2/4] perf/x86/msr: " kan.liang
2022-08-23 21:01 ` [PATCH 3/4] perf/x86/cstate: " kan.liang
2022-08-23 21:01 ` [PATCH 4/4] perf/x86/uncore: " kan.liang

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.