drm/xe/device: fix XE_MAX_TILES_PER_DEVICE check
authorMatthew Auld <matthew.auld@intel.com>
Mon, 18 Mar 2024 18:05:35 +0000 (18:05 +0000)
committerMatthew Auld <matthew.auld@intel.com>
Tue, 19 Mar 2024 08:49:00 +0000 (08:49 +0000)
commita96cd71ec7be0790f9fc4039ad21be8d214b03a4
tree4848a21fc55c7e9ab501ce29dc8dcb3c37abd92f
parenta5ef563b1d676548a4c5016540833ff970230964
drm/xe/device: fix XE_MAX_TILES_PER_DEVICE check

Here XE_MAX_TILES_PER_DEVICE is the gt array size, therefore the gt
index should always be less than.

v2 (Lucas):
  - Add fixes tag.

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>
Acked-by: Lucas De Marchi <lucas.demarchi@intel.com>
Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240318180532.57522-6-matthew.auld@intel.com
drivers/gpu/drm/xe/xe_device.h