From: Eric Huang Date: Thu, 11 May 2017 15:55:48 +0000 (-0400) Subject: drm/amd/powerplay: fix pcie dpm table for vega10 X-Git-Tag: v4.13-rc1~45^2~24^2~343 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b6dc60cf79ecbb5bbe3b57bbb098a885bba01454;p=platform%2Fkernel%2Flinux-exynos.git drm/amd/powerplay: fix pcie dpm table for vega10 This resolves pcie low speed problem. Signed-off-by: Eric Huang Acked-by: Felix Kuehling Reviewed-by: Alex Deucher Signed-off-by: Alex Deucher --- diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c b/drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c index c16c37e..825178b 100644 --- a/drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c +++ b/drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c @@ -1161,7 +1161,7 @@ static int vega10_setup_default_pcie_table(struct pp_hwmgr *hwmgr) "Incorrect number of PCIE States from VBIOS!", return -1); - for (i = 0; i < NUM_LINK_LEVELS - 1; i++) { + for (i = 0; i < NUM_LINK_LEVELS; i++) { if (data->registry_data.pcieSpeedOverride) pcie_table->pcie_gen[i] = data->registry_data.pcieSpeedOverride;