Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c90e5d20 authored by David Rokhvarg's avatar David Rokhvarg Committed by Alex Deucher
Browse files

drm/amdgpu/powerplay: Program a calculated value as Deep Sleep clock.



This replaces programming of a hardcoded value.

Signed-off-by: default avatarDavid Rokhvarg <David.Rokhvarg@amd.com>
parent 283b1a8b
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -789,9 +789,11 @@ static int cz_tf_set_deep_sleep_sclk_threshold(struct pp_hwmgr *hwmgr,
		if (clks == 0)
			clks = CZ_MIN_DEEP_SLEEP_SCLK;

		PP_DBG_LOG("Setting Deep Sleep Clock: %d\n", clks);

		smum_send_msg_to_smc_with_parameter(hwmgr->smumgr,
				PPSMC_MSG_SetMinDeepSleepSclk,
						CZ_MIN_DEEP_SLEEP_SCLK);
				clks);
	}

	return 0;