diff options
author | Evan Quan <evan.quan@amd.com> | 2022-04-28 16:51:04 +0800 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2022-06-08 11:43:00 -0400 |
commit | 62f8f5c3bfc2968461b0a74f0e393325bec16c69 (patch) | |
tree | 8630dc0dbf76718baa883d2cf1d5b9b387589991 /drivers/gpu/drm/amd/amdgpu/soc21.c | |
parent | 6f73d6762694c3e91c49e6708077a0de2a75f2f5 (diff) | |
download | linux-62f8f5c3bfc2968461b0a74f0e393325bec16c69.tar.gz linux-62f8f5c3bfc2968461b0a74f0e393325bec16c69.tar.bz2 linux-62f8f5c3bfc2968461b0a74f0e393325bec16c69.zip |
drm/amdgpu: enable ASPM support for PCIE 7.4.0/7.6.0
Enable ASPM support for PCIE 7.4.0 and 7.6.0.
Signed-off-by: Evan Quan <evan.quan@amd.com>
Reviewed-by: Lijo Lazar <lijo.lazar@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/soc21.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/soc21.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/soc21.c b/drivers/gpu/drm/amd/amdgpu/soc21.c index 57eaafb70d72..495848515edf 100644 --- a/drivers/gpu/drm/amd/amdgpu/soc21.c +++ b/drivers/gpu/drm/amd/amdgpu/soc21.c @@ -386,11 +386,12 @@ static void soc21_pcie_gen3_enable(struct amdgpu_device *adev) static void soc21_program_aspm(struct amdgpu_device *adev) { - - if (amdgpu_aspm == 0) + if (!amdgpu_device_should_use_aspm(adev)) return; - /* todo */ + if (!(adev->flags & AMD_IS_APU) && + (adev->nbio.funcs->program_aspm)) + adev->nbio.funcs->program_aspm(adev); } static void soc21_enable_doorbell_aperture(struct amdgpu_device *adev, |