drm/xe/device: fix XE_MAX_GT_PER_TILE check
authorMatthew Auld <matthew.auld@intel.com>
Mon, 18 Mar 2024 18:05:34 +0000 (18:05 +0000)
committerMatthew Auld <matthew.auld@intel.com>
Tue, 19 Mar 2024 08:47:49 +0000 (08:47 +0000)
commita5ef563b1d676548a4c5016540833ff970230964
tree68757e695ff28d915b08cbb6c330118dd5f7cb29
parentfe87b7dfcb204a161d1e38b0e787b2f5ab520f32
drm/xe/device: fix XE_MAX_GT_PER_TILE check

Here XE_MAX_GT_PER_TILE is the total, therefore the gt index should
always be less than.

Fixes: dd08ebf6c352 ("drm/xe: Introduce a new DRM driver for Intel GPUs")
Signed-off-by: Matthew Auld <matthew.auld@intel.com>
Cc: Nirmoy Das <nirmoy.das@intel.com>
Reviewed-by: Nirmoy Das <nirmoy.das@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240318180532.57522-5-matthew.auld@intel.com
drivers/gpu/drm/xe/xe_device.h