drm/xe/query: fix gt_id bounds check
authorMatthew Auld <matthew.auld@intel.com>
Thu, 21 Mar 2024 11:06:30 +0000 (11:06 +0000)
committerMatthew Auld <matthew.auld@intel.com>
Fri, 22 Mar 2024 08:14:03 +0000 (08:14 +0000)
commit4b275f502a0d3668195762fb55fa00e659ad1b0b
tree98f1defb311f27313acc66fbbf9b842819ff1644
parentcdf287ce7bd308c51e97080ebe7e9b12c8256f26
drm/xe/query: fix gt_id bounds check

The user provided gt_id should always be less than the
XE_MAX_GT_PER_TILE.

Fixes: 7793d00d1bf5 ("drm/xe: Correlate engine and cpu timestamps with better accuracy")
Signed-off-by: Matthew Auld <matthew.auld@intel.com>
Cc: Nirmoy Das <nirmoy.das@intel.com>
Cc: <stable@vger.kernel.org> # v6.8+
Reviewed-by: Nirmoy Das <nirmoy.das@intel.com>
Acked-by: Himal Prasad Ghimiray <himal.prasad.ghimiray@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240321110629.334701-2-matthew.auld@intel.com
drivers/gpu/drm/xe/xe_query.c