[igt-dev] [PATCH v2 54/64] drm-uapi/xe: Add Tile ID information to the GT info query

Francois Dugast francois.dugast at intel.com
Fri Nov 3 14:43:49 UTC 2023


From: Rodrigo Vivi <rodrigo.vivi at intel.com>

Aligns with kernel commit ("drm/xe/uapi: Add Tile ID information to the GT info query")

Signed-off-by: Rodrigo Vivi <rodrigo.vivi at intel.com>
---
 include/drm-uapi/xe_drm.h | 2 ++
 tests/intel/xe_query.c    | 1 +
 2 files changed, 3 insertions(+)

diff --git a/include/drm-uapi/xe_drm.h b/include/drm-uapi/xe_drm.h
index fea729aad..17b25f66d 100644
--- a/include/drm-uapi/xe_drm.h
+++ b/include/drm-uapi/xe_drm.h
@@ -426,6 +426,8 @@ struct drm_xe_query_gt {
 #define DRM_XE_QUERY_GT_TYPE_MEDIA		1
 	/** @type: GT type: Main or Media */
 	__u16 type;
+	/** @tile_id: Tile ID where this GT lives (Information only) */
+	__u16 tile_id;
 	/** @gt_id: Unique ID of this GT within the PCI Device */
 	__u16 gt_id;
 	/** @reference_clock: A clock frequency for timestamp */
diff --git a/tests/intel/xe_query.c b/tests/intel/xe_query.c
index 4ed4d6cdc..f67b2db23 100644
--- a/tests/intel/xe_query.c
+++ b/tests/intel/xe_query.c
@@ -306,6 +306,7 @@ test_query_gt_list(int fd)
 
 	for (i = 0; i < gt_list->num_gt; i++) {
 		igt_info("type: %d\n", gt_list->gt_list[i].type);
+		igt_info("tile_id: %d\n", gt_list->gt_list[i].tile_id);
 		igt_info("gt_id: %d\n", gt_list->gt_list[i].gt_id);
 		igt_info("reference_clock: %u\n", gt_list->gt_list[i].reference_clock);
 	}
-- 
2.34.1



More information about the igt-dev mailing list