[PATCH RFC v2 15/17] RISC-V: QoS: add Cache ID and Prox Dom to CBQRI controllers

From: Drew Fustini

Date: Wed Jan 28 2026 - 15:31:01 EST


Expand cbqri_controller_info to contain:

- Cache ID from the PPTT table's Cache Type Structure
- Proximity Domain from SRAT table Memory Affifinty Controller

Signed-off-by: Drew Fustini <fustini@xxxxxxxxxx>
---
include/linux/riscv_qos.h | 7 +++++++
1 file changed, 7 insertions(+)

diff --git a/include/linux/riscv_qos.h b/include/linux/riscv_qos.h
index 0c551ed85fe1..4812b6811327 100644
--- a/include/linux/riscv_qos.h
+++ b/include/linux/riscv_qos.h
@@ -27,7 +27,14 @@ struct cbqri_controller_info {
u32 cache_level;
u32 cache_size; /* in bytes */
struct cpumask cpu_mask;
+ // Unique Cache ID from the PPTT table's Cache Type Structure
+ u32 cache_id;
} cache;
+
+ struct mem_controller {
+ // Proximity Domain from SRAT table Memory Affifinty Controller
+ u32 prox_dom;
+ } mem;
};

extern struct list_head cbqri_controllers;

--
2.43.0