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)
committerLucas De Marchi <lucas.demarchi@intel.com>
Mon, 25 Mar 2024 18:45:32 +0000 (13:45 -0500)
commit23e1ee3a2317f41f47d4f7255257431c5f8d1c2c
tree1a5f7cb2b9e7236c4386bfb6b2739ceead6116b9
parentb7dce525c4fcc92b373136288309f8c9ca6c375f
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
(cherry picked from commit a5ef563b1d676548a4c5016540833ff970230964)
Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
drivers/gpu/drm/xe/xe_device.h