]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/xe: Assign GT IDs properly on multi-tile + multi-GT platforms
authorMatt Roper <matthew.d.roper@intel.com>
Tue, 1 Jul 2025 20:13:26 +0000 (13:13 -0700)
committerMatt Roper <matthew.d.roper@intel.com>
Wed, 2 Jul 2025 23:08:54 +0000 (16:08 -0700)
commitbd6a4b978584cb633be0d5cdfbf79803fd31da07
tree3aa47216e31519118d677aa391d085e2ce5e811c
parentfb72cd2104a9a57c390fe773e0c6ff58679a0a12
drm/xe: Assign GT IDs properly on multi-tile + multi-GT platforms

Although "multi-tile" and "multiple GTs per tile" are mutually-exclusive
characteristics on all of our platforms today, this may not always be
true.  Assign GT IDs according to xe->info.max_gt_per_tile in a way that
should work even if future platforms have different configurations.

This patch should not change the behavior of current platforms; it only
future-proofs for potential future designs.

v2:
 - Re-calculate gt_count if tile count gets reduced by MTCFG.  (PVC CI)

Reviewed-by: Ravi Kumar Vodapalli <ravi.kumar.vodapalli@intel.com>
Link: https://lore.kernel.org/r/20250701201320.2514369-14-matthew.d.roper@intel.com
Signed-off-by: Matt Roper <matthew.d.roper@intel.com>
drivers/gpu/drm/xe/xe_mmio.c
drivers/gpu/drm/xe/xe_pci.c