Devicetree
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Drew Fustini" <fustini@kernel.org>
Cc: devicetree@vger.kernel.org, robh@kernel.org, conor+dt@kernel.org
Subject: Re: [PATCH v13 4/5] dt-bindings: riscv: Add binding for CBQRI controllers
Date: Thu, 03 Dec 2026 10:14:27 +0000	[thread overview]
Message-ID: <sashiko-outbox-247533@kernel.org> (raw)
In-Reply-To: <20261203-dfustini-atl-sc-cbqri-dt-v13-4-eaa688b1624c@kernel.org>

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").

> 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.

[ ... ]

> +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.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261203-dfustini-atl-sc-cbqri-dt-v13-0-eaa688b1624c@kernel.org?part=4

  reply	other threads:[~2026-12-03 10:14 UTC|newest]

Thread overview: 9+ 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
2026-12-03 10:14   ` sashiko-bot
2026-12-03  9:57 ` [PATCH v13 2/5] riscv_cbqri: resctrl: Add cache allocation via capacity block mask 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 10:14   ` sashiko-bot [this message]
2026-12-03  9:57 ` [PATCH v13 5/5] riscv_cbqri: Add CBQRI capacity allocation platform driver Drew Fustini
2026-12-03 10:18   ` sashiko-bot

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=sashiko-outbox-247533@kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=fustini@kernel.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