From 7dd51cb71d1726956195fd6fccc88dcf4f8a21d5 Mon Sep 17 00:00:00 2001 From: kettenis Date: Sat, 17 Aug 2024 10:41:24 +0000 Subject: [PATCH] Skip the FADT check on OpenBSD. Without it the GPU (and display) will remain on in suspend-to-idle on some machines. There is a comment warning that this is risky, but let's find out how risky thus really is. ok deraadt@ --- sys/dev/pci/drm/amd/amdgpu/amdgpu_acpi.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sys/dev/pci/drm/amd/amdgpu/amdgpu_acpi.c b/sys/dev/pci/drm/amd/amdgpu/amdgpu_acpi.c index e13a31e63a4..ddf9850f629 100644 --- a/sys/dev/pci/drm/amd/amdgpu/amdgpu_acpi.c +++ b/sys/dev/pci/drm/amd/amdgpu/amdgpu_acpi.c @@ -1519,6 +1519,7 @@ bool amdgpu_acpi_is_s0ix_active(struct amdgpu_device *adev) if (adev->asic_type < CHIP_RAVEN) return false; +#ifdef __linux__ /* * If ACPI_FADT_LOW_POWER_S0 is not set in the FADT, it is generally * risky to do any special firmware-related preparations for entering @@ -1531,6 +1532,7 @@ bool amdgpu_acpi_is_s0ix_active(struct amdgpu_device *adev) "To use suspend-to-idle change the sleep mode in BIOS setup.\n"); return false; } +#endif #if !IS_ENABLED(CONFIG_AMD_PMC) dev_err_once(adev->dev, -- 2.20.1