From: Drew Fustini <fustini@kernel.org>
To: sashiko-reviews@lists.linux.dev
Cc: linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH v3 6/8] riscv: Enable resctrl filesystem for Ssqosid
Date: Mon, 6 Jul 2026 10:05:36 -0700 [thread overview]
Message-ID: <akvgYEMC1JPHfReR@x1> (raw)
In-Reply-To: <20260628213007.AE2CD1F000E9@smtp.kernel.org>
On Sun, Jun 28, 2026 at 09:30:07PM +0000, sashiko-bot@kernel.org wrote:
> Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
> - [Medium] RISCV_ISA_SSQOSID unconditionally selects the user-visible menuconfig RISCV_CBQRI, defeating its prompt and violating Kconfig best practices.
> --
>
> commit 6a7bfcfac7becb358efe0bde0c988634f28e5326
> Author: Drew Fustini <fustini@kernel.org>
>
> riscv: Enable resctrl filesystem for Ssqosid
>
> This commit enables the resctrl filesystem for the RISC-V Ssqosid extension.
> It modifies the RISCV_ISA_SSQOSID config to select ARCH_HAS_CPU_RESCTRL and
> RISCV_CBQRI.
>
> > diff --git a/arch/riscv/Kconfig b/arch/riscv/Kconfig
> > index ee586925f9722..9c28bcbc29dc9 100644
> > --- a/arch/riscv/Kconfig
> > +++ b/arch/riscv/Kconfig
> > @@ -594,6 +594,8 @@ config RISCV_ISA_SSQOSID
> > bool "Ssqosid extension support for supervisor mode Quality of Service ID"
> > depends on 64BIT
> > default n
> > + select ARCH_HAS_CPU_RESCTRL
> > + select RISCV_CBQRI
>
> [Severity: Medium]
> Is it intentional to use select on RISCV_CBQRI here?
>
> RISCV_CBQRI appears to be defined as a user-visible menuconfig:
>
> drivers/resctrl/Kconfig:
> menuconfig RISCV_CBQRI
> bool "RISC-V CBQRI support"
> depends on RISCV && RISCV_ISA_SSQOSID
>
> Using select on a user-visible symbol forces it on and overrides the prompt,
> which can create a confusing configuration experience where the option is
> visible but cannot be toggled.
>
> Could this be addressed by either using "depends on" instead of select,
> or by making RISCV_CBQRI a hidden symbol without a prompt?
I'll make RISCV_CBQRI user-selectable in the next revision: drop the select
from RISCV_ISA_SSQOSID, make RISCV_CBQRI depend on RISCV_ISA_SSQOSID with
default y, and move select ARCH_HAS_CPU_RESCTRL onto it.
-Drew
next prev parent reply other threads:[~2026-07-06 17:05 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-06-28 21:18 [PATCH v3 0/8] riscv: Add Ssqosid and initial CBQRI resctrl support Drew Fustini
2026-06-28 21:18 ` [PATCH v3 1/8] dt-bindings: riscv: Add Ssqosid extension description Drew Fustini
2026-06-28 21:18 ` [PATCH v3 2/8] riscv: Detect the Ssqosid extension Drew Fustini
2026-06-28 21:18 ` [PATCH v3 3/8] riscv: Add support for srmcfg CSR from " Drew Fustini
2026-06-28 21:28 ` sashiko-bot
2026-06-29 22:46 ` Drew Fustini
2026-06-28 21:18 ` [PATCH v3 4/8] riscv_cbqri: Add capacity controller probe and allocation device ops Drew Fustini
2026-06-28 21:28 ` sashiko-bot
2026-07-01 0:24 ` Drew Fustini
2026-06-28 21:18 ` [PATCH v3 5/8] riscv_cbqri: resctrl: Add cache allocation via capacity block mask Drew Fustini
2026-06-28 21:34 ` sashiko-bot
2026-07-06 16:59 ` Drew Fustini
2026-07-01 20:18 ` Fenghua Yu
2026-07-03 8:00 ` Drew Fustini
2026-06-28 21:18 ` [PATCH v3 6/8] riscv: Enable resctrl filesystem for Ssqosid Drew Fustini
2026-06-28 21:30 ` sashiko-bot
2026-07-06 17:05 ` Drew Fustini [this message]
2026-06-28 21:18 ` [PATCH v3 7/8] dt-bindings: riscv: Add binding for CBQRI controllers Drew Fustini
2026-06-29 15:32 ` Conor Dooley
2026-06-28 21:18 ` [PATCH v3 8/8] riscv_cbqri: Add CBQRI capacity allocation platform driver Drew Fustini
2026-06-28 21:27 ` sashiko-bot
2026-07-06 17:09 ` Drew Fustini
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=akvgYEMC1JPHfReR@x1 \
--to=fustini@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-riscv@lists.infradead.org \
--cc=sashiko-reviews@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