All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] lib/xe/oa: Add perf consts to support more metrics
@ 2025-08-26 21:15 Sushma Venkatesh Reddy
  2025-08-26 21:15 ` [PATCH 2/2] lib/xe/oa: Update PTL oa-metrics with new compute, memory, and stall counters Sushma Venkatesh Reddy
                   ` (5 more replies)
  0 siblings, 6 replies; 9+ messages in thread
From: Sushma Venkatesh Reddy @ 2025-08-26 21:15 UTC (permalink / raw)
  To: igt-dev; +Cc: sushma.venkatesh.reddy, ashutosh.dixit, kamil.konieczny

Add new metrics: SqidiTotalCount, L3BankTotalCount, L3NodeTotalCount,
GeometryPipeTotalCount, DepthPipeTotalCount and ColorPipeTotalCount

Signed-off-by: Sushma Venkatesh Reddy <sushma.venkatesh.reddy@intel.com>
---
 lib/xe/oa-configs/codegen.py |  9 ++++++++-
 lib/xe/xe_oa.h               | 13 +++++++++++++
 2 files changed, 21 insertions(+), 1 deletion(-)

diff --git a/lib/xe/oa-configs/codegen.py b/lib/xe/oa-configs/codegen.py
index 8629eac6d..d3742e11b 100644
--- a/lib/xe/oa-configs/codegen.py
+++ b/lib/xe/oa-configs/codegen.py
@@ -128,7 +128,6 @@ class Set:
         return self.xml.find(path)
 
 
