drm/amdgpu/pp: fix copy paste typo in smu7_get_pp_table_entry_callback_func_v1
authorAlex Deucher <alexander.deucher@amd.com>
Thu, 28 Jun 2018 18:21:12 +0000 (13:21 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 5 Jul 2018 21:39:52 +0000 (16:39 -0500)
Should be using PCIELaneLow for the low clock level.

Reviewed-by: Rex Zhu <Rex.Zhu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c

index e5c27d12aa4947c70963d209d0e972348cb54f24..077b79938528dad66dff55a5b4eb02273b7240cb 100644 (file)
@@ -3183,7 +3183,7 @@ static int smu7_get_pp_table_entry_callback_func_v1(struct pp_hwmgr *hwmgr,
        performance_level->pcie_gen = get_pcie_gen_support(data->pcie_gen_cap,
                        state_entry->ucPCIEGenLow);
        performance_level->pcie_lane = get_pcie_lane_support(data->pcie_lane_cap,
-                       state_entry->ucPCIELaneHigh);
+                       state_entry->ucPCIELaneLow);
 
        performance_level = &(smu7_power_state->performance_levels
                        [smu7_power_state->performance_level_count++]);