drm/xe: fix engine_class bounds check again
authorMatthew Auld <matthew.auld@intel.com>
Mon, 12 Aug 2024 14:13:32 +0000 (15:13 +0100)
committerLucas De Marchi <lucas.demarchi@intel.com>
Thu, 15 Aug 2024 19:16:48 +0000 (12:16 -0700)
commit23ab1cb6591dba7c97b65eb407cd71147bd878b8
treed7a99562aec7a9b1d4c0607d6ec0ab3d75b6eac1
parent4551d60299b5ddc2655b6b365a4b92634e14e04f
drm/xe: fix engine_class bounds check again

This was fixed in commit b7dce525c4fc ("drm/xe/queue: fix engine_class
bounds check"), but then re-introduced in commit 6f20fc09936e ("drm/xe:
Move and export xe_hw_engine lookup.") which should only be simple code
movement of the existing function.

Fixes: 6f20fc09936e ("drm/xe: Move and export xe_hw_engine lookup.")
Signed-off-by: Matthew Auld <matthew.auld@intel.com>
Cc: Dominik Grzegorzek <dominik.grzegorzek@intel.com>
Cc: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Cc: Matthew Brost <matthew.brost@intel.com>
Reviewed-by: Jonathan Cavitt <jonathan.cavitt@intel.com>
Reviewed-by: Lucas De Marchi <lucas.demarchi@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240812141331.729843-2-matthew.auld@intel.com
Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
drivers/gpu/drm/xe/xe_hw_engine.c