Commit 2519450a authored by Rodrigo Vivi's avatar Rodrigo Vivi

drm/xe/uapi: Replace useless 'instance' per unique gt_id

Let's have a single GT ID per GT within the PCI Device Card.
Signed-off-by: default avatarRodrigo Vivi <rodrigo.vivi@intel.com>
Signed-off-by: default avatarFrancois Dugast <francois.dugast@intel.com>
Reviewed-by: default avatarMatthew Brost <matthew.brost@intel.com>
parent 25f656f5
...@@ -105,7 +105,7 @@ struct xe_gt { ...@@ -105,7 +105,7 @@ struct xe_gt {
struct { struct {
/** @type: type of GT */ /** @type: type of GT */
enum xe_gt_type type; enum xe_gt_type type;
/** @id: id of GT */ /** @id: Unique ID of this GT within the PCI Device */
u8 id; u8 id;
/** @clock_freq: clock frequency */ /** @clock_freq: clock frequency */
u32 clock_freq; u32 clock_freq;
......
...@@ -593,10 +593,6 @@ static int xe_info_init(struct xe_device *xe, ...@@ -593,10 +593,6 @@ static int xe_info_init(struct xe_device *xe,
return PTR_ERR(tile->primary_gt); return PTR_ERR(tile->primary_gt);
gt = tile->primary_gt; gt = tile->primary_gt;
/*
* FIXME: GT numbering scheme may change depending on UAPI
* decisions.
*/
gt->info.id = xe->info.gt_count++; gt->info.id = xe->info.gt_count++;
gt->info.type = XE_GT_TYPE_MAIN; gt->info.type = XE_GT_TYPE_MAIN;
gt->info.__engine_mask = graphics_desc->hw_engine_mask; gt->info.__engine_mask = graphics_desc->hw_engine_mask;
......
...@@ -376,7 +376,7 @@ static int query_gts(struct xe_device *xe, struct drm_xe_device_query *query) ...@@ -376,7 +376,7 @@ static int query_gts(struct xe_device *xe, struct drm_xe_device_query *query)
gts->gts[id].type = XE_QUERY_GT_TYPE_REMOTE; gts->gts[id].type = XE_QUERY_GT_TYPE_REMOTE;
else else
gts->gts[id].type = XE_QUERY_GT_TYPE_MAIN; gts->gts[id].type = XE_QUERY_GT_TYPE_MAIN;
gts->gts[id].instance = id; gts->gts[id].gt_id = gt->info.id;
gts->gts[id].clock_freq = gt->info.clock_freq; gts->gts[id].clock_freq = gt->info.clock_freq;
if (!IS_DGFX(xe)) if (!IS_DGFX(xe))
gts->gts[id].native_mem_regions = 0x1; gts->gts[id].native_mem_regions = 0x1;
......
...@@ -348,8 +348,8 @@ struct drm_xe_query_gt { ...@@ -348,8 +348,8 @@ struct drm_xe_query_gt {
#define XE_QUERY_GT_TYPE_MEDIA 2 #define XE_QUERY_GT_TYPE_MEDIA 2
/** @type: GT type: Main, Remote, or Media */ /** @type: GT type: Main, Remote, or Media */
__u16 type; __u16 type;
/** @instance: Instance of this GT in the GT list */ /** @gt_id: Unique ID of this GT within the PCI Device */
__u16 instance; __u16 gt_id;
/** @clock_freq: A clock frequency for timestamp */ /** @clock_freq: A clock frequency for timestamp */
__u32 clock_freq; __u32 clock_freq;
/** @features: Reserved for future information about GT features */ /** @features: Reserved for future information about GT features */
......
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