From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C19FC606A322 for ; Thu, 3 Dec 2026 21:57:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=jlVbx6vP; dkim=fail reason="signature verification failed" (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=Rog9pxYk DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Unsubscribe-Post:List-Owner; bh=XqzGkNgCPPHyoW1XvTB4IBAiDoRCIykfZB7cqrWFzxw=; b=jlVbx6vPrz2q59uAsnnVDowZzh FJR7BiBqswBnpGAidUQUXsKLqo1gu2Tvbj7xVVxTI/ne5eXEosUbp8Btk/kNHsrJn6k08AyKZNreJ /FNPUN9dQklBzR8AXNXjDNGbGcLLiY/6XRx7YLZ56qZqDtQZz6UCah7xrC0oan3IGtXP/yKXb9xZE 2UjaAQe4ugRlkXG3C57sLuD6Nz5y4ZMIK3nwbcG/jBuV2AqplIheVjegCQ4VKRRVYIgudGSB75uTl fdSNOiwnkCuluNBB1AVrj6qVPrFr3Fl+wdc9U42CueW6sqSURfWYap7hKlHEWZ8KF8up5L/v9ZpyC EXaSlsnA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.100.1 #2 (Red Hat Linux)) id 1xZEnj-0000000G3l0-2jw9; Thu, 03 Dec 2026 21:57:15 +0000 Received: from tor.source.kernel.org ([2600:3c04:e001:324:0:1991:8:25]) by bombadil.infradead.org with esmtps (Exim 4.100.1 #2 (Red Hat Linux)) id 1xZEni-0000000G3kg-1Pci for linux-riscv@lists.infradead.org; Thu, 03 Dec 2026 21:57:14 +0000 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) by tor.source.kernel.org (Postfix) with ESMTP id 8F6D26121D; Thu, 3 Dec 2026 21:57:12 +0000 (UTC) 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-Archived-By: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: X-BeenThere: linux-riscv@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-riscv" X-Spam-Status: No, score=-8.9 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 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 _______________________________________________ linux-riscv mailing list linux-riscv@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-riscv