From: "Drew Fustini (Tenstorrent)" <fustini@kernel.org>
To: Sunil V L <sunilvl@oss.qualcomm.com>
Cc: "Rafael J. Wysocki" <rafael@kernel.org>,
"Len Brown" <lenb@kernel.org>, "Paul Walmsley" <pjw@kernel.org>,
"Palmer Dabbelt" <palmer@dabbelt.com>,
"Albert Ou" <aou@eecs.berkeley.edu>,
"Alexandre Ghiti" <alex@ghiti.fr>,
"Atish Patra" <atish.patra@linux.dev>,
"Anup Patel" <anup.patel@oss.qualcomm.com>,
"Chen Pei" <cp0613@linux.alibaba.com>,
"yunhui cui" <cuiyunhui@bytedance.com>,
"Reinette Chatre" <reinette.chatre@intel.com>,
"Radim Krčmář" <radim.krcmar@oss.qualcomm.com>,
"Zeng Heng" <zengheng@picoheart.com>,
"Conor Dooley" <conor.dooley@microchip.com>,
"Ben Horgan" <ben.horgan@arm.com>,
"James Morse" <james.morse@arm.com>,
"Tony Luck" <tony.luck@intel.com>,
"Adrien Ricciardi" <aricciardi@baylibre.com>,
"Zhanpeng Zhang" <zhangzhanpeng.jasper@bytedance.com>,
"Gong Shuai" <gong.shuai@sanechips.com.cn>,
"Gong Shuai" <gsh517@gmail.com>,
"Weiwei Li" <liwei1518@gmail.com>,
"Liu Zhiwei" <zhiwei_liu@linux.alibaba.com>,
"Kornel Dulęba" <mindal@semihalf.com>,
"Samuel Holland" <samuel.holland@sifive.com>,
guo.wenjia23@zte.com.cn, liu.qingtao2@zte.com.cn,
"Dave Martin" <Dave.Martin@arm.com>,
"Babu Moger" <babu.moger@amd.com>,
"Fenghua Yu" <fenghuay@nvidia.com>,
"Peter Newman" <peternewman@google.com>,
"Shaopeng Tan" <tan.shaopeng@jp.fujitsu.com>,
"Jonathan Cameron" <jic23@kernel.org>,
"Catalin Marinas" <catalin.marinas@arm.com>,
linux-acpi@vger.kernel.org, linux-riscv@lists.infradead.org,
linux-kernel@vger.kernel.org,
"Drew Fustini (Tenstorrent)" <fustini@kernel.org>
Subject: [PATCH 1/3] ACPI: RISC-V: Add RQSC table definitions
Date: Tue, 17 Nov 2026 14:11:27 -0800 [thread overview]
Message-ID: <20261117-acpi-rqsc-v1-1-381ce645751e@kernel.org> (raw)
In-Reply-To: <20261117-acpi-rqsc-v1-0-381ce645751e@kernel.org>
The RISC-V Quality of Service Controllers (RQSC) table describes the
CBQRI capacity and bandwidth controllers in a system. RQSC v1.0 was
ratified in June 2026. Add structure definitions for RQSC.
The definitions stay in drivers/acpi/riscv until ACPICA carries them
in actbl2.h.
Link: https://github.com/open-acpica/acpica/pull/1262
Signed-off-by: Drew Fustini (Tenstorrent) <fustini@kernel.org>
---
drivers/acpi/riscv/rqsc.h | 67 +++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 67 insertions(+)
diff --git a/drivers/acpi/riscv/rqsc.h b/drivers/acpi/riscv/rqsc.h
new file mode 100644
index 000000000000..d9a4ce0f1c10
--- /dev/null
+++ b/drivers/acpi/riscv/rqsc.h
@@ -0,0 +1,67 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
+/*
+ * Definitions for the RISC-V Quality of Service Controllers (RQSC) ACPI
+ * table, kept here until ACPICA carries them in actbl2.h.
+ */
+#ifndef _DRIVERS_ACPI_RISCV_RQSC_H
+#define _DRIVERS_ACPI_RISCV_RQSC_H
+
+#include <linux/acpi.h>
+#include <linux/types.h>
+
+#define ACPI_SIG_RQSC "RQSC" /* RISC-V Quality of Service Controllers Table */
+
+#define ACPI_RQSC_REVISION 1
+
+/* QoS Controller Type */
+#define ACPI_RQSC_CONTROLLER_TYPE_CAPACITY 0
+#define ACPI_RQSC_CONTROLLER_TYPE_BANDWIDTH 1
+
+/* Resource Type */
+#define ACPI_RQSC_RESOURCE_TYPE_CACHE 0
+#define ACPI_RQSC_RESOURCE_TYPE_MEMORY 1
+
+/* Resource ID Type */
+#define ACPI_RQSC_RESOURCE_ID_TYPE_PROCESSOR_CACHE 0
+#define ACPI_RQSC_RESOURCE_ID_TYPE_MEMORY_RANGE 1
+#define ACPI_RQSC_RESOURCE_ID_TYPE_MEMORY_SIDE_CACHE 2
+#define ACPI_RQSC_RESOURCE_ID_TYPE_ACPI_DEVICE 3
+#define ACPI_RQSC_RESOURCE_ID_TYPE_PCI_DEVICE 4
+
+/* Controller Flags */
+#define ACPI_RQSC_CONTROLLER_ZERO_BLOCKS (1) /* Zero blocks can be allocated to an RCID */
+
+struct acpi_rqsc_resource {
+ u8 type;
+ u8 reserved;
+ u16 length;
+ u16 flags;
+ u8 reserved2;
+ u8 id_type;
+ u64 id1;
+ u32 id2;
+} __packed;
+
+/* Resource Specific Data that follows a memory resource */
+struct acpi_rqsc_memory_data {
+ u64 bandwidth_per_block; /* In bytes per second, 0 if not provided */
+} __packed;
+
+struct acpi_rqsc_controller {
+ u8 type;
+ u8 reserved;
+ u16 length;
+ struct acpi_generic_address address;
+ u16 rcid_count;
+ u16 mcid_count;
+ u16 flags;
+ u16 num_resources;
+ /* Followed by num_resources struct acpi_rqsc_resource */
+} __packed;
+
+struct acpi_table_rqsc {
+ struct acpi_table_header header; /* Common ACPI table header */
+ u32 num_controllers;
+} __packed;
+
+#endif /* _DRIVERS_ACPI_RISCV_RQSC_H */
--
2.43.0
next prev parent reply other threads:[~2026-11-17 22:11 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-17 22:11 [PATCH 0/3] ACPI: RISC-V: Add support for the RQSC table Drew Fustini (Tenstorrent)
2026-11-17 22:11 ` Drew Fustini (Tenstorrent) [this message]
2026-11-17 22:11 ` [PATCH 2/3] ACPI: RISC-V: Enumerate CBQRI controllers from " Drew Fustini (Tenstorrent)
2026-11-17 22:11 ` [PATCH 3/3] riscv_cbqri: Bind to RQSC platform devices Drew Fustini (Tenstorrent)
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=20261117-acpi-rqsc-v1-1-381ce645751e@kernel.org \
--to=fustini@kernel.org \
--cc=Dave.Martin@arm.com \
--cc=alex@ghiti.fr \
--cc=anup.patel@oss.qualcomm.com \
--cc=aou@eecs.berkeley.edu \
--cc=aricciardi@baylibre.com \
--cc=atish.patra@linux.dev \
--cc=babu.moger@amd.com \
--cc=ben.horgan@arm.com \
--cc=catalin.marinas@arm.com \
--cc=conor.dooley@microchip.com \
--cc=cp0613@linux.alibaba.com \
--cc=cuiyunhui@bytedance.com \
--cc=fenghuay@nvidia.com \
--cc=gong.shuai@sanechips.com.cn \
--cc=gsh517@gmail.com \
--cc=guo.wenjia23@zte.com.cn \
--cc=james.morse@arm.com \
--cc=jic23@kernel.org \
--cc=lenb@kernel.org \
--cc=linux-acpi@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-riscv@lists.infradead.org \
--cc=liu.qingtao2@zte.com.cn \
--cc=liwei1518@gmail.com \
--cc=mindal@semihalf.com \
--cc=palmer@dabbelt.com \
--cc=peternewman@google.com \
--cc=pjw@kernel.org \
--cc=radim.krcmar@oss.qualcomm.com \
--cc=rafael@kernel.org \
--cc=reinette.chatre@intel.com \
--cc=samuel.holland@sifive.com \
--cc=sunilvl@oss.qualcomm.com \
--cc=tan.shaopeng@jp.fujitsu.com \
--cc=tony.luck@intel.com \
--cc=zengheng@picoheart.com \
--cc=zhangzhanpeng.jasper@bytedance.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®