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 DC517606A322 for ; Thu, 3 Dec 2026 14:58:41 +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=NX81T8bU; 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=D0sd1Nvw 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=Es/rL0PHM5L+L16FVSfXAI03f1uzHn0blBVqQeB4mxo=; b=NX81T8bUMuRIqR8jIvejcPJtBi i+pMvdrD1aFqsUv6zkkrJWsQkK3V6KkzJajxR5l7ee2n3BPmZSjTj7SfkVOhSGNy9geQ/vq1nn3dO tycxuLQov1z6eUQKSPIQGyScezrG//2/DGtZkh6R1Gx0mV9IqVDgvelILMcvsJFApy1ARVEH7sKwj 9HneFgzfuOhQ2EvpgpJ848IHU2oZhtkjO1BNGtiVHnnWujU8t2jiju4TpbCXYEEmdcTGUGxv4MmbD u4TcN7uGZU+3tnEWgYnKUiBJsumh4+dzg70eXeeYoHp3HY7W99mVXdvnwpq14hc46RqQ2f7vzN1TH c0W9YFzQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.100.1 #2 (Red Hat Linux)) id 1xZ8Ga-0000000F2Z3-3tMz; Thu, 03 Dec 2026 14:58:36 +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 1xZ8Ga-0000000F2Yn-0coV for linux-riscv@lists.infradead.org; Thu, 03 Dec 2026 14:58:36 +0000 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) by tor.source.kernel.org (Postfix) with ESMTP id 4CB86629DD; Thu, 3 Dec 2026 14:58:35 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5F1871F00924; Thu, 3 Dec 2026 14:58:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796309914; bh=FXtWgb3e35/SLLgckQwz9HTipW3RqGXCZIAfa3R9IUo=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=D0sd1Nvwh0XsKztdjBItdwA8SXhmQuJ14U2hfuUECuY69bNzB7cDbxFvROMVCy+Yu KKqYZGde0zj1zgT0K6AIa5zh0i7hRge1jvSOjbO/a+ywZJE7QPrRek+RGSLCsIz2si Aw+gVG8crZ2R7d/E7Ydy7rniuhl7TqyHyUX2cLYz4pIQx8Y5ypIHkcM5KjOg6Y+R81 RrbmZ5qSE8V9/+eaRoMtVvHVLIM8x5RaFEwk/OUJDutou8CcTScYM7cx70sfn4dpeo SZmdupZ04mv63xzcbKE9yTP+skiiq04J6ZXQD+BvLqoxWrlbXTJQr/kfay4j8EBgzx 9IsKipZxqlkaw== Date: Thu, 3 Dec 2026 08:58:32 -0600 From: Rob Herring To: Drew Fustini Cc: Adrien Ricciardi , Alexandre Ghiti , Albert Ou , Atish Patra , Babu Moger , Ben Horgan , Borislav Petkov , Chen Pei , Conor Dooley , Conor Dooley , Dave Hansen , Dave Martin , Fenghua Yu , Gong Shuai , Gong Shuai , guo.wenjia23@zte.com.cn, James Morse , Kornel =?utf-8?Q?Dul=C4=99ba?= , Krzysztof Kozlowski , liu.qingtao2@zte.com.cn, Liu Zhiwei , Palmer Dabbelt , Paul Walmsley , Peter Newman , Radim =?utf-8?B?S3LEjW3DocWZ?= , Reinette Chatre , Samuel Holland , Sunil V L , Tony Luck , Weiwei Li , yunhui cui , Zhanpeng Zhang , Catalin Marinas , Jonathan Cameron , Shaopeng Tan , Zeng Heng , linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, x86@kernel.org, devicetree@vger.kernel.org, linux-doc@vger.kernel.org Subject: Re: [PATCH v13 4/5] dt-bindings: riscv: Add binding for CBQRI controllers Message-ID: <20261203145832.GA2762559-robh@kernel.org> 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: <20261203-dfustini-atl-sc-cbqri-dt-v13-4-eaa688b1624c@kernel.org> 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=-18.9 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI, MENTIONS_GIT_HOSTING,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 01:57:05AM -0800, Drew Fustini wrote: > Document the device tree binding for RISC-V CBQRI capacity and bandwidth > controllers. Each controller is named by a device-specific compatible > followed by the generic compatible. The binding also describes the > common riscv,cbqri-rcid and riscv,cbqri-mcid properties, and the > riscv,cbqri-cache phandle, required for capacity controllers, that > links a capacity controller to the cache whose capacity it allocates. > > Reviewed-by: Conor Dooley > Reviewed-by: Zeng Heng > Co-developed-by: Adrien Ricciardi > Signed-off-by: Adrien Ricciardi > Signed-off-by: Drew Fustini > --- > .../devicetree/bindings/riscv/riscv,cbqri.yaml | 98 ++++++++++++++++++++++ > MAINTAINERS | 1 + > 2 files changed, 99 insertions(+) > > diff --git a/Documentation/devicetree/bindings/riscv/riscv,cbqri.yaml b/Documentation/devicetree/bindings/riscv/riscv,cbqri.yaml > new file mode 100644 > index 000000000000..160b0bc797b1 > --- /dev/null > +++ b/Documentation/devicetree/bindings/riscv/riscv,cbqri.yaml > @@ -0,0 +1,98 @@ > +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/riscv/riscv,cbqri.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: RISC-V Capacity and Bandwidth QoS Register Interface (CBQRI) controller > + > +description: | > + The RISC-V CBQRI specification defines capacity-controller and > + bandwidth-controller register blocks that allocate cache capacity and memory > + bandwidth to resource-control IDs (RCIDs) and monitor usage per > + monitoring-counter ID (MCID): > + https://github.com/riscv-non-isa/riscv-cbqri/blob/main/riscv-cbqri.pdf > + > + Allocation and monitoring share one register block, and a controller may > + implement either or both. A driver discovers which at runtime from the > + capabilities register, so the compatible names only the controller type. It > + does not distinguish allocation-only, monitoring-only or combined > + controllers, and no property declares monitoring support. > + > +maintainers: > + - Drew Fustini > + > +properties: > + compatible: > + oneOf: > + - items: > + - enum: > + - tenstorrent,ascalon-shared-cache-controller > + - const: riscv,cbqri-capacity-controller > + - items: > + - not: {} > + description: Needs a vendor-specific compatible > + - const: riscv,cbqri-bandwidth-controller > + > + reg: > + maxItems: 1 > + description: > + The CBQRI controller register block. > + > + riscv,cbqri-rcid: > + $ref: /schemas/types.yaml#/definitions/uint32 > + description: > + The maximum number of RCIDs the controller supports. RCIDs are the > + resource-control IDs that allocation operations target. > + > + riscv,cbqri-mcid: > + $ref: /schemas/types.yaml#/definitions/uint32 > + description: > + The maximum number of MCIDs the controller supports. MCIDs are the > + monitoring-counter IDs that usage-monitoring operations target. Present > + on controllers that implement monitoring. > + > + 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 > + > +additionalProperties: false > + > +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>; Is there any reason why this node can't be the L2 cache? Is this really a separate block? Rob _______________________________________________ linux-riscv mailing list linux-riscv@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-riscv