[Intel-xe] [PATCH] drm/xe : Fix GT looping for standalone media

Riana Tauro riana.tauro at intel.com
Tue Jun 13 09:42:32 UTC 2023


Currently the id of primary gt is set using gt_count and not
the media gt.

set gt->info.id of media gt using gt_count

Signed-off-by: Riana Tauro <riana.tauro at intel.com>
---
 drivers/gpu/drm/xe/xe_pci.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/xe/xe_pci.c b/drivers/gpu/drm/xe/xe_pci.c
index bd1f59b49928..2991cf5365d5 100644
--- a/drivers/gpu/drm/xe/xe_pci.c
+++ b/drivers/gpu/drm/xe/xe_pci.c
@@ -590,7 +590,7 @@ static int xe_info_init(struct xe_device *xe,
 		 * up with platforms that support both together.
 		 */
 		drm_WARN_ON(&xe->drm, id != 0);
-		gt->info.id = 1;
+		gt->info.id = xe->info.gt_count++;
 	}
 
 	return 0;
-- 
2.40.0



More information about the Intel-xe mailing list