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

Kumar, Janga Rahul janga.rahul.kumar at intel.com
Fri Nov 10 06:15:16 UTC 2023



> -----Original Message-----
> From: igt-dev <igt-dev-bounces at lists.freedesktop.org> On Behalf Of Francois
> Dugast
> Sent: Thursday, November 9, 2023 9:24 PM
> To: igt-dev at lists.freedesktop.org
> Cc: Vivi, Rodrigo <rodrigo.vivi at intel.com>
> Subject: [igt-dev] [PATCH v3 50/57] drm-uapi/xe: Add Tile ID information to
> the GT info query
> 
> 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>

Reviewed-by: Janga Rahul Kumar <janga.rahul.kumar 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