From: Drew Fustini <fustini@kernel.org>
To: sashiko@lists.linux.dev
Cc: linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH RFC v4 18/18] riscv: enable resctrl filesystem for Ssqosid
Date: Sat, 16 May 2026 23:56:26 -0700 [thread overview]
Message-ID: <aglmmkHKTlt9nhwq@thelio> (raw)
In-Reply-To: <20260512225649.4A949C2BCB0@smtp.kernel.org>
On Tue, May 12, 2026 at 10:56:48PM +0000, sashiko-bot@kernel.org wrote:
> This commit updates the RISCV_ISA_SSQOSID Kconfig option to select
> RISCV_CBQRI_DRIVER. It conditionally selects the driver only if
> RESCTRL_FS is enabled, aiming to keep the filesystem as a user choice.
>
> > RISCV_ISA_SSQOSID selects RISCV_CBQRI_DRIVER, which in turn depends
> > on RESCTRL_FS. Enabling the resctrl filesystem itself stays a user
>
> Is this description accurate?
>
> The driver configuration shows that RISCV_CBQRI_DRIVER only depends on
> RISCV && RISCV_ISA_SSQOSID. The filesystem integration is decoupled into
> a separate silent config, so the driver does not actually depend on
> the filesystem.
The commit message is wrong. I will rewrite it to describe the actual
wiring.
> > diff --git a/arch/riscv/Kconfig b/arch/riscv/Kconfig
> > --- a/arch/riscv/Kconfig
> > +++ b/arch/riscv/Kconfig
> > @@ -596,6 +596,7 @@ config RISCV_ISA_SSQOSID
> > depends on 64BIT
> > default n
> > select ARCH_HAS_CPU_RESCTRL
> > + select RISCV_CBQRI_DRIVER if RESCTRL_FS
>
> Could this conditional selection lead to unexpected configurations?
>
> Because the driver does not actually depend on the filesystem, if a user
> enables the SSQOSID extension but leaves RESCTRL_FS disabled, the
> underlying hardware driver will unexpectedly not be automatically
> selected.
>
> This differs from platforms like ARM64, where ARM64_MPAM unconditionally
> selects ARM64_MPAM_DRIVER regardless of the filesystem configuration.
The 'if RESCTRL_FS' guard is wrong. I will drop it so that enabling
SSQOSID always pulls in the controller driver.
-Drew
_______________________________________________
linux-riscv mailing list
linux-riscv@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-riscv
prev parent reply other threads:[~2026-05-17 6:56 UTC|newest]
Thread overview: 29+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-05-11 5:10 [PATCH RFC v4 00/18] riscv: add Ssqosid and CBQRI resctrl support Drew Fustini
2026-05-11 5:10 ` [PATCH RFC v4 01/18] dt-bindings: riscv: Add Ssqosid extension description Drew Fustini
2026-05-11 5:10 ` [PATCH RFC v4 02/18] riscv: detect the Ssqosid extension Drew Fustini
2026-05-11 5:10 ` [PATCH RFC v4 03/18] riscv: add support for srmcfg CSR from " Drew Fustini
[not found] ` <20260511235300.781C6C2BCB0@smtp.kernel.org>
2026-05-14 22:24 ` Drew Fustini
2026-05-11 5:11 ` [PATCH RFC v4 04/18] fs/resctrl: Add resctrl_is_membw() helper Drew Fustini
2026-05-11 5:11 ` [PATCH RFC v4 05/18] fs/resctrl: Add RDT_RESOURCE_MB_MIN and RDT_RESOURCE_MB_WGHT Drew Fustini
2026-05-11 5:11 ` [PATCH RFC v4 06/18] fs/resctrl: Let bandwidth resources default to min_bw at reset Drew Fustini
2026-05-11 5:11 ` [PATCH RFC v4 07/18] riscv_cbqri: Add capacity controller probe and allocation device ops Drew Fustini
[not found] ` <20260512012635.84FCCC2BCB0@smtp.kernel.org>
2026-05-15 13:46 ` Drew Fustini
2026-05-11 5:11 ` [PATCH RFC v4 08/18] riscv_cbqri: Add capacity controller monitoring " Drew Fustini
[not found] ` <20260512015859.B33A7C2BCB0@smtp.kernel.org>
2026-05-16 3:05 ` Drew Fustini
2026-05-11 5:11 ` [PATCH RFC v4 09/18] riscv_cbqri: Add bandwidth controller probe and allocation " Drew Fustini
[not found] ` <20260512022939.683A1C2BCB0@smtp.kernel.org>
2026-05-16 6:15 ` Drew Fustini
2026-05-11 5:11 ` [PATCH RFC v4 10/18] riscv_cbqri: Add bandwidth controller monitoring " Drew Fustini
2026-05-11 5:11 ` [PATCH RFC v4 11/18] riscv_cbqri: resctrl: Add cache allocation via capacity block mask Drew Fustini
[not found] ` <20260512040135.51715C2BCB0@smtp.kernel.org>
2026-05-16 15:45 ` Drew Fustini
2026-05-11 5:11 ` [PATCH RFC v4 12/18] riscv_cbqri: resctrl: Add L3 cache occupancy monitoring Drew Fustini
[not found] ` <20260512050001.38B24C2BCB0@smtp.kernel.org>
2026-05-16 22:39 ` Drew Fustini
2026-05-11 5:11 ` [PATCH RFC v4 13/18] riscv_cbqri: resctrl: Add MB_MIN bandwidth allocation via Rbwb Drew Fustini
[not found] ` <20260512054240.432A6C2BCB0@smtp.kernel.org>
2026-05-17 0:33 ` Drew Fustini
2026-05-11 5:11 ` [PATCH RFC v4 14/18] riscv_cbqri: resctrl: Add MB_WGHT bandwidth allocation via Mweight Drew Fustini
2026-05-11 5:11 ` [PATCH RFC v4 15/18] riscv_cbqri: resctrl: Add mbm_total_bytes bandwidth monitoring Drew Fustini
[not found] ` <20260512212653.B5715C2BCB8@smtp.kernel.org>
2026-05-17 1:38 ` Drew Fustini
2026-05-11 5:11 ` [PATCH RFC v4 16/18] ACPI: RISC-V: Parse RISC-V Quality of Service Controller (RQSC) table Drew Fustini
[not found] ` <20260512214628.EB578C2BCB0@smtp.kernel.org>
2026-05-17 5:01 ` Drew Fustini
2026-05-11 5:11 ` [PATCH RFC v4 17/18] ACPI: RISC-V: Add support for RISC-V Quality of Service Controller (RQSC) Drew Fustini
2026-05-11 5:11 ` [PATCH RFC v4 18/18] riscv: enable resctrl filesystem for Ssqosid Drew Fustini
[not found] ` <20260512225649.4A949C2BCB0@smtp.kernel.org>
2026-05-17 6:56 ` Drew Fustini [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=aglmmkHKTlt9nhwq@thelio \
--to=fustini@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-riscv@lists.infradead.org \
--cc=sashiko@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox