[PATCH RFC v2 05/17] RISC-V: QoS: define CBQRI capacity and bandwidth capabilities

Drew Fustini fustini at kernel.org
Sat Feb 14 08:25:00 PST 2026


On Fri, Feb 13, 2026 at 03:13:42PM -0800, Reinette Chatre wrote:
> Hi Drew,

Hi! Thanks for your detailed feedback on this series.

> On 1/28/26 12:27 PM, Drew Fustini wrote:
> > Define data structures to store the capacity and bandwidth capabilities
> > that are discovered for a CBQRI-capable controller.
> > 
> > Co-developed-by: Adrien Ricciardi <aricciardi at baylibre.com>
> > Signed-off-by: Adrien Ricciardi <aricciardi at baylibre.com>
> > Signed-off-by: Drew Fustini <fustini at kernel.org>
> > ---
> >  arch/riscv/kernel/qos/internal.h | 128 +++++++++++++++++++++++++++++++++++++++
> >  1 file changed, 128 insertions(+)
> > 
> > diff --git a/arch/riscv/kernel/qos/internal.h b/arch/riscv/kernel/qos/internal.h
> > new file mode 100644
> > index 000000000000..ff2c7eff50be
> > --- /dev/null
> > +++ b/arch/riscv/kernel/qos/internal.h
> > @@ -0,0 +1,128 @@
> > +/* SPDX-License-Identifier: GPL-2.0-only */
> > +#ifndef _ASM_RISCV_QOS_INTERNAL_H
> > +#define _ASM_RISCV_QOS_INTERNAL_H
> > +
> > +#include <linux/resctrl.h>
> 
> The include caught my eye but I did not notice any additions in this patch
> refer to it.
> 
> Reinette
> 

I was using this to make resctrl structs available in the code that
includdes this header:

arch/riscv/kernel/qos/qos.c
arch/riscv/kernel/qos/qos_resctrl.c

Should I rearrange to include resctrl.h directly where it is needed?

Thanks,
Drew



More information about the linux-riscv mailing list