[PATCH v6 6/8] riscv: Enable resctrl filesystem for Ssqosid
Drew Fustini <[email protected]> Wed, 29 Jul 2026 18:11:33 -0700
| Newsgroups | dev.linux.lists.linux-rt-devel,org.infradead.lists.linux-riscv,org.kernel.vger.linux-devicetree,org.kernel.vger.linux-doc,org.kernel.vger.linux-kernel |
|---|---|
| Message-ID | <[email protected]> |
Make RISCV_CBQRI a user-selectable option (default y) that depends on RISCV_ISA_SSQOSID, rather than having RISCV_ISA_SSQOSID select it unconditionally. A user with Ssqosid hardware can now build a kernel without the CBQRI resctrl support if they do not want it, while the default keeps it enabled. RISCV_CBQRI selects ARCH_HAS_CPU_RESCTRL, which makes RESCTRL_FS available on RISC-V, since resctrl is only meaningful when the CBQRI core that backs it is built. The resctrl filesystem integration is gated separately by RISCV_CBQRI_RESCTRL_FS, a silent option that defaults to y when both RISCV_CBQRI and RESCTRL_FS are enabled. Enabling the resctrl filesystem itself stays a user choice via the standard fs/Kconfig MISC_FILESYSTEMS menu. Signed-off-by: Drew Fustini <[email protected]> --- drivers/resctrl/Kconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/resctrl/Kconfig b/drivers/resctrl/Kconfig index cac23d20124b..617b813b9808 100644 --- a/drivers/resctrl/Kconfig +++ b/drivers/resctrl/Kconfig @@ -33,6 +33,8 @@ config ARM64_MPAM_RESCTRL_FS menuconfig RISCV_CBQRI bool "RISC-V CBQRI support" depends on RISCV && RISCV_ISA_SSQOSID + select ARCH_HAS_CPU_RESCTRL + default y help Capacity and Bandwidth QoS Register Interface (CBQRI) support for RISC-V cache QoS resources. CBQRI exposes cache capacity -- 2.43.0