summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/amdgpu/vi.c
diff options
context:
space:
mode:
authorMario Limonciello <mario.limonciello@amd.com>2023-10-23 23:50:05 +0300
committerAlex Deucher <alexander.deucher@amd.com>2023-10-27 01:41:23 +0300
commit2757a848cb0f184850d3e0a33b4a69e8014fdc5d (patch)
treec236ccc21e39ebe0a4f76add0b4f7f736cefbd20 /drivers/gpu/drm/amd/amdgpu/vi.c
parent1a6513de493d13f8d7501611fcc5bbaea4c799b3 (diff)
downloadlinux-2757a848cb0f184850d3e0a33b4a69e8014fdc5d.tar.xz
drm/amd: Explicitly disable ASPM when dynamic switching disabled
Currently there are separate but related checks: * amdgpu_device_should_use_aspm() * amdgpu_device_aspm_support_quirk() * amdgpu_device_pcie_dynamic_switching_supported() Simplify into checking whether DPM was enabled or not in the auto case. This works because amdgpu_device_pcie_dynamic_switching_supported() populates that value. Signed-off-by: Mario Limonciello <mario.limonciello@amd.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/vi.c')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/vi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/vi.c b/drivers/gpu/drm/amd/amdgpu/vi.c
index 1a08052bade3..1a98812981f4 100644
--- a/drivers/gpu/drm/amd/amdgpu/vi.c
+++ b/drivers/gpu/drm/amd/amdgpu/vi.c
@@ -1124,7 +1124,7 @@ static void vi_program_aspm(struct amdgpu_device *adev)
bool bL1SS = false;
bool bClkReqSupport = true;
- if (!amdgpu_device_should_use_aspm(adev) || !amdgpu_device_pcie_dynamic_switching_supported())
+ if (!amdgpu_device_should_use_aspm(adev))
return;
if (adev->asic_type < CHIP_POLARIS10)