]> git.ipfire.org Git - thirdparty/linux.git/commit
drm/xe: Allow to disable engines
authorLucas De Marchi <lucas.demarchi@intel.com>
Wed, 28 May 2025 21:54:06 +0000 (14:54 -0700)
committerLucas De Marchi <lucas.demarchi@intel.com>
Mon, 2 Jun 2025 18:00:46 +0000 (11:00 -0700)
commit58b51df807d7394a09ddb95b47099d59465e3777
tree1bc453b4ab422e244f522b9d77a155afd0149d60
parent2b0ef1f7a2980bf0c5589ff42806eee2d55ea8e6
drm/xe: Allow to disable engines

Sometimes it's useful to load the driver with a smaller set of engines
to allow more targeted debugging, particularly on early enabling.

Besides checking what is fused off in hardware, add similar logic to
disable engines in software. This will use configfs to allow users
to set what engine to disable, so already add prepare for that. The
exact configfs interface will be added later.

Reviewed-by: Matt Roper <matthew.d.roper@intel.com>
Link: https://lore.kernel.org/r/20250528-engine-mask-v4-3-f4636d2a890a@intel.com
Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
drivers/gpu/drm/xe/xe_configfs.c
drivers/gpu/drm/xe/xe_configfs.h
drivers/gpu/drm/xe/xe_hw_engine.c