Commit 1e80d0c3 authored by Riana Tauro's avatar Riana Tauro Committed by Rodrigo Vivi

drm/xe: Fix GT looping for standalone media

gt_count is only being incremented when initializing the primary GT;
since the media GT sets the ID directly, gt_count is not incremented
again, resulting in an incorrect count on MTL.  Use autoincrement while
assigning the media GTs ID to ensure gt_count is correct on MTL and
other future platforms with standalone media.
Signed-off-by: default avatarRiana Tauro <riana.tauro@intel.com>
Link: https://lore.kernel.org/r/20230613094232.3703549-1-riana.tauro@intel.com
[mattrope: Tweaked commit message to focus on gt_count importance]
Signed-off-by: default avatarMatt Roper <matthew.d.roper@intel.com>
Signed-off-by: default avatarRodrigo Vivi <rodrigo.vivi@intel.com>
parent 2846d103
...@@ -569,7 +569,7 @@ static int xe_info_init(struct xe_device *xe, ...@@ -569,7 +569,7 @@ static int xe_info_init(struct xe_device *xe,
* up with platforms that support both together. * up with platforms that support both together.
*/ */
drm_WARN_ON(&xe->drm, id != 0); drm_WARN_ON(&xe->drm, id != 0);
gt->info.id = 1; gt->info.id = xe->info.gt_count++;
} }
return 0; return 0;
......
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