summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNakshtra Goyal <nakshtra.goyal@intel.com>2026-01-13 12:19:28 +0300
committerMatt Roper <matthew.d.roper@intel.com>2026-01-15 23:57:25 +0300
commitc51595b3d25123cb98bd9b1d6f50e57cc6be592b (patch)
treece765eeeb4e3f1c9aa6957361c37f61dba928c80
parente89aacd1ecdd3d13e8f347aa082687878621e03c (diff)
downloadlinux-c51595b3d25123cb98bd9b1d6f50e57cc6be592b.tar.xz
drm/xe/xe_query: Remove check for gt
There's no need to check a userspace-provided GT ID (which may come from any tile) against the number of GTs that can be present on a single tile. The xe_device_get_gt() lookup already checks that the GT ID passed is valid for the current device.(Matt Roper) Signed-off-by: Nakshtra Goyal <nakshtra.goyal@intel.com> Reviewed-by: Matt Roper <matthew.d.roper@intel.com> Link: https://patch.msgid.link/20260113091928.67446-1-nakshtra.goyal@intel.com Signed-off-by: Matt Roper <matthew.d.roper@intel.com>
-rw-r--r--drivers/gpu/drm/xe/xe_query.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/gpu/drm/xe/xe_query.c b/drivers/gpu/drm/xe/xe_query.c
index 75490683bad2..b7b4261968e0 100644
--- a/drivers/gpu/drm/xe/xe_query.c
+++ b/drivers/gpu/drm/xe/xe_query.c
@@ -142,9 +142,6 @@ query_engine_cycles(struct xe_device *xe,
return -EINVAL;
eci = &resp.eci;
- if (eci->gt_id >= xe->info.max_gt_per_tile)
- return -EINVAL;
-
gt = xe_device_get_gt(xe, eci->gt_id);
if (!gt)
return -EINVAL;