[igt-dev] [PATCH v3 50/57] drm-uapi/xe: Add Tile ID information to the GT info query

Francois Dugast francois.dugast at intel.com
Thu Nov 9 15:54:03 UTC 2023


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

Align 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 3881f8a94..a18c141b1 100644
--- a/include/drm-uapi/xe_drm.h
+++ b/include/drm-uapi/xe_drm.h
@@ -427,6 +427,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 524a1949b..6ccfb0a65 100644
--- a/tests/intel/xe_query.c
+++ b/tests/intel/xe_query.c
@@ -305,6 +305,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