[PATCH v6 0/4] drm/xe: Improve wedged mode handling

Lukasz Laguna lukasz.laguna at intel.com
Wed May 21 12:25:07 UTC 2025


Prevent the VF from attempting to update the GuC reset policy when
changing the wedged mode, as this operation is not supported on VFs.

Additionally, validate the wedged_mode module parameter input, update
the internal wedged.mode state only on success, and allow setting
wedged_mode=2 only in debug builds if running as PF.

v1: https://patchwork.freedesktop.org/series/148214/#rev1
v2: Replace magic numbers with definitions (Matt, Michal)
    Use helper to sanitize wedged_mode (Michal)
    Change debug messages (Michal)
    Reorder patches (Michal)
    Add fixes tag (Matt)
v3: Rename xe_device_wedged_mode_validate to
    xe_device_validate_wedged_mode (Michal)
    Make enum nameless (Michal)
    Add default field in enum (Michal)
    Change names of enum fields to match modparam description (Michal)
v4: Fix GuC reset policy update
    Replace missing magic numbers with definitions
    Update debug message
v5: Remove old rb-s from the patch that changed
v6: Use string names instead of enum values in log messages (Michal)
    Handle inconsistent reset policy state between GTs (Michal)
    Use bool param in function toggling reset policy (Michal)
    Update commits titles and descriptions (Michal)

Lukasz Laguna (4):
  drm/xe: Validate wedged_mode parameter and define enum for modes
  drm/xe: Don't update wedged mode in case of an error
  drm/xe/vf: Disallow setting wedged mode to upon-any-hang
  drm/xe/pf: Allow upon-any-hang wedged mode only in debug config

 drivers/gpu/drm/xe/xe_debugfs.c      | 39 ++++++++++++++++----
 drivers/gpu/drm/xe/xe_device.c       | 54 ++++++++++++++++++++++++++--
 drivers/gpu/drm/xe/xe_device.h       |  2 ++
 drivers/gpu/drm/xe/xe_device_types.h |  8 ++++-
 drivers/gpu/drm/xe/xe_guc_ads.c      | 14 ++++----
 drivers/gpu/drm/xe/xe_guc_ads.h      |  4 ++-
 drivers/gpu/drm/xe/xe_guc_capture.c  |  3 +-
 drivers/gpu/drm/xe/xe_guc_submit.c   |  7 ++--
 drivers/gpu/drm/xe/xe_module.c       |  5 +--
 drivers/gpu/drm/xe/xe_module.h       |  2 +-
 10 files changed, 113 insertions(+), 25 deletions(-)

-- 
2.40.0



More information about the Intel-xe mailing list