-#TODO add SqidiTotalCount, L3BankTotalCount, L3NodeTotalCount
 hw_vars_mapping = {
     "$EuCoresTotalCount": { 'c': "perf->devinfo.n_eus", 'desc': "The total number of execution units" },
     "$EuSlicesTotalCount": { 'c': "perf->devinfo.n_eu_slices" },
@@ -164,6 +163,14 @@ hw_vars_mapping = {
     "$ComputeEngineTotalCount": { 'c': "perf->devinfo.n_eus", 'desc': "The total number of execution units" },
 
     "$CopyEngineTotalCount": { 'c': "perf->devinfo.n_eus", 'desc': "The total number of execution units" },
+
+    "$SqidiTotalCount": { 'c': "perf->devinfo.n_sq_idis", 'desc': "Total number of SQIDI units" },
+    "$L3BankTotalCount": { 'c': "perf->devinfo.l3_banks", 'desc': "Total L3 bank count" },
+    "$L3NodeTotalCount": { 'c': "perf->devinfo.n_l3_nodes", 'desc': "Total L3 node count" },
+
+    "$GeometryPipeTotalCount": { 'c': "perf->devinfo.n_geom_pipes", 'desc': "The total number of geometry pipelines" },
+    "$DepthPipeTotalCount": { 'c': "perf->devinfo.n_depth_pipes", 'desc': "The total number of depth pipelines" },
+    "$ColorPipeTotalCount": { 'c': "perf->devinfo.n_color_pipes", 'desc': "The total number of color pipelines" },
 }
 
 def is_hw_var(name):
diff --git a/lib/xe/xe_oa.h b/lib/xe/xe_oa.h
index 7d3d07456..020f6d058 100644
--- a/lib/xe/xe_oa.h
+++ b/lib/xe/xe_oa.h
@@ -110,6 +110,19 @@ struct intel_xe_perf_devinfo {
 	/* Number of threads in one EU */
 	uint64_t eu_threads_count;
 
+	/* Squidi Total Count */
+	uint32_t n_sq_idis;
+	/* L3 Bank Count */
+	uint32_t l3_banks;
+	/* Number of L3 nodes */
+	uint32_t n_l3_nodes;
+	/* Number of depth pipes */
+	uint32_t n_depth_pipes;
+	/* Number of geometry pipes */
+	uint32_t n_geom_pipes;
+	/* Number of color pipes */
+	uint32_t n_color_pipes;
+
 	/**
 	 * Maximu number of slices present on this device (can be more than
 	 * num_slices if some slices are fused).
-- 
2.43.0


^ permalink raw reply related	[flat|nested] 9+ messages in thread
* [PATCH 1/2] lib/xe/oa: Add perf consts to support more metrics
@ 2025-08-23  0:25 Sushma Venkatesh Reddy
  2025-08-23  0:25 ` [PATCH 2/2] lib/xe/oa: Update PTL oa-metrics with new compute, memory, and stall counters Sushma Venkatesh Reddy
  0 siblings, 1 reply; 9+ messages in thread
From: Sushma Venkatesh Reddy @ 2025-08-23  0:25 UTC (permalink / raw)
  To: igt-dev; +Cc: sushma.venkatesh.reddy, ashutosh.dixit, kamil.konieczny

Add new metrics: SqidiTotalCount, L3BankTotalCount, L3NodeTotalCount,
GeometryPipeTotalCount, DepthPipeTotalCount and ColorPipeTotalCount

Signed-off-by: Sushma Venkatesh Reddy <sushma.venkatesh.reddy@intel.com>
---
 lib/xe/oa-configs/codegen.py | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/lib/xe/oa-configs/codegen.py b/lib/xe/oa-configs/codegen.py
index 8629eac6d..d3742e11b 100644
--- a/lib/xe/oa-configs/codegen.py
+++ b/lib/xe/oa-configs/codegen.py
@@ -128,7 +128,6 @@ class Set:
         return self.xml.find(path)
 
 
-#TODO add SqidiTotalCount, L3BankTotalCount, L3NodeTotalCount
 hw_vars_mapping = {
     "$EuCoresTotalCount": { 'c': "perf->devinfo.n_eus", 'desc': "The total number of execution units" },
     "$EuSlicesTotalCount": { 'c': "perf->devinfo.n_eu_slices" },
@@ -164,6 +163,14 @@ hw_vars_mapping = {
     "$ComputeEngineTotalCount": { 'c': "perf->devinfo.n_eus", 'desc': "The total number of execution units" },
 
     "$CopyEngineTotalCount": { 'c': "perf->devinfo.n_eus", 'desc': "The total number of execution units" },
+
+    "$SqidiTotalCount": { 'c': "perf->devinfo.n_sq_idis", 'desc': "Total number of SQIDI units" },
+    "$L3BankTotalCount": { 'c': "perf->devinfo.l3_banks", 'desc': "Total L3 bank count" },
+    "$L3NodeTotalCount": { 'c': "perf->devinfo.n_l3_nodes", 'desc': "Total L3 node count" },
+
+    "$GeometryPipeTotalCount": { 'c': "perf->devinfo.n_geom_pipes", 'desc': "The total number of geometry pipelines" },
+    "$DepthPipeTotalCount": { 'c': "perf->devinfo.n_depth_pipes", 'desc': "The total number of depth pipelines" },
+    "$ColorPipeTotalCount": { 'c': "perf->devinfo.n_color_pipes", 'desc': "The total number of color pipelines" },
 }
 
 def is_hw_var(name):
-- 
2.43.0


^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2025-08-27 10:51 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-08-26 21:15 [PATCH 1/2] lib/xe/oa: Add perf consts to support more metrics Sushma Venkatesh Reddy
2025-08-26 21:15 ` [PATCH 2/2] lib/xe/oa: Update PTL oa-metrics with new compute, memory, and stall counters Sushma Venkatesh Reddy
2025-08-27  2:58   ` Dixit, Ashutosh
2025-08-26 21:31 ` [PATCH 1/2] lib/xe/oa: Add perf consts to support more metrics Dixit, Ashutosh
2025-08-26 22:19 ` ✓ Xe.CI.BAT: success for series starting with [1/2] " Patchwork
2025-08-26 22:29 ` ✓ i915.CI.BAT: " Patchwork
2025-08-27  9:22 ` ✗ Xe.CI.Full: failure " Patchwork
2025-08-27 10:51 ` ✓ i915.CI.Full: success " Patchwork
  -- strict thread matches above, loose matches on Subject: below --
2025-08-23  0:25 [PATCH 1/2] " Sushma Venkatesh Reddy
2025-08-23  0:25 ` [PATCH 2/2] lib/xe/oa: Update PTL oa-metrics with new compute, memory, and stall counters Sushma Venkatesh Reddy

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.