[PATCH v8 06/22] RISC-V: Add Smcntrpmf extension parsing

Paul Walmsley pjw at kernel.org
Tue Aug 4 17:44:31 PDT 2026


On Wed, 1 Jul 2026, Atish Patra wrote:

> From: Atish Patra <atishp at rivosinc.com>
> 
> Smcntrpmf extension allows M-mode to enable privilege mode filtering
> for cycle/instret counters. However, the cyclecfg/instretcfg CSRs are
> available in Ssccfg only if Smcntrpmf is present.
> 
> That's why, kernel needs to detect presence of Smcntrpmf extension and
> enable privilege mode filtering for cycle/instret counters.
> 
> Reviewed-by: Clément Léger <cleger at rivosinc.com>
> Signed-off-by: Atish Patra <atishp at rivosinc.com>

Thanks, queued for v7.3.


- Paul


More information about the linux-arm-kernel mailing list