drm/xe: Fix GT looping for standalone media
authorRiana Tauro <riana.tauro@intel.com>
Tue, 13 Jun 2023 09:42:32 +0000 (15:12 +0530)
committerRodrigo Vivi <rodrigo.vivi@intel.com>
Thu, 21 Dec 2023 16:34:38 +0000 (11:34 -0500)
commit1e80d0c3c44806e6ff885102a937ea838a01f560
treecfccbc72baa108071a490053f4b01b703b17a22b
parent2846d10339a2cc304a1ae55ce75e61eb7f55eb0b
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: Riana 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: Matt Roper <matthew.d.roper@intel.com>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
drivers/gpu/drm/xe/xe_pci.c