[PATCH v4 0/5] drm/xe: Add configfs to load with fewer engines

Lucas De Marchi lucas.demarchi at intel.com
Wed May 28 21:54:03 UTC 2025


Signed-off-by: Lucas De Marchi <lucas.demarchi at intel.com>
---
Changes in v4:
- Add patch to convert fused off log messages to gt-based and convert
  the new "sw disabled" as well (Matt Roper)
- Add patch to make the internal API visible in the documentation
- Fix upper bound checks: since it's using fls64(), it's invalid when
  it's greater or equal (Matt Roper)
- Greatly simplify the engine pattern parsing by just dup'ing the
  entire pattern rather than the instance part (Jani)
- Improve documentation about the meaning of engine instances and its
  relation with multi-tile platforms (Matt Roper)
- Link to v3: https://lore.kernel.org/r/20250523-engine-mask-v3-0-11817dc6eb63@intel.com

Changes in v3:
- Add patch with coding style changes to header
- Split patches: the use of the mask hw_engine initialization is one and the
  configfs handling is another
- Move the lookup table outside of the function looking up the mask:
  this will also be used in other patches in future
- Change the _show() method to pretty-print engine names: it's not the
  same format as passed in, but covers the "what was exactly parsed"
  while at the same time not require one to lookup the indexes in the
  source code (Stuart)
- Avoid the term "fuse off" (Matt Roper)
- Handle gcscs (Matt Roper)
- Improve and fold conditions for checking if the engine instance is out
  of bounds (Matt Roper)
- Link to v2: https://lore.kernel.org/r/20250520-engine-mask-v2-1-46e76f935b35@intel.com

Changes in v2:
- Fix build with CONFIG_CONFIGFS_FS=n
- Link to v1: https://lore.kernel.org/r/20250520-engine-mask-v1-1-ce6daf16d23b@intel.com
---
Lucas De Marchi (5):
      drm/xe/configfs: Drop trailing semicolons
      drm/xe: Convert "fused off" messages to be gt-based
      drm/xe: Allow to disable engines
      drm/xe/configfs: Add attribute to disable engines
      drm/xe/configfs: Add internal API to documentation

 Documentation/gpu/xe/xe_configfs.rst |  10 ++-
 drivers/gpu/drm/xe/xe_configfs.c     | 160 +++++++++++++++++++++++++++++++++++
 drivers/gpu/drm/xe/xe_configfs.h     |  10 ++-
 drivers/gpu/drm/xe/xe_hw_engine.c    |  37 +++++---
 4 files changed, 200 insertions(+), 17 deletions(-)

base-commit: f9b3e6ff6ee2fc39545dde4b195c5c4452939f9f
change-id: 20250520-engine-mask-f6f5962afa42

Lucas De Marchi



More information about the Intel-xe mailing list