Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 73acacc7 authored by Alex Deucher's avatar Alex Deucher Committed by Christian König
Browse files

drm/radeon: don't allow runpm=1 on systems with out ATPX

vgaswitcheroo and the ATPX ACPI methods are required to
power down the dGPU.

bug:
https://bugzilla.kernel.org/show_bug.cgi?id=73901



Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
parent e9a4099a
Loading
Loading
Loading
Loading
+3 −5
Original line number Diff line number Diff line
@@ -107,9 +107,7 @@ int radeon_driver_load_kms(struct drm_device *dev, unsigned long flags)
		flags |= RADEON_IS_PCI;
	}

	if (radeon_runtime_pm == 1)
		flags |= RADEON_IS_PX;
	else if ((radeon_runtime_pm == -1) &&
	if ((radeon_runtime_pm != 0) &&
	    radeon_has_atpx() &&
	    ((flags & RADEON_IS_IGP) == 0))
		flags |= RADEON_IS_PX;