Skip to content

Unwind failed suspend

Mario Limonciello (AMD) amd-gfx 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v5 Latest5 patches 6 repliesIn review

Changes in v5 from the cover letter

* Take RLC patch from Alex's Van Gogh series, slight modifications
* Unwind in middle of IP suspend too
* Fix missing call to fix console
* Cover issues with DPM_FLAG_SMART_SUSPEND

Patches in v5 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5drm/amdgpu: Drop PMFW RLC notifier from amdgpu_device_suspend()drivers/gpu/drm/amd/amdgpu/amdgpu_device.c drivers/gpu/drm/amd/pm/amdgpu_dpm.c drivers/gpu/drm/amd/pm/inc/amdgpu_dpm.h+0 -242 replies
2/5drm/amd: Add an unwind for failures in amdgpu_device_ip_suspend_phase1()drivers/gpu/drm/amd/amdgpu/amdgpu_device.c+16 -24 replies
3/5drm/amd: Add an unwind for failures in amdgpu_device_ip_suspend_phase2()drivers/gpu/drm/amd/amdgpu/amdgpu_device.c+33 -30 replies
4/5drm/amd: Unwind for failed device suspenddrivers/gpu/drm/amd/amdgpu/amdgpu_device.c+58 -70 replies
5/5drm/amd: Reset the GPU if pmops faileddrivers/gpu/drm/amd/amdgpu/amdgpu_drv.c+11 -00 replies

Reviews trailers per patch

1 of 5 patches has a Reviewed-by or Acked-by.

PatchAlex DeucherAntheas Kapenekakis
1/5T-b
2/5R-b
3/5
4/5
5/5

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

Read the v5 thread

Cover letter [PATCH v5 0/5] Unwind failed suspend

If a suspend fails the PM core doesn't clean it up, the device is just left in a bad state. If this happens during memory pressure it could be a hung system from just trying to suspend.

For all phases of suspend that return an error code, add an unwind flow that will (try to) resume exactly the parts that have failed.

If this fails, then reset the GPU during complete() callback.

v5:
* Take RLC patch from Alex's Van Gogh series, slight modifications
* Unwind in middle of IP suspend too
* Fix missing call to fix console
* Cover issues with DPM_FLAG_SMART_SUSPEND

Alex Deucher (1):
drm/amdgpu: Drop PMFW RLC notifier from amdgpu_device_suspend()

Mario Limonciello (AMD) (3):
drm/amd: Reset the GPU if pmops failed
drm/amd: Add an unwind for failures in
amdgpu_device_ip_suspend_phase1()
drm/amd: Add an unwind for failures in
amdgpu_device_ip_suspend_phase2()
drm/amd: Unwind for failed device suspend

 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 121 ++++++++++++++++++---
 drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c    |  11 ++
 drivers/gpu/drm/amd/pm/amdgpu_dpm.c        |  18 ---
 drivers/gpu/drm/amd/pm/inc/amdgpu_dpm.h    |   2 -
 4 files changed, 117 insertions(+), 35 deletions(-)
Signature · 1 line
2.51.1