AMD-GFX Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/2] Fixups for cancelled hibernate
@ 2025-10-25  1:00 Mario Limonciello (AMD)
  2025-10-25  1:00 ` [PATCH v2 1/2] PM: Allow device drivers to manage the frozen state of a device Mario Limonciello (AMD)
  2025-10-25  1:00 ` [PATCH v2 2/2] drm/amd: Manage frozen state internally Mario Limonciello (AMD)
  0 siblings, 2 replies; 5+ messages in thread
From: Mario Limonciello (AMD) @ 2025-10-25  1:00 UTC (permalink / raw)
  To: Rafael J . Wysocki, Alex Deucher
  Cc: open list:HIBERNATION (aka Software Suspend, aka swsusp),
	open list:RADEON and AMDGPU DRM DRIVERS, Mario Limonciello (AMD),
	Muhammad Usama Anjum

Muhammad Usama Anjun's recent series for being able to cancel
the hibernate sequence [1] exposes a bug with amdgpu handling for
skipping the thaw step.

Because the thaw step is skipped in most cases, cancelling the
hibernate means that the device is left in an inconsistent
state.

Add support to the PM core to let a driver track it's frozen
state when an error code is returned during thaw(). This will
ensure that the poweroff() and restore() callbacks get run.

Cc: Muhammad Usama Anjum <usama.anjum@collabora.com>

I suggest this patch series merge through linux-pm.

v2:
 * pick up tag
 * rebase on linux-pm/bleeding-edge
 * fix lkp robot issue

Mario Limonciello (AMD) (2):
  PM: Allow device drivers to manage the frozen state of a device
  drm/amd: Manage frozen state internally

 Documentation/driver-api/pm/devices.rst    |  8 ++++++++
 drivers/base/power/main.c                  |  7 +++++++
 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 10 ++++++++++
 drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c    |  2 +-
 include/linux/pm.h                         |  3 +++
 5 files changed, 29 insertions(+), 1 deletion(-)

-- 
2.43.0


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2025-11-04 13:30 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-10-25  1:00 [PATCH v2 0/2] Fixups for cancelled hibernate Mario Limonciello (AMD)
2025-10-25  1:00 ` [PATCH v2 1/2] PM: Allow device drivers to manage the frozen state of a device Mario Limonciello (AMD)
2025-11-03 19:50   ` Rafael J. Wysocki
2025-11-04 12:14     ` Muhammad Usama Anjum
2025-10-25  1:00 ` [PATCH v2 2/2] drm/amd: Manage frozen state internally Mario Limonciello (AMD)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox