]> git.baikalelectronics.ru Git - kernel.git/commitdiff
drm/amdgpu: Skip ASPM programming on aldebaran
authorLijo Lazar <lijo.lazar@amd.com>
Wed, 24 Nov 2021 11:26:38 +0000 (19:26 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 24 Nov 2021 20:14:03 +0000 (15:14 -0500)
There is no need for additional programming, keep the default settings.

Signed-off-by: Lijo Lazar <lijo.lazar@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/nbio_v7_4.c

index e96516d3fd45eb281bd7862eb8650427d7c12b10..dc5e93756fea4fd8d7a193dd75774604b49cd570 100644 (file)
@@ -694,6 +694,9 @@ static void nbio_v7_4_program_aspm(struct amdgpu_device *adev)
 {
        uint32_t def, data;
 
+       if (adev->ip_versions[NBIO_HWIP][0] == IP_VERSION(7, 4, 4))
+               return;
+
        def = data = RREG32_PCIE(smnPCIE_LC_CNTL);
        data &= ~PCIE_LC_CNTL__LC_L1_INACTIVITY_MASK;
        data &= ~PCIE_LC_CNTL__LC_L0S_INACTIVITY_MASK;