The amdgpu(4) code uses separate code paths for suspend and hibernate.
authorkettenis <kettenis@openbsd.org>
Sat, 17 Aug 2024 10:38:21 +0000 (10:38 +0000)
committerkettenis <kettenis@openbsd.org>
Sat, 17 Aug 2024 10:38:21 +0000 (10:38 +0000)
commit1046ef3143b90b665ef39240d8730086d0b3f0f2
tree0214afa4679cf33f024f4232d1b0808369f294e4
parente1b86a0ab613f27d5424017f0aa1233ef0d88a5f
The amdgpu(4) code uses separate code paths for suspend and hibernate.
Use the ACPI sleep state to determine which path to go down into.  This
fixes (un)hibernate again after the fix for S0/S3 broke it.

Using the ACPI sleep state for this is not ideal.  If we ever want to
support amdgpu(4) on architectures without ACPI, we'll need a different
solution.

ok jsg@
sys/dev/pci/drm/amd/amdgpu/amdgpu_drv.c