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

Commit 76ecb2c7 authored by Alex Deucher's avatar Alex Deucher
Browse files

drm/amdgpu/cik: don't mess with aspm if gpu is root bus



Pcie registers may not be available in a virtualized
environment.

Reviewed-by: default avatarmonk liu <monk.liu@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent cd474ba0
Loading
Loading
Loading
Loading
+3 −0
Original line number Original line Diff line number Diff line
@@ -1762,6 +1762,9 @@ static void cik_program_aspm(struct amdgpu_device *adev)
	if (amdgpu_aspm == 0)
	if (amdgpu_aspm == 0)
		return;
		return;


	if (pci_is_root_bus(adev->pdev->bus))
		return;

	/* XXX double check APUs */
	/* XXX double check APUs */
	if (adev->flags & AMD_IS_APU)
	if (adev->flags & AMD_IS_APU)
		return;
		return;