diff options
author | Alex Deucher <alexander.deucher@amd.com> | 2016-02-04 10:33:59 -0500 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2016-02-08 10:37:41 -0500 |
commit | 76ecb2c75bc772050f2e0462b9cf0163cc43046e (patch) | |
tree | 9150708e7467bc0885cdaef7fdeb456d364086da /drivers/gpu/drm/amd/amdgpu/cik.c | |
parent | cd474ba0d6048aeefe6f1066a6bfb5eac36a2a81 (diff) |
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: monk liu <monk.liu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/cik.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/cik.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/cik.c b/drivers/gpu/drm/amd/amdgpu/cik.c index fd9c9588ef46..5c978e064f47 100644 --- a/drivers/gpu/drm/amd/amdgpu/cik.c +++ b/drivers/gpu/drm/amd/amdgpu/cik.c | |||
@@ -1762,6 +1762,9 @@ static void cik_program_aspm(struct amdgpu_device *adev) | |||
1762 | if (amdgpu_aspm == 0) | 1762 | if (amdgpu_aspm == 0) |
1763 | return; | 1763 | return; |
1764 | 1764 | ||
1765 | if (pci_is_root_bus(adev->pdev->bus)) | ||
1766 | return; | ||
1767 | |||
1765 | /* XXX double check APUs */ | 1768 | /* XXX double check APUs */ |
1766 | if (adev->flags & AMD_IS_APU) | 1769 | if (adev->flags & AMD_IS_APU) |
1767 | return; | 1770 | return; |