summaryrefslogtreecommitdiffstats
path: root/drivers/gpu
diff options
context:
space:
mode:
authorAaron Liu <aaron.liu@amd.com>2019-08-30 09:53:27 +0800
committerAlex Deucher <alexander.deucher@amd.com>2019-08-30 15:37:17 -0500
commitea1fc5e1ff7106f39d63e4a944990674b27af40d (patch)
tree6048d59bdffa45ca98fa279b504064d6a89c2f01 /drivers/gpu
parent0b2d2c2eecf27f403df60ebab06cad7b6bfe84f8 (diff)
downloadlinux-stable-ea1fc5e1ff7106f39d63e4a944990674b27af40d.tar.gz
linux-stable-ea1fc5e1ff7106f39d63e4a944990674b27af40d.tar.bz2
linux-stable-ea1fc5e1ff7106f39d63e4a944990674b27af40d.zip
drm/amd/powerplay: SMU_MSG_OverridePcieParameters is unsupport for APU
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>
Diffstat (limited to 'drivers/gpu')
-rw-r--r--drivers/gpu/drm/amd/powerplay/amdgpu_smu.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/powerplay/amdgpu_smu.c b/drivers/gpu/drm/amd/powerplay/amdgpu_smu.c
index 29ffb25b9e5e..22f3c60d380f 100644
--- a/drivers/gpu/drm/amd/powerplay/amdgpu_smu.c
+++ b/drivers/gpu/drm/amd/powerplay/amdgpu_smu.c
@@ -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)