OSDN Git Service

drm/amd/powerplay: fix the incorrect checking condition
authorHuang Rui <ray.huang@amd.com>
Tue, 26 Jul 2016 08:42:11 +0000 (16:42 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 8 Aug 2016 15:32:28 +0000 (11:32 -0400)
Signed-off-by: Huang Rui <ray.huang@amd.com>
Reviewed-by: Ken Wang <Qingqing.Wang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/powerplay/hwmgr/iceland_hwmgr.c

index 9c6d7e3..7ffbbef 100644 (file)
@@ -4170,7 +4170,7 @@ int iceland_unforce_dpm_levels(struct pp_hwmgr *hwmgr)
                                                                return -1);
        }
 
-       if (0 == data->pcie_dpm_key_disabled) {
+       if (0 == data->mclk_dpm_key_disabled) {
                PP_ASSERT_WITH_CODE((0 == smum_send_msg_to_smc(
                                                             hwmgr->smumgr,
                                        PPSMC_MSG_MCLKDPM_NoForcedLevel)),