2024-04-10 12:46:25

by Zhang, Rui

[permalink] [raw]
Subject: [PATCH 1/2] perf/x86/rapl: Add support for Intel Arrow Lake

Arrow Lake RAPL support is the same as previous Sky Lake.
Add Arrow Lake model for RAPL.

Signed-off-by: Zhang Rui <[email protected]>
---
arch/x86/events/rapl.c | 2 ++
1 file changed, 2 insertions(+)

diff --git a/arch/x86/events/rapl.c b/arch/x86/events/rapl.c
index fb2b1961e5a3..6bfb78d5b37e 100644
--- a/arch/x86/events/rapl.c
+++ b/arch/x86/events/rapl.c
@@ -808,6 +808,8 @@ static const struct x86_cpu_id rapl_model_match[] __initconst = {
X86_MATCH_INTEL_FAM6_MODEL(RAPTORLAKE_S, &model_skl),
X86_MATCH_INTEL_FAM6_MODEL(METEORLAKE, &model_skl),
X86_MATCH_INTEL_FAM6_MODEL(METEORLAKE_L, &model_skl),
+ X86_MATCH_INTEL_FAM6_MODEL(ARROWLAKE_H, &model_skl),
+ X86_MATCH_INTEL_FAM6_MODEL(ARROWLAKE, &model_skl),
{},
};
MODULE_DEVICE_TABLE(x86cpu, rapl_model_match);
--
2.34.1



2024-04-10 12:56:15

by Zhang, Rui

[permalink] [raw]
Subject: [PATCH 2/2] perf/x86/rapl: Add support for Intel Lunar Lake

Lunar Lake RAPL support is the same as previous Sky Lake.
Add Lunar Lake model for RAPL.

Signed-off-by: Zhang Rui <[email protected]>
---
arch/x86/events/rapl.c | 1 +
1 file changed, 1 insertion(+)

diff --git a/arch/x86/events/rapl.c b/arch/x86/events/rapl.c
index 6bfb78d5b37e..ebb67a243f0f 100644
--- a/arch/x86/events/rapl.c
+++ b/arch/x86/events/rapl.c
@@ -810,6 +810,7 @@ static const struct x86_cpu_id rapl_model_match[] __initconst = {
X86_MATCH_INTEL_FAM6_MODEL(METEORLAKE_L, &model_skl),
X86_MATCH_INTEL_FAM6_MODEL(ARROWLAKE_H, &model_skl),
X86_MATCH_INTEL_FAM6_MODEL(ARROWLAKE, &model_skl),
+ X86_MATCH_INTEL_FAM6_MODEL(LUNARLAKE_M, &model_skl),
{},
};
MODULE_DEVICE_TABLE(x86cpu, rapl_model_match);
--
2.34.1


Subject: [tip: perf/core] perf/x86/rapl: Add support for Intel Arrow Lake

The following commit has been merged into the perf/core branch of tip:

Commit-ID: fb70fe74beaa809e13e7f469b116d54ef7cd19e9
Gitweb: https://git.kernel.org/tip/fb70fe74beaa809e13e7f469b116d54ef7cd19e9
Author: Zhang Rui <[email protected]>
AuthorDate: Wed, 10 Apr 2024 20:45:53 +08:00
Committer: Ingo Molnar <[email protected]>
CommitterDate: Wed, 10 Apr 2024 14:48:18 +02:00

perf/x86/rapl: Add support for Intel Arrow Lake

Arrow Lake RAPL support is the same as previous Sky Lake.
Add Arrow Lake model for RAPL.

Signed-off-by: Zhang Rui <[email protected]>
Signed-off-by: Ingo Molnar <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
---
arch/x86/events/rapl.c | 2 ++
1 file changed, 2 insertions(+)

