From: Drew Fustini <fustini@kernel.org>
To: sashiko-reviews@lists.linux.dev
Cc: devicetree@vger.kernel.org, robh@kernel.org, conor+dt@kernel.org,
linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org
Subject: Re: [PATCH v13 4/5] dt-bindings: riscv: Add binding for CBQRI controllers
Date: Thu, 3 Dec 2026 13:57:11 -0800 [thread overview]
Message-ID: <axHlt7EcM_zhpetY@thelio> (raw)
In-Reply-To: <sashiko-outbox-247533@kernel.org>
On Thu, Dec 03, 2026 at 10:14:27AM +0000, sashiko-bot@kernel.org wrote:
> Thank you for your contribution! Sashiko AI review found 3 potential
> issues to consider:
> - [Low] dt-bindings: riscv: redundant word binding in commit subject
> - [Low] dt-bindings: riscv: unrelated l2-cache node in binding examples
> - [Low] dt-bindings: riscv: riscv,cbqri omits else disallowing
> riscv,cbqri-cache
> --
>
> commit 63d52e4c1ccf2d770236b537053128d71ffee89a
> Author: Drew Fustini <fustini@kernel.org>
>
> dt-bindings: riscv: Add binding for CBQRI controllers
>
> This commit adds the Device Tree binding schema for RISC-V CBQRI
> capacity and bandwidth controllers and registers it in MAINTAINERS.
>
> > dt-bindings: riscv: Add binding for CBQRI controllers
>
> [Severity: Low]
> The dt-bindings: prefix already states that this patch adds a binding,
> so Documentation/devicetree/bindings/submitting-patches.rst recommends
> avoiding the redundant word "binding" in the subject (for example,
> "dt-bindings: riscv: Add CBQRI controllers").
It already had DT maintainer Rb but Rob raises good points about the
schema so I will change the subject for v14.
> > diff --git a/Documentation/devicetree/bindings/riscv/riscv,cbqri.yaml b/Documentation/devicetree/bindings/riscv/riscv,cbqri.yaml
> > new file mode 100644
> > index 0000000000000..160b0bc797b18
> > --- /dev/null
> > +++ b/Documentation/devicetree/bindings/riscv/riscv,cbqri.yaml
>
> [ ... ]
>
> > + riscv,cbqri-cache:
> > + $ref: /schemas/types.yaml#/definitions/phandle
> > + description:
> > + Phandle to the cache node whose capacity this controller allocates.
> > + Applies to capacity controllers that back a CPU cache. The cache level
> > + and the harts sharing it are taken from that node's cache topology.
> > +
> > +required:
> > + - compatible
> > + - reg
> > +
> > +allOf:
> > + - if:
> > + properties:
> > + compatible:
> > + contains:
> > + const: riscv,cbqri-capacity-controller
> > + then:
> > + required:
> > + - riscv,cbqri-rcid
> > + - riscv,cbqri-cache
>
> [Severity: Low]
> Should this allOf conditional include an else branch that sets
> riscv,cbqri-cache to false?
>
> Because riscv,cbqri-cache is declared at the top level and only applies
> to capacity controllers, a bandwidth-controller node carrying it would
> pass dtbs_check once a vendor compatible replaces the not: {}
> placeholder.
The bandwidth branch of the compatible is "not: {}" for now, so no
bandwidth controller node can validate at all with this current binding.
Anyways, Rob has raised concern that means some of this will change
anyways.
> > +examples:
> > + - |
> > + l2_cache: l2-cache {
> > + compatible = "cache";
> > + cache-level = <2>;
> > + cache-unified;
> > + cache-size = <0xc00000>;
> > + cache-sets = <8192>;
> > + cache-block-size = <64>;
> > + };
> > +
> > + qos-controller@a21a00c0 {
> > + compatible = "tenstorrent,ascalon-shared-cache-controller",
> > + "riscv,cbqri-capacity-controller";
> > + reg = <0xa21a00c0 0xf40>;
> > + riscv,cbqri-rcid = <16>;
> > + riscv,cbqri-cache = <&l2_cache>;
> > + };
>
> [Severity: Low]
> Should the l2-cache node be dropped from the example?
>
> Per Documentation/devicetree/bindings/writing-schema.rst, binding
> examples should not include unrelated nodes referenced only by phandles,
> as phandles in examples do not need to be resolvable.
I don't think this really was an issue and it already had a Rb. But
Rob's feedback means the example will change anyways.
Thanks,
Drew
_______________________________________________
linux-riscv mailing list
linux-riscv@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-riscv
next prev parent reply other threads:[~2026-12-03 21:57 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-03 9:57 [PATCH v13 0/5] riscv: Add initial CBQRI resctrl support Drew Fustini
2026-12-03 9:57 ` [PATCH v13 1/5] riscv_cbqri: Add capacity controller core Drew Fustini
[not found] ` <sashiko-outbox-247531@kernel.org>
2026-12-03 19:38 ` Drew Fustini
2026-12-03 9:57 ` [PATCH v13 2/5] riscv_cbqri: resctrl: Add cache allocation via capacity block mask Drew Fustini
[not found] ` <sashiko-outbox-247572@kernel.org>
2026-12-03 21:48 ` Drew Fustini
2026-12-03 9:57 ` [PATCH v13 3/5] riscv_cbqri: Make RESCTRL_FS available on RISC-V Drew Fustini
2026-12-03 9:57 ` [PATCH v13 4/5] dt-bindings: riscv: Add binding for CBQRI controllers Drew Fustini
2026-12-03 14:58 ` Rob Herring
2026-12-03 22:04 ` Drew Fustini
[not found] ` <sashiko-outbox-247533@kernel.org>
2026-12-03 21:57 ` Drew Fustini [this message]
2026-12-03 9:57 ` [PATCH v13 5/5] riscv_cbqri: Add CBQRI capacity allocation platform driver Drew Fustini
[not found] ` <sashiko-outbox-247562@kernel.org>
2026-12-03 22:07 ` 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=axHlt7EcM_zhpetY@thelio \
--to=fustini@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-riscv@lists.infradead.org \
--cc=robh@kernel.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