Re: [PATCH v8 06/22] RISC-V: Add Smcntrpmf extension parsing
From: Paul Walmsley
Date: Tue Aug 04 2026 - 20:44:47 EST
On Wed, 1 Jul 2026, Atish Patra wrote:
> From: Atish Patra <atishp@xxxxxxxxxxxx>
>
> 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@xxxxxxxxxxxx>
> Signed-off-by: Atish Patra <atishp@xxxxxxxxxxxx>
Thanks, queued for v7.3.
- Paul