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

Drew Fustini fustini at kernel.org
Wed Jan 28 12:27:36 PST 2026


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 at kernel.org>
---
 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




More information about the linux-riscv mailing list