[PATCH i-g-t] lib/xe/xe_query: Print L3 bank and node masks
Francois Dugast
francois.dugast at intel.com
Fri Jan 26 15:51:29 UTC 2024
L3 bank and node masks have been added to the uAPI, so print them in
the topology query test. This aligns to kernel commit ("drm/xe: Add
L3 bank and node masks to topology query").
Signed-off-by: Francois Dugast <francois.dugast at intel.com>
---
include/drm-uapi/xe_drm.h | 2 ++
tests/intel/xe_query.c | 2 ++
2 files changed, 4 insertions(+)
diff --git a/include/drm-uapi/xe_drm.h b/include/drm-uapi/xe_drm.h
index bacdca787..170cc0de9 100644
--- a/include/drm-uapi/xe_drm.h
+++ b/include/drm-uapi/xe_drm.h
@@ -513,6 +513,8 @@ struct drm_xe_query_topology_mask {
#define DRM_XE_TOPO_DSS_GEOMETRY (1 << 0)
#define DRM_XE_TOPO_DSS_COMPUTE (1 << 1)
#define DRM_XE_TOPO_EU_PER_DSS (1 << 2)
+#define DRM_XE_TOPO_L3_BANK (1 << 3)
+#define DRM_XE_TOPO_L3_NODE (1 << 4)
/** @type: type of mask */
__u16 type;
diff --git a/tests/intel/xe_query.c b/tests/intel/xe_query.c
index 9a6799c84..0a754f51c 100644
--- a/tests/intel/xe_query.c
+++ b/tests/intel/xe_query.c
@@ -166,6 +166,8 @@ const char *get_topo_name(int value)
case DRM_XE_TOPO_DSS_GEOMETRY: return "DSS_GEOMETRY";
case DRM_XE_TOPO_DSS_COMPUTE: return "DSS_COMPUTE";
case DRM_XE_TOPO_EU_PER_DSS: return "EU_PER_DSS";
+ case DRM_XE_TOPO_L3_BANK: return "L3_BANK";
+ case DRM_XE_TOPO_L3_NODE: return "L3_NODE";
}
return "??";
}
--
2.34.1
More information about the igt-dev
mailing list