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

Charlie Jenkins thecharlesjenkins at gmail.com
Mon Jul 20 00:21:59 PDT 2026


On Wed, 01 Jul 2026 01:46:54 -0700, Atish Patra <atish.patra at linux.dev> wrote:
> 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: Charlie Jenkins <thecharlesjenkins at gmail.com>
Tested-by: Charlie Jenkins <thecharlesjenkins at gmail.com>

-- 
- Charlie




More information about the linux-riscv mailing list