Commit 1a912c90 authored by Rodrigo Vivi's avatar Rodrigo Vivi

drm/xe/uapi: Remove GT_TYPE_REMOTE

With the split between tile and gt, this is currently unused.
Also it is bringing confusion because main vs remote would be
more a concept of the tile itself and not about GT.

So, the MAIN one is the traditional GT used for every operation
in older platforms, and for render/graphics and compute on platforms
that contains the stand-alone Media GT.

Cc: Matt Roper <matthew.d.roper@intel.com>
Cc: Francois Dugast <francois.dugast@intel.com>
Cc: Carl Zhang <carl.zhang@intel.com>
Cc: José Roberto de Souza <jose.souza@intel.com>
Signed-off-by: default avatarRodrigo Vivi <rodrigo.vivi@intel.com>
Signed-off-by: default avatarFrancois Dugast <francois.dugast@intel.com>
Reviewed-by: default avatarJosé Roberto de Souza <jose.souza@intel.com>
parent de84aa96
...@@ -372,8 +372,6 @@ static int query_gt_list(struct xe_device *xe, struct drm_xe_device_query *query ...@@ -372,8 +372,6 @@ static int query_gt_list(struct xe_device *xe, struct drm_xe_device_query *query
for_each_gt(gt, xe, id) { for_each_gt(gt, xe, id) {
if (xe_gt_is_media_type(gt)) if (xe_gt_is_media_type(gt))
gt_list->gt_list[id].type = XE_QUERY_GT_TYPE_MEDIA; gt_list->gt_list[id].type = XE_QUERY_GT_TYPE_MEDIA;
else if (gt_to_tile(gt)->id > 0)
gt_list->gt_list[id].type = XE_QUERY_GT_TYPE_REMOTE;
else else
gt_list->gt_list[id].type = XE_QUERY_GT_TYPE_MAIN; gt_list->gt_list[id].type = XE_QUERY_GT_TYPE_MAIN;
gt_list->gt_list[id].gt_id = gt->info.id; gt_list->gt_list[id].gt_id = gt->info.id;
......
...@@ -343,9 +343,8 @@ struct drm_xe_query_config { ...@@ -343,9 +343,8 @@ struct drm_xe_query_config {
*/ */
struct drm_xe_query_gt { struct drm_xe_query_gt {
#define XE_QUERY_GT_TYPE_MAIN 0 #define XE_QUERY_GT_TYPE_MAIN 0
#define XE_QUERY_GT_TYPE_REMOTE 1 #define XE_QUERY_GT_TYPE_MEDIA 1
#define XE_QUERY_GT_TYPE_MEDIA 2 /** @type: GT type: Main or Media */
/** @type: GT type: Main, Remote, or Media */
__u16 type; __u16 type;
/** @gt_id: Unique ID of this GT within the PCI Device */ /** @gt_id: Unique ID of this GT within the PCI Device */
__u16 gt_id; __u16 gt_id;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment