]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
drivers/perf: riscv: Add raw event v2 support
authorAtish Patra <atishp@rivosinc.com>
Tue, 9 Sep 2025 07:03:21 +0000 (00:03 -0700)
committerAnup Patel <anup@brainfault.org>
Tue, 16 Sep 2025 06:19:31 +0000 (11:49 +0530)
commit656ef2ea30a90f910e1d2691674c98e5dcd164b5
treefc4b818c34a79ede6061c7297038dc2ac9c00548
parent8c8d0f002b769dbef26c93d68e49d1d0ba54d094
drivers/perf: riscv: Add raw event v2 support

SBI v3.0 introduced a new raw event type that allows wider
mhpmeventX width to be programmed via CFG_MATCH.

Use the raw event v2 if SBI v3.0 is available.

Reviewed-by: Anup Patel <anup@brainfault.org>
Signed-off-by: Atish Patra <atishp@rivosinc.com>
Acked-by: Paul Walmsley <pjw@kernel.org>
Link: https://lore.kernel.org/r/20250909-pmu_event_info-v6-2-d8f80cacb884@rivosinc.com
Signed-off-by: Anup Patel <anup@brainfault.org>
arch/riscv/include/asm/sbi.h
drivers/perf/riscv_pmu_sbi.c