aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Rokhvarg <David.Rokhvarg@amd.com>2015-12-11 12:06:25 -0500
committerAlex Deucher <alexander.deucher@amd.com>2015-12-21 16:42:56 -0500
commitc90e5d20fc1bfefdeb99d5ec2cb0fb28f26d208d (patch)
tree1da5bec16437a76b8f9afcb4570d9e2c1bc2f743
parent283b1a8bfba47921df927bd71b9db40045f4de15 (diff)
drm/amdgpu/powerplay: Program a calculated value as Deep Sleep clock.
This replaces programming of a hardcoded value. Signed-off-by: David Rokhvarg <David.Rokhvarg@amd.com>
-rw-r--r--drivers/gpu/drm/amd/powerplay/hwmgr/cz_hwmgr.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/cz_hwmgr.c b/drivers/gpu/drm/amd/powerplay/hwmgr/cz_hwmgr.c
index 464109592aaf..344806521468 100644
--- a/drivers/gpu/drm/amd/powerplay/hwmgr/cz_hwmgr.c
+++ b/drivers/gpu/drm/amd/powerplay/hwmgr/cz_hwmgr.c
@@ -789,9 +789,11 @@ static int cz_tf_set_deep_sleep_sclk_threshold(struct pp_hwmgr *hwmgr,
789 if (clks == 0) 789 if (clks == 0)
790 clks = CZ_MIN_DEEP_SLEEP_SCLK; 790 clks = CZ_MIN_DEEP_SLEEP_SCLK;
791 791
792 PP_DBG_LOG("Setting Deep Sleep Clock: %d\n", clks);
793
792 smum_send_msg_to_smc_with_parameter(hwmgr->smumgr, 794 smum_send_msg_to_smc_with_parameter(hwmgr->smumgr,
793 PPSMC_MSG_SetMinDeepSleepSclk, 795 PPSMC_MSG_SetMinDeepSleepSclk,
794 CZ_MIN_DEEP_SLEEP_SCLK); 796 clks);
795 } 797 }
796 798
797 return 0; 799 return 0;