FlyGoat / RyzenAdj

Adjust power management settings for Ryzen APUs
GNU Lesser General Public License v3.0
1.68k stars 124 forks source link

--gfx-clk seems to do nothing on Vangogh (Steam Deck) #221

Open wzzt opened 2 years ago

wzzt commented 2 years ago

My testing was done with v0.11.1 on Windows 11.

I tried setting gfx_clk to 200 (minimum), 400, 800, 1040 (standard maximum), and 1600 (boosted maximum) while running GTA V and Tetris Effect with VSync off and RTSS to monitor frame rate and clock speed. Ryzenadj usually reported success, although it occasionally reported that set_gfx_clk was rejected by SMU. However, in no instance did it affect either GPU clock speed or FPS in any way. Changing the power limit did have an effect, so ryzenadj is functioning in that respect.

GTA V had clock speed alternate between 200 and 1040 MHz while Tetris Effect had it fluctuate between 1200-1600 MHz. Setting gfx_clk neither locked it to a specific frequency nor prevented it from rising above or below any particular frequency.

patrickschur commented 2 years ago

The --gfx-clk argument is not supported on Van Gogh. At the moment only Renoir is supported.

Valkirie commented 1 year ago

Can we try and uses adresses from Steam Deck Tools : https://github.com/ayufan/steam-deck-tools/blob/903e5fefaed1fe9c96fa263fda7a1a462e583eeb/PowerControl/Helpers/AMD/VangoghGPU.cs#L385 ?

PPSMC_MSG_GetGfxclkFrequency = 0x1B,
PPSMC_MSG_GetFclkFrequency = 0x1C,
PPSMC_MSG_AllowGfxOff = 0x1D,
PPSMC_MSG_DisallowGfxOff = 0x1E,
PPSMC_MSG_SetSoftMaxGfxClk = 0x1F,
PPSMC_MSG_SetHardMinGfxClk = 0x20,