drm/amd/powerplay: fix a bug on updating sclk for Fiji
authorEric Huang <JinHuiEric.Huang@amd.com>
Tue, 10 May 2016 18:39:09 +0000 (14:39 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 13 May 2016 19:32:29 +0000 (15:32 -0400)
Update sclk smc table rather than mclk smc table for sclk updates.

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

index 382223b2f047ba62f89c6554e962849e0b5df360..6f1bad41381abc8ba176ca15644fd1a72d39965b 100644 (file)
@@ -4314,7 +4314,7 @@ static int fiji_populate_and_upload_sclk_mclk_dpm_levels(
 
        if (data->need_update_smu7_dpm_table &
                        (DPMTABLE_OD_UPDATE_SCLK + DPMTABLE_UPDATE_SCLK)) {
-               result = fiji_populate_all_memory_levels(hwmgr);
+               result = fiji_populate_all_graphic_levels(hwmgr);
                PP_ASSERT_WITH_CODE((0 == result),
                                "Failed to populate SCLK during PopulateNewDPMClocksStates Function!",
                                return result);