diff --git a/arch/x86/events/rapl.c b/arch/x86/events/rapl.c
index 8ef08b5..00bb6ea 100644
--- a/arch/x86/events/rapl.c
+++ b/arch/x86/events/rapl.c
@@ -806,6 +806,8 @@ static const struct x86_cpu_id rapl_model_match[] __initconst = {
X86_MATCH_INTEL_FAM6_MODEL(RAPTORLAKE_S, &model_skl),
X86_MATCH_INTEL_FAM6_MODEL(METEORLAKE, &model_skl),
X86_MATCH_INTEL_FAM6_MODEL(METEORLAKE_L, &model_skl),
+ X86_MATCH_INTEL_FAM6_MODEL(ARROWLAKE_H, &model_skl),
+ X86_MATCH_INTEL_FAM6_MODEL(ARROWLAKE, &model_skl),
{},
};
MODULE_DEVICE_TABLE(x86cpu, rapl_model_match);

Subject: [tip: perf/core] perf/x86/rapl: Add support for Intel Lunar Lake

The following commit has been merged into the perf/core branch of tip:

Commit-ID: acf68d98cae8a60dc4af2e9feaaa799bf0aa5c04
Gitweb: https://git.kernel.org/tip/acf68d98cae8a60dc4af2e9feaaa799bf0aa5c04
Author: Zhang Rui <[email protected]>
AuthorDate: Wed, 10 Apr 2024 20:45:54 +08:00
Committer: Ingo Molnar <[email protected]>
CommitterDate: Wed, 10 Apr 2024 14:48:18 +02:00

perf/x86/rapl: Add support for Intel Lunar Lake

Lunar Lake RAPL support is the same as previous Sky Lake.
Add Lunar Lake model for RAPL.

Signed-off-by: Zhang Rui <[email protected]>
Signed-off-by: Ingo Molnar <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
---
arch/x86/events/rapl.c | 1 +
1 file changed, 1 insertion(+)

diff --git a/arch/x86/events/rapl.c b/arch/x86/events/rapl.c
index 00bb6ea..ca5f687 100644
--- a/arch/x86/events/rapl.c
+++ b/arch/x86/events/rapl.c
@@ -808,6 +808,7 @@ static const struct x86_cpu_id rapl_model_match[] __initconst = {
X86_MATCH_INTEL_FAM6_MODEL(METEORLAKE_L, &model_skl),
X86_MATCH_INTEL_FAM6_MODEL(ARROWLAKE_H, &model_skl),
X86_MATCH_INTEL_FAM6_MODEL(ARROWLAKE, &model_skl),
+ X86_MATCH_INTEL_FAM6_MODEL(LUNARLAKE_M, &model_skl),
{},
};
MODULE_DEVICE_TABLE(x86cpu, rapl_model_match);

2024-04-10 18:14:46

by Liang, Kan

[permalink] [raw]
Subject: Re: [PATCH 1/2] perf/x86/rapl: Add support for Intel Arrow Lake



On 2024-04-10 8:45 a.m., Zhang Rui wrote:
> Arrow Lake RAPL support is the same as previous Sky Lake.
> Add Arrow Lake model for RAPL.
>
> Signed-off-by: Zhang Rui <[email protected]>

The series looks good to me.

Reviewed-by: Kan Liang <[email protected]>

Thanks,
Kan
> ---
> arch/x86/events/rapl.c | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/arch/x86/events/rapl.c b/arch/x86/events/rapl.c
> index fb2b1961e5a3..6bfb78d5b37e 100644
> --- a/arch/x86/events/rapl.c
> +++ b/arch/x86/events/rapl.c
> @@ -808,6 +808,8 @@ static const struct x86_cpu_id rapl_model_match[] __initconst = {
> X86_MATCH_INTEL_FAM6_MODEL(RAPTORLAKE_S, &model_skl),
> X86_MATCH_INTEL_FAM6_MODEL(METEORLAKE, &model_skl),
> X86_MATCH_INTEL_FAM6_MODEL(METEORLAKE_L, &model_skl),
> + X86_MATCH_INTEL_FAM6_MODEL(ARROWLAKE_H, &model_skl),
> + X86_MATCH_INTEL_FAM6_MODEL(ARROWLAKE, &model_skl),
> {},
> };
> MODULE_DEVICE_TABLE(x86cpu, rapl_model_match);