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

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
...@@ -1762,6 +1762,9 @@ static void cik_program_aspm(struct amdgpu_device *adev) ...@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment