From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796335032; b=ERgSMAHV0kCe2ei6mGQ4KUWu1qEyBFYk17Ts23UjwCD9gSLISDxneVoWLuc43Oo4CiT+ o/+xMNzhqYYTRwXipIj789PvU6ncdQPZgRPSjUZdk4AS4x4zjM2wMUaB/foHjmlc7neFu 5+D0RGuOPJmyox41z+mkVgia5+vPRsUquzg5biSnxlBHwDRvaznzHVKZpGNDsTAleD05J eiIULb9cqG3z/pKjE0RNFkJmlPdoaCuTCJ+Hv6TwZIpQLICdIrP78lvRerIyjy9hOlkgP ZNQjCm/P6CS2yGRvuqMntrXY5m9sDlkUVgKzbwsc+aPtPa26+Z8zPIO4+CF6Mr4xdWg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796335032; h=Received:DKIM-Signature:Date:From:To:Cc:Subject:Message-ID: References:MIME-Version:Content-Type:Content-Disposition:In-Reply-To; bh=1jzUkuRQDw1GnKQoS1FuEsJ7HQGau8Gg2R/AFTVLDdE=; b=QyjSQ+EvH8zaLOuggNZPHNrFyL+Z2+xmKijG4LZOXU1Ng2Bgd4x8QDKguaM8TOqE2cmb fVzgm6xo2J29c/mdtaxu69Nzqoj/uGSHbUFWcd5cRlNPbEmTJOE9kNJfuHYNNZ54WiagE tyRjMNoEt5EsEmdbnPLYInRZF2FYRxDIsKi036FA3Q5j1BiybIWuRH7cueOnzykBSHcom oBl/PqEhtXWZNzVlI1PSd4bheDoJ5hW/iemp9kjYE22oJW8wMVQUJZYnw/PR/HivbEnoy 7Rp2EF7I7lP7VaoifOqOOqRhGOQv4LkgMyTshH4yx+adO5kvDfQhFbYMkhetoCouRNA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=Rog9pxYk; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 73462606A322; Thu, 3 Dec 2026 21:57:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=Rog9pxYk Received: by smtp.kernel.org (Postfix) with ESMTPSA id 308EE1F000C2; Thu, 3 Dec 2026 21:57:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796335032; bh=1jzUkuRQDw1GnKQoS1FuEsJ7HQGau8Gg2R/AFTVLDdE=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=Rog9pxYk6I9OFrw6sBWTwsgTg7DCXwnecYIl+ZPoh5TLLShkEgkXbYqtXVbB/1c/P no02pQQlX7ZsMh8mNtUOByUo2lWtqB2yFxHKhiwNiASVuLFxDaze40dgJyviVtP5Nh EDBk2rCRx9ei50LViq0gk5r+8+FRBTUkL9EwNQSrVBWs7NbQPuf6UyWgKAJZx4DUlh bMAqYfDbxujSOxFJglgnkugMJoC5gdQbi3kRJ3/CmnCn1m5XTuSQsLeo9Q0a8ixA/c eGsLbcmS0OocuW9h21nhxiwsbFKHeBcR97g6wHtgDQAQPuu7FrVnZUnzVEcOiMLppC D/tnLTAQF+pHQ== Date: Thu, 3 Dec 2026 13:57:11 -0800 From: Drew Fustini 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 Message-ID: References: <20261203-dfustini-atl-sc-cbqri-dt-v13-0-eaa688b1624c@kernel.org> <20261203-dfustini-atl-sc-cbqri-dt-v13-4-eaa688b1624c@kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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 > > 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