Limit gpu max clock for ryzen 2400g

Lauri Ehrenpreis laurioma at gmail.com
Fri Mar 22 12:07:11 UTC 2019


Found a way how to do it by modifying amdgpu driver. If there's any better
way please let me know..

diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/smu10_hwmgr.c
b/drivers/gpu/drm/amd/powerplay/hwmgr/smu10_hwmgr.c
index 5273de3c5b98..70b9fb8d6041 100644
--- a/drivers/gpu/drm/amd/powerplay/hwmgr/smu10_hwmgr.c
+++ b/drivers/gpu/drm/amd/powerplay/hwmgr/smu10_hwmgr.c
@@ -497,6 +497,8 @@ static int smu10_populate_clock_table(struct pp_hwmgr
*hwmgr)
        smum_send_msg_to_smc(hwmgr, PPSMC_MSG_GetMaxGfxclkFrequency);
        result = smum_get_argument(hwmgr);
//        smu10_data->gfx_max_freq_limit = result / 10 * 1000;
+    smu10_data->gfx_max_freq_limit = 50000;

--
Lauri

On Fri, Mar 22, 2019 at 12:18 PM Lauri Ehrenpreis <laurioma at gmail.com>
wrote:

> Hi!
>
> 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.
>
> --
> Lauri
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/amd-gfx/attachments/20190322/1daa28da/attachment.html>


More information about the amd-gfx mailing list