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

Paul Walmsley <[email protected]> Tue, 4 Aug 2026 18:44:31 -0600 (MDT)
Newsgroups org.kernel.vger.linux-perf-users,org.infradead.lists.linux-arm-kernel,org.infradead.lists.linux-riscv,org.kernel.vger.linux-devicetree,org.kernel.vger.linux-kernel
Message-ID <[email protected]>
  This message is in MIME format.  The first part should be readable text,
  while the remaining parts are likely unreadable without MIME-aware tools.

--8323329-408665861-1785890674=:1383527
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8BIT

On Wed, 1 Jul 2026, Atish Patra wrote:

> From: Atish Patra <[email protected]>
> 
> 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 <[email protected]>
> Signed-off-by: Atish Patra <[email protected]>

Thanks, queued for v7.3.


- Paul
--8323329-408665861-1785890674=:1383527--