]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/nouveau: fix hibernate on disabled GPU
authorChristoph Rudorff <chris@rudorff.com>
Tue, 25 Mar 2025 12:44:36 +0000 (13:44 +0100)
committerLyude Paul <lyude@redhat.com>
Fri, 28 Mar 2025 22:05:53 +0000 (18:05 -0400)
commit4c4d9b7b6c6e676eca22585139aba5f03de74b90
tree3464c87cc8501b0bb29142ec0565811c426a58b9
parente486147c912f653ef4b60a6c7dbd4168a4c56a9f
drm/nouveau: fix hibernate on disabled GPU

Hibernate bricks the machine if a discrete GPU was disabled via

echo IGD > /sys/kernel/debug/vgaswitcheroo/switch

The freeze and thaw handler lacks checking the GPU power state,
as suspend and resume do.

This patch add the checks and fix this issue.

Signed-off-by: Christoph Rudorff <chris@rudorff.com>
Signed-off-by: Lyude Paul <lyude@redhat.com>
Link: https://lore.kernel.org/r/20250325-nouveau-fix-hibernate-v2-1-2bd5c13fb953@rudorff.com
drivers/gpu/drm/nouveau/nouveau_drm.c