Re: Limit gpu max clock for ryzen 2400g

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxx> 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
_______________________________________________
amd-gfx mailing list
amd-gfx@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux