[PATCH v8 3/5] riscv_cbqri: Make RESCTRL_FS available on RISC-V
From: Drew Fustini
Date: Thu Sep 17 2026 - 14:10:57 EST
Enough CBQRI support is now present to enable ARCH_HAS_CPU_RESCTRL.
Have RISCV_CBQRI select it so that RESCTRL_FS can be enabled on
RISC-V, and default RISCV_CBQRI to y. RISCV_ISA_SSQOSID is default n,
so this only affects kernels where the user has already opted into
Ssqosid, and on those the CBQRI support is what makes the extension
useful.
This is a separate patch so that no commit makes RESCTRL_FS selectable
before the resctrl glue it depends on exists. Enabling the resctrl
filesystem itself stays a user choice under MISC_FILESYSTEMS.
Tested-by: Chen Pei <cp0613@xxxxxxxxxxxxxxxxx>
Signed-off-by: Drew Fustini <fustini@xxxxxxxxxx>
---
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