Skip to content

drm/xe: Improve wedged mode handling

Lukasz Laguna intel-xe 12 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v12 Latest4 patches 3 repliesIn review
  2. v114 patches 4 repliesSuperseded
  3. v104 patches 4 repliesSuperseded
Earlier versions · 9
VersionPostedPatchesRepliesStatus
v94 patches0 repliesSuperseded
v84 patches3 repliesSuperseded
v74 patches0 repliesSuperseded
v64 patches5 repliesSuperseded
v54 patches5 repliesSuperseded
v44 patches0 repliesSuperseded
v34 patches0 repliesSuperseded
v24 patches1 replySuperseded
v14 patches9 repliesSuperseded

Patches in v12 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4drm/xe: Validate wedged_mode parameter and define enum for modesdrivers/gpu/drm/xe/xe_debugfs.c drivers/gpu/drm/xe/xe_device.c drivers/gpu/drm/xe/xe_device.h +6 more+94 -200 replies
2/4drm/xe: Update wedged.mode only after successful reset policy changedrivers/gpu/drm/xe/xe_debugfs.c drivers/gpu/drm/xe/xe_device_types.h drivers/gpu/drm/xe/xe_guc_ads.c +1 more+71 -203 replies
3/4drm/xe/vf: Disallow setting wedged mode to upon-any-hangdrivers/gpu/drm/xe/xe_device.c+5 -00 replies
4/4drm/xe/pf: Allow upon-any-hang wedged mode only in debug configdrivers/gpu/drm/xe/xe_device.c+2 -10 replies

Reviews trailers per patch

All 4 patches have a Reviewed-by or Acked-by.

PatchRodrigo ViviMichal Wajdeczko
1/4R-b
2/4R-b
3/4R-b
4/4R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v12 thread

Cover letter [PATCH v12 0/4] drm/xe: Improve wedged mode handling

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 driver's internal wedged.mode state only after successful reset policy change, 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)
v7: Rebase series (Lukasz)
Rename helpers (Michal, Lukasz)
Split complex condition into smaller, separate ones (Michal) Don't introduce XE_WEDGED_MODE_MISCONFIGURED enum field (Michal) Add needs_policy_update helper (Michal)
v8: Apply missing rb (Lukasz)
v9: Simplify conditions (Rodrigo)
v10: Define enum outside of the xe_device struct
Fix description of module parameter (Michal)
v11: Update the Xe Device Wedging doc (Rodrigo)
Provide a more detailed commit description (Rodrigo)
v12: Rename helpers to make wedged mode context explicit (Rodrigo)

Lukasz Laguna (4):
drm/xe: Validate wedged_mode parameter and define enum for modes drm/xe: Update wedged.mode only after successful reset policy change 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      | 75 ++++++++++++++++++++++------
 drivers/gpu/drm/xe/xe_device.c       | 60 +++++++++++++++++++---
 drivers/gpu/drm/xe/xe_device.h       |  2 +
 drivers/gpu/drm/xe/xe_device_types.h | 23 ++++++++-
 drivers/gpu/drm/xe/xe_guc_ads.c      | 16 +++---
 drivers/gpu/drm/xe/xe_guc_ads.h      |  5 +-
 drivers/gpu/drm/xe/xe_guc_capture.c  |  9 +++-
 drivers/gpu/drm/xe/xe_guc_submit.c   |  7 +--
 drivers/gpu/drm/xe/xe_module.c       | 10 ++--
 drivers/gpu/drm/xe/xe_module.h       |  2 +-
 10 files changed, 170 insertions(+), 39 deletions(-)
Signature · 1 line
2.40.0