AMD-GFX Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] Fixups for cancelled hibernate
@ 2025-10-22 15:50 Mario Limonciello
  2025-10-22 15:50 ` [PATCH 1/2] PM: Allow device drivers to manage the frozen state of a device Mario Limonciello
  2025-10-22 15:50 ` [PATCH 2/2] drm/amd: Manage frozen state internally Mario Limonciello
  0 siblings, 2 replies; 8+ messages in thread
From: Mario Limonciello @ 2025-10-22 15:50 UTC (permalink / raw)
  To: mario.limonciello, amd-gfx, airlied, alexander.deucher,
	christian.koenig, corbet, dakr, gregkh, rafael, simona
  Cc: Muhammad Usama Anjum, dri-devel, linux-doc, linux-pm

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.

changes since RFC:
 * Drop first patch
 * Introduce is_frozen

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

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                  |  5 +++++
 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, 27 insertions(+), 1 deletion(-)

-- 
2.51.0


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

end of thread, other threads:[~2025-10-23 12:58 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-10-22 15:50 [PATCH 0/2] Fixups for cancelled hibernate Mario Limonciello
2025-10-22 15:50 ` [PATCH 1/2] PM: Allow device drivers to manage the frozen state of a device Mario Limonciello
2025-10-23  8:21   ` kernel test robot
2025-10-23  8:36   ` Muhammad Usama Anjum
2025-10-23 11:23   ` kernel test robot
2025-10-22 15:50 ` [PATCH 2/2] drm/amd: Manage frozen state internally Mario Limonciello
2025-10-22 16:00   ` Mario Limonciello
2025-10-23  8:37   ` Muhammad Usama Anjum

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