drm/amd/powerplay: SMU_MSG_OverridePcieParameters is unsupport for APU
authorAaron Liu <aaron.liu@amd.com>
Fri, 30 Aug 2019 01:53:27 +0000 (09:53 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 30 Aug 2019 20:37:17 +0000 (15:37 -0500)
For apu, SMU_MSG_OverridePcieParameters is unsupport.
So return directly in smu_override_pcie_parameters function.

Signed-off-by: Aaron Liu <aaron.liu@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Evan Quan <evan.quan@amd.com>
Acked-by: Huang Rui <ray.huang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/powerplay/amdgpu_smu.c

index 29ffb25b9e5e15851ec30f8a483630ebb1e975bc..22f3c60d380f3b76bf224239f75704d94cacbf62 100644 (file)
@@ -975,6 +975,9 @@ static int smu_override_pcie_parameters(struct smu_context *smu)
        uint32_t pcie_gen = 0, pcie_width = 0, smu_pcie_arg;
        int ret;
 
+       if (adev->flags & AMD_IS_APU)
+               return 0;
+
        if (adev->pm.pcie_gen_mask & CAIL_PCIE_LINK_SPEED_SUPPORT_GEN4)
                pcie_gen = 3;
        else if (adev->pm.pcie_gen_mask & CAIL_PCIE_LINK_SPEED_SUPPORT_GEN3)