diff --git a/drivers/gpu/drm/xe/xe_device_types.h b/drivers/gpu/drm/xe/xe_device_types.h index 4661bfce2f4e..55a6756c77de 100644 --- a/drivers/gpu/drm/xe/xe_device_types.h +++ b/drivers/gpu/drm/xe/xe_device_types.h @@ -89,9 +89,7 @@ enum xe_page_size_alloc_ctrl_mode { #define XE_VRAM_FLAGS_NEED64K BIT(0) -#define XE_GT0 0 -#define XE_GT1 1 -#define XE_MAX_TILES_PER_DEVICE (XE_GT1 + 1) +#define XE_MAX_TILES_PER_DEVICE 2 /* * Highest GT/tile count for any platform. Used only for memory allocation diff --git a/drivers/gpu/drm/xe/xe_guc_hwconfig.c b/drivers/gpu/drm/xe/xe_guc_hwconfig.c index b300901dbb8e..dc667a71b438 100644 --- a/drivers/gpu/drm/xe/xe_guc_hwconfig.c +++ b/drivers/gpu/drm/xe/xe_guc_hwconfig.c @@ -65,7 +65,7 @@ int xe_guc_hwconfig_init(struct xe_guc *guc) /* * All hwconfig the same across GTs so only GT0 needs to be configured */ - if (gt->info.id != XE_GT0) + if (gt != xe_root_mmio_gt(xe)) return 0; /* ADL_P, DG2+ supports hwconfig table */