linux-perf-users.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2] perf vendor events riscv: add T-HEAD C920V2 JSON support
@ 2025-10-14  1:48 Inochi Amaoto
  2025-11-26  0:52 ` Paul Walmsley
  2025-11-27 20:58 ` Namhyung Kim
  0 siblings, 2 replies; 4+ messages in thread
From: Inochi Amaoto @ 2025-10-14  1:48 UTC (permalink / raw)
  To: Peter Zijlstra, Ingo Molnar, Arnaldo Carvalho de Melo,
	Namhyung Kim, Mark Rutland, Alexander Shishkin, Jiri Olsa,
	Ian Rogers, Adrian Hunter, Paul Walmsley, Palmer Dabbelt,
	Albert Ou, Alexandre Ghiti, Samuel Holland, Eric Lin,
	Inochi Amaoto
  Cc: linux-perf-users, linux-kernel, linux-riscv, Yixun Lan,
	Longbin Li

T-HEAD C920 has a V2 iteration, which supports Sscompmf. The V2
iteration supports the same perf events as V1.

Reuse T-HEAD c900-legacy JSON file for T-HEAD C920V2.

Signed-off-by: Inochi Amaoto <inochiama@gmail.com>
---
Changes from v1:
1. Update comment and add missing CPU version.
---
 tools/perf/pmu-events/arch/riscv/mapfile.csv | 1 +
 1 file changed, 1 insertion(+)

diff --git a/tools/perf/pmu-events/arch/riscv/mapfile.csv b/tools/perf/pmu-events/arch/riscv/mapfile.csv
index 0a7e7dcc81be..d5eea7f9aa9a 100644
--- a/tools/perf/pmu-events/arch/riscv/mapfile.csv
+++ b/tools/perf/pmu-events/arch/riscv/mapfile.csv
@@ -20,5 +20,6 @@
 0x489-0x8000000000000008-0x[[:xdigit:]]+,v1,sifive/p550,core
 0x489-0x8000000000000[1-6]08-0x[9b][[:xdigit:]]+,v1,sifive/p650,core
 0x5b7-0x0-0x0,v1,thead/c900-legacy,core
+0x5b7-0x80000000090c0d00-0x2047000,v1,thead/c900-legacy,core
 0x67e-0x80000000db0000[89]0-0x[[:xdigit:]]+,v1,starfive/dubhe-80,core
 0x31e-0x8000000000008a45-0x[[:xdigit:]]+,v1,andes/ax45,core
--
2.51.0


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

* Re: [PATCH v2] perf vendor events riscv: add T-HEAD C920V2 JSON support
  2025-10-14  1:48 [PATCH v2] perf vendor events riscv: add T-HEAD C920V2 JSON support Inochi Amaoto
@ 2025-11-26  0:52 ` Paul Walmsley
  2025-11-26 17:59   ` Namhyung Kim
  2025-11-27 20:58 ` Namhyung Kim
  1 sibling, 1 reply; 4+ messages in thread
From: Paul Walmsley @ 2025-11-26  0:52 UTC (permalink / raw)
  To: Peter Zijlstra, Ingo Molnar, Arnaldo Carvalho de Melo,
	Mark Rutland
  Cc: Inochi Amaoto, Alexander Shishkin, Jiri Olsa, Ian Rogers,
	Adrian Hunter, Paul Walmsley, Palmer Dabbelt, Albert Ou,
	Alexandre Ghiti, Samuel Holland, Eric Lin, linux-perf-users,
	linux-kernel, linux-riscv, Yixun Lan, Longbin Li, Namhyung Kim

Hello tools/perf maintainers,

On Tue, 14 Oct 2025, Inochi Amaoto wrote:

> T-HEAD C920 has a V2 iteration, which supports Sscompmf. The V2
> iteration supports the same perf events as V1.
> 
> Reuse T-HEAD c900-legacy JSON file for T-HEAD C920V2.
> 
> Signed-off-by: Inochi Amaoto <inochiama@gmail.com>

Would you like to take this one, or would you prefer that we take it 
through arch/riscv ?

If it's needed:

Acked-by: Paul Walmsley <pjw@kernel.org>


- Paul


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

* Re: [PATCH v2] perf vendor events riscv: add T-HEAD C920V2 JSON support
  2025-11-26  0:52 ` Paul Walmsley
@ 2025-11-26 17:59   ` Namhyung Kim
  0 siblings, 0 replies; 4+ messages in thread
From: Namhyung Kim @ 2025-11-26 17:59 UTC (permalink / raw)
  To: Paul Walmsley
  Cc: Peter Zijlstra, Ingo Molnar, Arnaldo Carvalho de Melo,
	Mark Rutland, Inochi Amaoto, Alexander Shishkin, Jiri Olsa,
	Ian Rogers, Adrian Hunter, Palmer Dabbelt, Albert Ou,
	Alexandre Ghiti, Samuel Holland, Eric Lin, linux-perf-users,
	linux-kernel, linux-riscv, Yixun Lan, Longbin Li

Hello,

On Tue, Nov 25, 2025 at 05:52:10PM -0700, Paul Walmsley wrote:
> Hello tools/perf maintainers,
> 
> On Tue, 14 Oct 2025, Inochi Amaoto wrote:
> 
> > T-HEAD C920 has a V2 iteration, which supports Sscompmf. The V2
> > iteration supports the same perf events as V1.
> > 
> > Reuse T-HEAD c900-legacy JSON file for T-HEAD C920V2.
> > 
> > Signed-off-by: Inochi Amaoto <inochiama@gmail.com>
> 
> Would you like to take this one, or would you prefer that we take it 
> through arch/riscv ?
> 
> If it's needed:
> 
> Acked-by: Paul Walmsley <pjw@kernel.org>

I'll pick it up to perf-tools-next, thanks!
Namhyung


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

* Re: [PATCH v2] perf vendor events riscv: add T-HEAD C920V2 JSON support
  2025-10-14  1:48 [PATCH v2] perf vendor events riscv: add T-HEAD C920V2 JSON support Inochi Amaoto
  2025-11-26  0:52 ` Paul Walmsley
@ 2025-11-27 20:58 ` Namhyung Kim
  1 sibling, 0 replies; 4+ messages in thread
From: Namhyung Kim @ 2025-11-27 20:58 UTC (permalink / raw)
  To: Peter Zijlstra, Ingo Molnar, Arnaldo Carvalho de Melo,
	Mark Rutland, Alexander Shishkin, Jiri Olsa, Ian Rogers,
	Adrian Hunter, Paul Walmsley, Palmer Dabbelt, Albert Ou,
	Alexandre Ghiti, Samuel Holland, Eric Lin, Inochi Amaoto
  Cc: linux-perf-users, linux-kernel, linux-riscv, Yixun Lan,
	Longbin Li

On Tue, 14 Oct 2025 09:48:29 +0800, Inochi Amaoto wrote:
> T-HEAD C920 has a V2 iteration, which supports Sscompmf. The V2
> iteration supports the same perf events as V1.
> 
> Reuse T-HEAD c900-legacy JSON file for T-HEAD C920V2.
> 
> 
Applied to perf-tools-next, thanks!

Best regards,
Namhyung



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

end of thread, other threads:[~2025-11-27 20:58 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-10-14  1:48 [PATCH v2] perf vendor events riscv: add T-HEAD C920V2 JSON support Inochi Amaoto
2025-11-26  0:52 ` Paul Walmsley
2025-11-26 17:59   ` Namhyung Kim
2025-11-27 20:58 ` Namhyung Kim

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).