From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3FEE0606A690 for ; Mon, 23 Nov 2026 18:11:06 +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=DZXzH+gY Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xVYUu-0007e6-LD; Mon, 23 Nov 2026 13:10:36 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xVYUr-0007dT-Bc; Mon, 23 Nov 2026 13:10:33 -0500 Received: from sea.source.kernel.org ([2600:3c0a:e001:78e:0:1991:8:25]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xVYUo-0003nz-S7; Mon, 23 Nov 2026 13:10:32 -0500 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) by sea.source.kernel.org (Postfix) with ESMTP id E3428408F6; Mon, 23 Nov 2026 18:10:25 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 71F7C1F000E0; Mon, 23 Nov 2026 18:10:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1795457425; bh=u/FzUNiiaXd0fYrKBwJcQUxaZTleX1WMVlzIdh1TY3Y=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=DZXzH+gYW3pgAOrZVqbkvYMIrlyxmyIPtW5GJ8XfBelhxHk0GH77Px6peubKgs3bI bk4W7YrxFkSSk9e8bLdubU1nKsrwzaCFrR/a+sbvmnnKeNGbOrJxlrzfVZJ7GAhUf4 fJs66xx3fHycrQ9FKiRn02Rp4Up8StaxE3uGIPoVc1OFxTzYnD0eGMfZdHr0O0e7Hn ZeNKusto9bunL4I6HlkJH3NxOv1b2mvo+ySmeQmn7D0tOoTCxR6ypw4CWPGagyt3o5 xybnKxdiSVdnU+qrKEWorNOqwMOG1Te8N8q6cno33Xbpqrr+WLCALpK4ympYuxhvgE FFz0+HS6eagyQ== Date: Mon, 23 Nov 2026 10:10:24 -0800 From: Drew Fustini To: Daniel Henrique Barboza , Sunil V L , Anup Patel Cc: qemu-devel@nongnu.org, qemu-riscv@nongnu.org, Palmer Dabbelt , Alistair Francis , Sunil V L , Anup Patel , Weiwei Li , Liu Zhiwei , Chao Liu , Paolo Bonzini , Nicolas Pitre , Kornel =?utf-8?Q?Dul=C4=99ba?= , Atish Patra , Radim =?utf-8?B?S3LEjW3DocWZ?= , yunhui cui , Chen Pei , guo.wenjia23@zte.com.cn, liu.qingtao2@zte.com.cn Subject: Re: [PATCH v8 4/6] hw/riscv: implement CBQRI bandwidth controller Message-ID: References: <20261111-riscv-ssqosid-cbqri-v8-0-121f6dcfb573@kernel.org> <20261111-riscv-ssqosid-cbqri-v8-4-121f6dcfb573@kernel.org> <87e5d269-d875-4afb-87cf-2b2658a7b740@oss.qualcomm.com> X-Archived-By: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87e5d269-d875-4afb-87cf-2b2658a7b740@oss.qualcomm.com> Received-SPF: pass client-ip=2600:3c0a:e001:78e:0:1991:8:25; envelope-from=fustini@kernel.org; helo=sea.source.kernel.org X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-riscv@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Archive: List-Post: List-Help: List-Subscribe: , Sender: qemu-riscv-bounces+qemu-riscv=archiver.kernel.org@nongnu.org X-Spam-Status: No, score=-15.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER,MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING, SPF_HELO_PASS,SPF_PASS autolearn=unavailable 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 Mon, Nov 23, 2026 at 12:22:03PM -0300, Daniel Henrique Barboza wrote: > > > On 11/11/2026 8:38 PM, Drew Fustini wrote: > > From: Nicolas Pitre > > > > Implement a bandwidth controller according to the Capacity and Bandwidth > > QoS Register Interface (CBQRI) which supports these capabilities: > > > > - Number of access types: 2 (code and data) > > - Usage monitoring operations: CONFIG_EVENT, READ_COUNTER > > - Event IDs supported: None, Total read/write byte count, Total > > read byte count, Total write byte count > > - Bandwidth allocation operations: CONFIG_LIMIT, READ_LIMIT > > > > The controller gives the Linux resctrl support for CBQRI a device to > > configure and read back bandwidth limits per RCID on the virt machine. > > Only the register interface is modeled. The configured limits are not > > enforced and the monitoring counters are always marked INVALID because > > QEMU does not model memory bandwidth usage. > > > > Link: https://github.com/riscv-non-isa/riscv-cbqri/releases/tag/v1.0 > > Signed-off-by: Nicolas Pitre > > [fustini: rebase, add fields introduced in the ratified spec] > > Signed-off-by: Drew Fustini > > --- > > Reviewed-by: Daniel Henrique Barboza Thank you for reviewing. Alistair told me in the qemu riscv call last week that I should have a tcg test for srmcfg csr. I need to send a v9 with that added. Alistair also expressed concern about adding caches to the virt machine. He explained to me that the virt machine is really meant to be used with kvm and there really is not a role for modeling caches in that scenario. I had recently considered sending v9 with just the Ssqosid patches and holding back the CBQRI controller patches until there is a real hardware platform to model as a machine in qemu that implements both capacity controllers and bandwidth controllers. Atlantis only implements capacity allocation for the shared cache with no monitoring, and there is no bandwidth controller. However, I am thinking this morning that I should probably just post all the patches again for v9 and see what people think. I think the RQSC series is more complicated since it does need caches added to some machine in qemu and I am not sure what the right answer is for that. Thanks, Drew