* [PATCH 1/4] perf/x86/intel: Add Emerald Rapids
@ 2023-01-06 16:04 kan.liang
2023-01-06 16:04 ` [PATCH 2/4] perf/x86/intel/cstate: " kan.liang
` (4 more replies)
0 siblings, 5 replies; 10+ messages in thread
From: kan.liang @ 2023-01-06 16:04 UTC (permalink / raw)
To: peterz, mingo, acme, linux-kernel; +Cc: ak, Kan Liang
From: Kan Liang <kan.liang@linux.intel.com>
From core PMU's perspective, Emerald Rapids is the same as the Sapphire
Rapids. The only difference is the event list, which will be
supported in the perf tool later.
Signed-off-by: Kan Liang <kan.liang@linux.intel.com>
---
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 29d2d0411caf..72943243c95c 100644
--- a/arch/x86/events/intel/core.c
+++ b/arch/x86/events/intel/core.c
@@ -6487,6 +6487,7 @@ __init int intel_pmu_init(void)
break;
case INTEL_FAM6_SAPPHIRERAPIDS_X:
+ case INTEL_FAM6_EMERALDRAPIDS_X:
pmem = true;
x86_pmu.late_ack = true;
memcpy(hw_cache_event_ids, spr_hw_cache_event_ids, sizeof(hw_cache_event_ids));
--
2.35.1
^ permalink raw reply related [flat|nested] 10+ messages in thread
* [PATCH 2/4] perf/x86/intel/cstate: Add Emerald Rapids
2023-01-06 16:04 [PATCH 1/4] perf/x86/intel: Add Emerald Rapids kan.liang
@ 2023-01-06 16:04 ` kan.liang
2023-01-18 11:45 ` [tip: perf/urgent] " tip-bot2 for Kan Liang
2023-01-06 16:04 ` [PATCH 3/4] perf/x86/msr: " kan.liang
` (3 subsequent siblings)
4 siblings, 1 reply; 10+ messages in thread
From: kan.liang @ 2023-01-06 16:04 UTC (permalink / raw)
To: peterz, mingo, acme, linux-kernel; +Cc: ak, Kan Liang
From: Kan Liang <kan.liang@linux.intel.com>
From the perspective of Intel cstate residency counters,
Emerald Rapids is the same as the Sapphire Rapids and Ice Lake.
Add Emerald Rapids model.
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 3019fb1926e3..551741e79e03 100644
--- a/arch/x86/events/intel/cstate.c
+++ b/arch/x86/events/intel/cstate.c
@@ -677,6 +677,7 @@ static const struct x86_cpu_id intel_cstates_match[] __initconst = {
X86_MATCH_INTEL_FAM6_MODEL(ICELAKE_X, &icx_cstates),
X86_MATCH_INTEL_FAM6_MODEL(ICELAKE_D, &icx_cstates),
X86_MATCH_INTEL_FAM6_MODEL(SAPPHIRERAPIDS_X, &icx_cstates),
+ X86_MATCH_INTEL_FAM6_MODEL(EMERALDRAPIDS_X, &icx_cstates),
X86_MATCH_INTEL_FAM6_MODEL(TIGERLAKE_L, &icl_cstates),
X86_MATCH_INTEL_FAM6_MODEL(TIGERLAKE, &icl_cstates),
--
2.35.1
^ permalink raw reply related [flat|nested] 10+ messages in thread
* [PATCH 3/4] perf/x86/msr: Add Emerald Rapids
2023-01-06 16:04 [PATCH 1/4] perf/x86/intel: Add Emerald Rapids kan.liang
2023-01-06 16:04 ` [PATCH 2/4] perf/x86/intel/cstate: " kan.liang
@ 2023-01-06 16:04 ` kan.liang
2023-01-09 11:15 ` [tip: perf/urgent] " tip-bot2 for Kan Liang
2023-01-06 16:04 ` [PATCH 4/4] perf/x86/intel/uncore: " kan.liang
` (2 subsequent siblings)
4 siblings, 1 reply; 10+ messages in thread
From: kan.liang @ 2023-01-06 16:04 UTC (permalink / raw)
To: peterz, mingo, acme, linux-kernel; +Cc: ak, Kan Liang
From: Kan Liang <kan.liang@linux.intel.com>
The same as Sapphire Rapids, the SMI_COUNT MSR is also supported on
Emerald Rapids. Add Emerald Rapids model.
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 074150d28fa8..c65d8906cbcf 100644
--- a/arch/x86/events/msr.c
+++ b/arch/x86/events/msr.c
@@ -69,6 +69,7 @@ static bool test_intel(int idx, void *data)
case INTEL_FAM6_BROADWELL_G:
case INTEL_FAM6_BROADWELL_X:
case INTEL_FAM6_SAPPHIRERAPIDS_X:
+ case INTEL_FAM6_EMERALDRAPIDS_X:
case INTEL_FAM6_ATOM_SILVERMONT:
case INTEL_FAM6_ATOM_SILVERMONT_D:
--
2.35.1
^ permalink raw reply related [flat|nested] 10+ messages in thread
* [PATCH 4/4] perf/x86/intel/uncore: Add Emerald Rapids
2023-01-06 16:04 [PATCH 1/4] perf/x86/intel: Add Emerald Rapids kan.liang
2023-01-06 16:04 ` [PATCH 2/4] perf/x86/intel/cstate: " kan.liang
2023-01-06 16:04 ` [PATCH 3/4] perf/x86/msr: " kan.liang
@ 2023-01-06 16:04 ` kan.liang
2023-01-09 11:15 ` [tip: perf/urgent] " tip-bot2 for Kan Liang
2023-01-17 16:16 ` [PATCH 1/4] perf/x86/intel: " Liang, Kan
2023-01-18 11:45 ` [tip: perf/urgent] " tip-bot2 for Kan Liang
4 siblings, 1 reply; 10+ messages in thread
From: kan.liang @ 2023-01-06 16:04 UTC (permalink / raw)
To: peterz, mingo, acme, linux-kernel; +Cc: ak, Kan Liang
From: Kan Liang <kan.liang@linux.intel.com>
From the perspective of the uncore PMU, the new Emerald Rapids is the
same as the Sapphire Rapids. The only difference is the event list,
which will be supported in the perf tool later.
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 6f1ccc57a692..459b1aafd4d4 100644
--- a/arch/x86/events/intel/uncore.c
+++ b/arch/x86/events/intel/uncore.c
@@ -1833,6 +1833,7 @@ static const struct x86_cpu_id intel_uncore_match[] __initconst = {
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(EMERALDRAPIDS_X, &spr_uncore_init),
X86_MATCH_INTEL_FAM6_MODEL(ATOM_TREMONT_D, &snr_uncore_init),
{},
};
--
2.35.1
^ permalink raw reply related [flat|nested] 10+ messages in thread
* [tip: perf/urgent] perf/x86/intel/uncore: Add Emerald Rapids
2023-01-06 16:04 ` [PATCH 4/4] perf/x86/intel/uncore: " kan.liang
@ 2023-01-09 11:15 ` tip-bot2 for Kan Liang
0 siblings, 0 replies; 10+ messages in thread
From: tip-bot2 for Kan Liang @ 2023-01-09 11:15 UTC (permalink / raw)
To: linux-tip-commits; +Cc: Kan Liang, Ingo Molnar, x86, linux-kernel
The following commit has been merged into the perf/urgent branch of tip:
Commit-ID: 5268a2842066c227e6ccd94bac562f1e1000244f
Gitweb: https://git.kernel.org/tip/5268a2842066c227e6ccd94bac562f1e1000244f
Author: Kan Liang <kan.liang@linux.intel.com>
AuthorDate: Fri, 06 Jan 2023 08:04:49 -08:00
Committer: Ingo Molnar <mingo@kernel.org>
CommitterDate: Mon, 09 Jan 2023 12:00:58 +01:00
perf/x86/intel/uncore: Add Emerald Rapids
>From the perspective of the uncore PMU, the new Emerald Rapids is the
same as the Sapphire Rapids. The only difference is the event list,
which will be supported in the perf tool later.
Signed-off-by: Kan Liang <kan.liang@linux.intel.com>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Link: https://lore.kernel.org/r/20230106160449.3566477-4-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 6f1ccc5..459b1aa 100644
--- a/arch/x86/events/intel/uncore.c
+++ b/arch/x86/events/intel/uncore.c
@@ -1833,6 +1833,7 @@ static const struct x86_cpu_id intel_uncore_match[] __initconst = {
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(EMERALDRAPIDS_X, &spr_uncore_init),
X86_MATCH_INTEL_FAM6_MODEL(ATOM_TREMONT_D, &snr_uncore_init),
{},
};
^ permalink raw reply related [flat|nested] 10+ messages in thread
* [tip: perf/urgent] perf/x86/msr: Add Emerald Rapids
2023-01-06 16:04 ` [PATCH 3/4] perf/x86/msr: " kan.liang
@ 2023-01-09 11:15 ` tip-bot2 for Kan Liang
0 siblings, 0 replies; 10+ messages in thread
From: tip-bot2 for Kan Liang @ 2023-01-09 11:15 UTC (permalink / raw)
To: linux-tip-commits; +Cc: Kan Liang, Ingo Molnar, x86, linux-kernel
The following commit has been merged into the perf/urgent branch of tip:
Commit-ID: 69ced4160969025821f2999ff92163ed26568f1c
Gitweb: https://git.kernel.org/tip/69ced4160969025821f2999ff92163ed26568f1c
Author: Kan Liang <kan.liang@linux.intel.com>
AuthorDate: Fri, 06 Jan 2023 08:04:48 -08:00
Committer: Ingo Molnar <mingo@kernel.org>
CommitterDate: Mon, 09 Jan 2023 12:00:52 +01:00
perf/x86/msr: Add Emerald Rapids
The same as Sapphire Rapids, the SMI_COUNT MSR is also supported on
Emerald Rapids. Add Emerald Rapids model.
Signed-off-by: Kan Liang <kan.liang@linux.intel.com>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Link: https://lore.kernel.org/r/20230106160449.3566477-3-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 074150d..c65d890 100644
--- a/arch/x86/events/msr.c
+++ b/arch/x86/events/msr.c
@@ -69,6 +69,7 @@ static bool test_intel(int idx, void *data)
case INTEL_FAM6_BROADWELL_G:
case INTEL_FAM6_BROADWELL_X:
case INTEL_FAM6_SAPPHIRERAPIDS_X:
+ case INTEL_FAM6_EMERALDRAPIDS_X:
case INTEL_FAM6_ATOM_SILVERMONT:
case INTEL_FAM6_ATOM_SILVERMONT_D:
^ permalink raw reply related [flat|nested] 10+ messages in thread
* Re: [PATCH 1/4] perf/x86/intel: Add Emerald Rapids
2023-01-06 16:04 [PATCH 1/4] perf/x86/intel: Add Emerald Rapids kan.liang
` (2 preceding siblings ...)
2023-01-06 16:04 ` [PATCH 4/4] perf/x86/intel/uncore: " kan.liang
@ 2023-01-17 16:16 ` Liang, Kan
2023-01-18 11:43 ` Ingo Molnar
2023-01-18 11:45 ` [tip: perf/urgent] " tip-bot2 for Kan Liang
4 siblings, 1 reply; 10+ messages in thread
From: Liang, Kan @ 2023-01-17 16:16 UTC (permalink / raw)
To: peterz, mingo, acme, linux-kernel; +Cc: ak
Hi Ingo,
It seems that only the last two patches of the series are merged into
the tip.git perf/urgent branch.
Could you please take the first two patches as well? They similarly add
the CPU model number for perf core driver and perf cstate driver.
Please let me know if you have any questions regarding the first two
patches. If you want me to resend the patches, please let me know as well.
Thanks,
Kan
On 2023-01-06 11:04 a.m., kan.liang@linux.intel.com wrote:
> From: Kan Liang <kan.liang@linux.intel.com>
>
> From core PMU's perspective, Emerald Rapids is the same as the Sapphire
> Rapids. The only difference is the event list, which will be
> supported in the perf tool later.
>
> Signed-off-by: Kan Liang <kan.liang@linux.intel.com>
> ---
> 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 29d2d0411caf..72943243c95c 100644
> --- a/arch/x86/events/intel/core.c
> +++ b/arch/x86/events/intel/core.c
> @@ -6487,6 +6487,7 @@ __init int intel_pmu_init(void)
> break;
>
> case INTEL_FAM6_SAPPHIRERAPIDS_X:
> + case INTEL_FAM6_EMERALDRAPIDS_X:
> pmem = true;
> x86_pmu.late_ack = true;
> memcpy(hw_cache_event_ids, spr_hw_cache_event_ids, sizeof(hw_cache_event_ids));
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH 1/4] perf/x86/intel: Add Emerald Rapids
2023-01-17 16:16 ` [PATCH 1/4] perf/x86/intel: " Liang, Kan
@ 2023-01-18 11:43 ` Ingo Molnar
0 siblings, 0 replies; 10+ messages in thread
From: Ingo Molnar @ 2023-01-18 11:43 UTC (permalink / raw)
To: Liang, Kan; +Cc: peterz, mingo, acme, linux-kernel, ak
* Liang, Kan <kan.liang@linux.intel.com> wrote:
> Hi Ingo,
>
> It seems that only the last two patches of the series are merged into
> the tip.git perf/urgent branch.
>
> Could you please take the first two patches as well? They similarly add
> the CPU model number for perf core driver and perf cstate driver.
Ok, done!
Thanks,
Ingo
^ permalink raw reply [flat|nested] 10+ messages in thread
* [tip: perf/urgent] perf/x86/intel/cstate: Add Emerald Rapids
2023-01-06 16:04 ` [PATCH 2/4] perf/x86/intel/cstate: " kan.liang
@ 2023-01-18 11:45 ` tip-bot2 for Kan Liang
0 siblings, 0 replies; 10+ messages in thread
From: tip-bot2 for Kan Liang @ 2023-01-18 11:45 UTC (permalink / raw)
To: linux-tip-commits; +Cc: Kan Liang, Ingo Molnar, x86, linux-kernel
The following commit has been merged into the perf/urgent branch of tip:
Commit-ID: 5a8a05f165fb18d37526062419774d9088c2a9b9
Gitweb: https://git.kernel.org/tip/5a8a05f165fb18d37526062419774d9088c2a9b9
Author: Kan Liang <kan.liang@linux.intel.com>
AuthorDate: Fri, 06 Jan 2023 08:04:47 -08:00
Committer: Ingo Molnar <mingo@kernel.org>
CommitterDate: Wed, 18 Jan 2023 12:42:49 +01:00
perf/x86/intel/cstate: Add Emerald Rapids
>From the perspective of Intel cstate residency counters,
Emerald Rapids is the same as the Sapphire Rapids and Ice Lake.
Add Emerald Rapids model.
Signed-off-by: Kan Liang <kan.liang@linux.intel.com>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Link: https://lore.kernel.org/r/20230106160449.3566477-2-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 3019fb1..551741e 100644
--- a/arch/x86/events/intel/cstate.c
+++ b/arch/x86/events/intel/cstate.c
@@ -677,6 +677,7 @@ static const struct x86_cpu_id intel_cstates_match[] __initconst = {
X86_MATCH_INTEL_FAM6_MODEL(ICELAKE_X, &icx_cstates),
X86_MATCH_INTEL_FAM6_MODEL(ICELAKE_D, &icx_cstates),
X86_MATCH_INTEL_FAM6_MODEL(SAPPHIRERAPIDS_X, &icx_cstates),
+ X86_MATCH_INTEL_FAM6_MODEL(EMERALDRAPIDS_X, &icx_cstates),
X86_MATCH_INTEL_FAM6_MODEL(TIGERLAKE_L, &icl_cstates),
X86_MATCH_INTEL_FAM6_MODEL(TIGERLAKE, &icl_cstates),
^ permalink raw reply related [flat|nested] 10+ messages in thread
* [tip: perf/urgent] perf/x86/intel: Add Emerald Rapids
2023-01-06 16:04 [PATCH 1/4] perf/x86/intel: Add Emerald Rapids kan.liang
` (3 preceding siblings ...)
2023-01-17 16:16 ` [PATCH 1/4] perf/x86/intel: " Liang, Kan
@ 2023-01-18 11:45 ` tip-bot2 for Kan Liang
4 siblings, 0 replies; 10+ messages in thread
From: tip-bot2 for Kan Liang @ 2023-01-18 11:45 UTC (permalink / raw)
To: linux-tip-commits; +Cc: Kan Liang, Ingo Molnar, x86, linux-kernel
The following commit has been merged into the perf/urgent branch of tip:
Commit-ID: 6795e558e9cc6123c24e2100a2ebe88e58a792bc
Gitweb: https://git.kernel.org/tip/6795e558e9cc6123c24e2100a2ebe88e58a792bc
Author: Kan Liang <kan.liang@linux.intel.com>
AuthorDate: Fri, 06 Jan 2023 08:04:46 -08:00
Committer: Ingo Molnar <mingo@kernel.org>
CommitterDate: Wed, 18 Jan 2023 12:42:49 +01:00
perf/x86/intel: Add Emerald Rapids
>From core PMU's perspective, Emerald Rapids is the same as the Sapphire
Rapids. The only difference is the event list, which will be
supported in the perf tool later.
Signed-off-by: Kan Liang <kan.liang@linux.intel.com>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Link: https://lore.kernel.org/r/20230106160449.3566477-1-kan.liang@linux.intel.com
---
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 dfd2c12..bafdc2b 100644
--- a/arch/x86/events/intel/core.c
+++ b/arch/x86/events/intel/core.c
@@ -6339,6 +6339,7 @@ __init int intel_pmu_init(void)
break;
case INTEL_FAM6_SAPPHIRERAPIDS_X:
+ case INTEL_FAM6_EMERALDRAPIDS_X:
pmem = true;
x86_pmu.late_ack = true;
memcpy(hw_cache_event_ids, spr_hw_cache_event_ids, sizeof(hw_cache_event_ids));
^ permalink raw reply related [flat|nested] 10+ messages in thread
end of thread, other threads:[~2023-01-18 12:26 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-01-06 16:04 [PATCH 1/4] perf/x86/intel: Add Emerald Rapids kan.liang
2023-01-06 16:04 ` [PATCH 2/4] perf/x86/intel/cstate: " kan.liang
2023-01-18 11:45 ` [tip: perf/urgent] " tip-bot2 for Kan Liang
2023-01-06 16:04 ` [PATCH 3/4] perf/x86/msr: " kan.liang
2023-01-09 11:15 ` [tip: perf/urgent] " tip-bot2 for Kan Liang
2023-01-06 16:04 ` [PATCH 4/4] perf/x86/intel/uncore: " kan.liang
2023-01-09 11:15 ` [tip: perf/urgent] " tip-bot2 for Kan Liang
2023-01-17 16:16 ` [PATCH 1/4] perf/x86/intel: " Liang, Kan
2023-01-18 11:43 ` Ingo Molnar
2023-01-18 11:45 ` [tip: perf/urgent] " tip-bot2 for Kan Liang
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox