mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] perf/x86/rapl: Add support for Intel Arrow Lake U
@ 2024-12-24 14:55 Aaron Ma
  2024-12-25  1:07 ` Zhang, Rui
  2025-02-25 22:01 ` [tip: perf/urgent] " tip-bot2 for Aaron Ma
  0 siblings, 2 replies; 3+ messages in thread
From: Aaron Ma @ 2024-12-24 14:55 UTC (permalink / raw)
  To: peterz, rui.zhang
  Cc: mingo, tglx, bp, dave.hansen, x86, linux-perf-users,
	linux-kernel, kan.liang, alexander.shishkin, mark.rutland,
	namhyung, acme

Add Arrow Lake U model for RAPL.

  $ ls -1 /sys/devices/power/events/
energy-cores
energy-cores.scale
energy-cores.unit
energy-gpu
energy-gpu.scale
energy-gpu.unit
energy-pkg
energy-pkg.scale
energy-pkg.unit
energy-psys
energy-psys.scale
energy-psys.unit

The same output as ArrowLake.
  $ perf stat -a -I 1000 --per-socket -e power/energy-pkg/

Signed-off-by: Aaron Ma <aaron.ma@canonical.com>
---
 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 a8defc813c369..7e493963d0576 100644
--- a/arch/x86/events/rapl.c
+++ b/arch/x86/events/rapl.c
@@ -796,6 +796,7 @@ static const struct x86_cpu_id rapl_model_match[] __initconst = {
 	X86_MATCH_VFM(INTEL_METEORLAKE_L,	&model_skl),
 	X86_MATCH_VFM(INTEL_ARROWLAKE_H,	&model_skl),
 	X86_MATCH_VFM(INTEL_ARROWLAKE,		&model_skl),
+	X86_MATCH_VFM(INTEL_ARROWLAKE_U,	&model_skl),
 	X86_MATCH_VFM(INTEL_LUNARLAKE_M,	&model_skl),
 	{},
 };
-- 
2.43.0


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

* Re: [PATCH] perf/x86/rapl: Add support for Intel Arrow Lake U
  2024-12-24 14:55 [PATCH] perf/x86/rapl: Add support for Intel Arrow Lake U Aaron Ma
@ 2024-12-25  1:07 ` Zhang, Rui
  2025-02-25 22:01 ` [tip: perf/urgent] " tip-bot2 for Aaron Ma
  1 sibling, 0 replies; 3+ messages in thread
From: Zhang, Rui @ 2024-12-25  1:07 UTC (permalink / raw)
  To: peterz, Aaron, Ma
  Cc: linux-perf-users, alexander.shishkin, x86, dave.hansen,
	mark.rutland, bp, kan.liang, tglx, acme, linux-kernel, namhyung,
	mingo

On Tue, 2024-12-24 at 22:55 +0800, Aaron Ma wrote:
> Add Arrow Lake U model for RAPL.
> 
>   $ ls -1 /sys/devices/power/events/
> energy-cores
> energy-cores.scale
> energy-cores.unit
> energy-gpu
> energy-gpu.scale
> energy-gpu.unit
> energy-pkg
> energy-pkg.scale
> energy-pkg.unit
> energy-psys
> energy-psys.scale
> energy-psys.unit
> 
> The same output as ArrowLake.
>   $ perf stat -a -I 1000 --per-socket -e power/energy-pkg/
> 
> Signed-off-by: Aaron Ma <aaron.ma@canonical.com>

Acked-by: Zhang Rui <rui.zhang@intel.com>

> ---
>  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 a8defc813c369..7e493963d0576 100644
> --- a/arch/x86/events/rapl.c
> +++ b/arch/x86/events/rapl.c
> @@ -796,6 +796,7 @@ static const struct x86_cpu_id rapl_model_match[]
> __initconst = {
>  	X86_MATCH_VFM(INTEL_METEORLAKE_L,	&model_skl),
>  	X86_MATCH_VFM(INTEL_ARROWLAKE_H,	&model_skl),
>  	X86_MATCH_VFM(INTEL_ARROWLAKE,		&model_skl),
> +	X86_MATCH_VFM(INTEL_ARROWLAKE_U,	&model_skl),
>  	X86_MATCH_VFM(INTEL_LUNARLAKE_M,	&model_skl),
>  	{},
>  };


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

* [tip: perf/urgent] perf/x86/rapl: Add support for Intel Arrow Lake U
  2024-12-24 14:55 [PATCH] perf/x86/rapl: Add support for Intel Arrow Lake U Aaron Ma
  2024-12-25  1:07 ` Zhang, Rui
@ 2025-02-25 22:01 ` tip-bot2 for Aaron Ma
  1 sibling, 0 replies; 3+ messages in thread
From: tip-bot2 for Aaron Ma @ 2025-02-25 22:01 UTC (permalink / raw)
  To: linux-tip-commits; +Cc: Aaron Ma, Ingo Molnar, Zhang Rui, x86, linux-kernel

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

Commit-ID:     68a9b0e313302451468c0b0eda53c383fa51a8f4
Gitweb:        https://git.kernel.org/tip/68a9b0e313302451468c0b0eda53c383fa51a8f4
Author:        Aaron Ma <aaron.ma@canonical.com>
AuthorDate:    Tue, 24 Dec 2024 22:55:16 +08:00
Committer:     Ingo Molnar <mingo@kernel.org>
CommitterDate: Tue, 25 Feb 2025 22:48:50 +01:00

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

Add Arrow Lake U model for RAPL:

  $ ls -1 /sys/devices/power/events/
  energy-cores
  energy-cores.scale
  energy-cores.unit
  energy-gpu
  energy-gpu.scale
  energy-gpu.unit
  energy-pkg
  energy-pkg.scale
  energy-pkg.unit
  energy-psys
  energy-psys.scale
  energy-psys.unit

The same output as ArrowLake:

  $ perf stat -a -I 1000 --per-socket -e power/energy-pkg/

Signed-off-by: Aaron Ma <aaron.ma@canonical.com>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Acked-by: Zhang Rui <rui.zhang@intel.com>
Link: https://lore.kernel.org/r/20241224145516.349028-1-aaron.ma@canonical.com
---
 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 4952faf..6941f48 100644
--- a/arch/x86/events/rapl.c
+++ b/arch/x86/events/rapl.c
@@ -879,6 +879,7 @@ static const struct x86_cpu_id rapl_model_match[] __initconst = {
 	X86_MATCH_VFM(INTEL_METEORLAKE_L,	&model_skl),
 	X86_MATCH_VFM(INTEL_ARROWLAKE_H,	&model_skl),
 	X86_MATCH_VFM(INTEL_ARROWLAKE,		&model_skl),
+	X86_MATCH_VFM(INTEL_ARROWLAKE_U,	&model_skl),
 	X86_MATCH_VFM(INTEL_LUNARLAKE_M,	&model_skl),
 	{},
 };

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

end of thread, other threads:[~2025-02-25 22:01 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-12-24 14:55 [PATCH] perf/x86/rapl: Add support for Intel Arrow Lake U Aaron Ma
2024-12-25  1:07 ` Zhang, Rui
2025-02-25 22:01 ` [tip: perf/urgent] " tip-bot2 for Aaron Ma

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®