drm/xe: xe_engine_create_ioctl should check gt_count, not tile_count
authorMatt Roper <matthew.d.roper@intel.com>
Tue, 25 Jul 2023 00:34:35 +0000 (17:34 -0700)
committerRodrigo Vivi <rodrigo.vivi@intel.com>
Thu, 21 Dec 2023 16:37:54 +0000 (11:37 -0500)
commit2a6d871bd97722e899780a8e429b0fb5f11dadc6
tree09197df53054a8ae3e49d5630a6237b830c6a570
parent7a060d786cc1d75ffa04256826d805686b8f1043
drm/xe: xe_engine_create_ioctl should check gt_count, not tile_count

Platforms like MTL only have a single tile, but multiple GTs.
Ensure XE_ENGINE_CREATE accepts engine creation on gt1 on such
platforms.

Reviewed-by: Lucas De Marchi <lucas.demarchi@intel.com>
Link: https://lore.kernel.org/r/20230725003433.1992137-4-matthew.d.roper@intel.com
Signed-off-by: Matt Roper <matthew.d.roper@intel.com>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
drivers/gpu/drm/xe/xe_engine.c