<div dir="ltr"><div dir="ltr">Found a way how to do it by modifying amdgpu driver. If there's any better way please let me know..</div><div dir="ltr"><br></div><div dir="ltr"><div><div>diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/smu10_hwmgr.c b/drivers/gpu/drm/amd/powerplay/hwmgr/smu10_hwmgr.c</div><div>index 5273de3c5b98..70b9fb8d6041 100644</div><div>--- a/drivers/gpu/drm/amd/powerplay/hwmgr/smu10_hwmgr.c</div><div>+++ b/drivers/gpu/drm/amd/powerplay/hwmgr/smu10_hwmgr.c</div><div>@@ -497,6 +497,8 @@ static int smu10_populate_clock_table(struct pp_hwmgr *hwmgr)</div><div> smum_send_msg_to_smc(hwmgr, PPSMC_MSG_GetMaxGfxclkFrequency);</div><div> result = smum_get_argument(hwmgr);</div><div>// smu10_data->gfx_max_freq_limit = result / 10 * 1000;</div><div>+ smu10_data->gfx_max_freq_limit = 50000;<br></div></div><div><br></div><div>--</div><div>Lauri</div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Mar 22, 2019 at 12:18 PM Lauri Ehrenpreis <<a href="mailto:laurioma@gmail.com">laurioma@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr">Hi!<div><br></div><div>Is there a way how to limit gpu max clock rate? Currently I can either leave the clock to automatic mode or force it to specific level via /sys/class/drm/card0/device/pp_dpm_sclk. But ideally I would like the clock to be automatically regulated but specify a different upper limit for power saving reasons.</div><div><br></div><div>--</div><div>Lauri</div></div></div>
</blockquote></div>