drm/amd/powerplay: fix pcie dpm table for vega10
authorEric Huang <JinHuiEric.Huang@amd.com>
Thu, 11 May 2017 15:55:48 +0000 (11:55 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 24 May 2017 21:39:43 +0000 (17:39 -0400)
This resolves pcie low speed problem.

Signed-off-by: Eric Huang <JinHuiEric.Huang@amd.com>
Acked-by: Felix Kuehling <Felix.Kuehling@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c

index c16c37e42234e4f56deac78d7bc2e0d812d1a04f..825178b5c284c0ca010cc8393eb90c7d9758ad0b 100644 (file)
@@ -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;