All of lore.kernel.org
 help / color / mirror / Atom feed
From: Drew Fustini <fustini@kernel.org>
To: Daniel Henrique Barboza <daniel.barboza@oss.qualcomm.com>,
	Sunil V L <sunilvl@oss.qualcomm.com>,
	Anup Patel <anup.patel@oss.qualcomm.com>
Cc: qemu-devel@nongnu.org, qemu-riscv@nongnu.org,
	"Palmer Dabbelt" <palmer@dabbelt.com>,
	"Alistair Francis" <alistair.francis@wdc.com>,
	"Sunil V L" <sunilvl@oss.qualcomm.com>,
	"Anup Patel" <anup.patel@oss.qualcomm.com>,
	"Weiwei Li" <liwei1518@gmail.com>,
	"Liu Zhiwei" <zhiwei_liu@linux.alibaba.com>,
	"Chao Liu" <chao.liu@processmission.com>,
	"Paolo Bonzini" <pbonzini@redhat.com>,
	"Nicolas Pitre" <npitre@baylibre.com>,
	"Kornel Dulęba" <mindal@semihalf.com>,
	"Atish Patra" <atish.patra@linux.dev>,
	"Radim Krčmář" <radim.krcmar@oss.qualcomm.com>,
	"yunhui cui" <cuiyunhui@bytedance.com>,
	"Chen Pei" <cp0613@linux.alibaba.com>,
	guo.wenjia23@zte.com.cn, liu.qingtao2@zte.com.cn
Subject: Re: [PATCH v8 4/6] hw/riscv: implement CBQRI bandwidth controller
Date: Mon, 23 Nov 2026 10:10:24 -0800	[thread overview]
Message-ID: <awSBkD9LuNBoZLm4@thelio> (raw)
In-Reply-To: <87e5d269-d875-4afb-87cf-2b2658a7b740@oss.qualcomm.com>

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 <npitre@baylibre.com>
> > 
> > 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 <npitre@baylibre.com>
> > [fustini: rebase, add fields introduced in the ratified spec]
> > Signed-off-by: Drew Fustini <fustini@kernel.org>
> > ---
> 
> Reviewed-by: Daniel Henrique Barboza <daniel.barboza@oss.qualcomm.com>

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


  reply	other threads:[~2026-11-23 18:10 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-11 23:38 [PATCH v8 0/6] riscv: implement Ssqosid extension and CBQRI controllers Drew Fustini
2026-11-11 23:38 ` [PATCH v8 1/6] riscv: implement Ssqosid extension and srmcfg CSR Drew Fustini
2026-11-11 23:38 ` [PATCH v8 2/6] hw/riscv: define capabilities of CBQRI controllers Drew Fustini
2026-11-11 23:38 ` [PATCH v8 3/6] hw/riscv: implement CBQRI capacity controller Drew Fustini
2026-11-11 23:38 ` [PATCH v8 4/6] hw/riscv: implement CBQRI bandwidth controller Drew Fustini
2026-11-23 15:22   ` Daniel Henrique Barboza
2026-11-23 18:10     ` Drew Fustini [this message]
2026-11-23 20:39       ` Daniel Henrique Barboza
2026-11-23 21:46         ` Drew Fustini
2026-11-11 23:38 ` [PATCH v8 5/6] hw/riscv: add CBQRI to Kconfig and build if enabled Drew Fustini
2026-11-11 23:38 ` [PATCH v8 6/6] hw/riscv: add CBQRI controllers to virt machine Drew Fustini

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=awSBkD9LuNBoZLm4@thelio \
    --to=fustini@kernel.org \
    --cc=alistair.francis@wdc.com \
    --cc=anup.patel@oss.qualcomm.com \
    --cc=atish.patra@linux.dev \
    --cc=chao.liu@processmission.com \
    --cc=cp0613@linux.alibaba.com \
    --cc=cuiyunhui@bytedance.com \
    --cc=daniel.barboza@oss.qualcomm.com \
    --cc=guo.wenjia23@zte.com.cn \
    --cc=liu.qingtao2@zte.com.cn \
    --cc=liwei1518@gmail.com \
    --cc=mindal@semihalf.com \
    --cc=npitre@baylibre.com \
    --cc=palmer@dabbelt.com \
    --cc=pbonzini@redhat.com \
    --cc=qemu-devel@nongnu.org \
    --cc=qemu-riscv@nongnu.org \
    --cc=radim.krcmar@oss.qualcomm.com \
    --cc=sunilvl@oss.qualcomm.com \
    --cc=zhiwei_liu@linux.alibaba.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.