From: kettenis Date: Sat, 17 Aug 2024 10:41:24 +0000 (+0000) Subject: Skip the FADT check on OpenBSD. Without it the GPU (and display) will X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=7dd51cb71d1726956195fd6fccc88dcf4f8a21d5;p=openbsd 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@ --- 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,