Skip to contentSkip to conversation

perf vendor events riscv: add T-HEAD C920V2 JSON support

PATCH Applied Inochi Amaoto 3 participants 4 messages Oct 14, 2025 – Nov 27, 2025

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 perf vendor events riscv: add T-HEAD C920V2 JSON support

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.

---
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(+)
tools/perf/pmu-events/arch/riscv/mapfile.csv +1 -0
index 0a7e7dcc81be..d5eea7f9aa9a 100644
@@ -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

maintainer Acked-by on v2 1/1
#1 lore raw

Hello tools/perf maintainers,

Quoted 6 lines · Inochi Amaoto

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.

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

If it's needed:

- Paul

maintainer
#2 lore raw

Hello,

Quoted 9 lines · Paul Walmsley

Hello tools/perf maintainers,

Quoted 5 lines · Inochi Amaoto

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.

Quoted 8 lines
Quoted 1 line

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

If it's needed:

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

maintainer Applied
#3 lore raw
In reply to Inochi Amaoto
Quoted 6 lines · Inochi Amaoto

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