You are not logged in.

#1 2022-04-10 16:54:46

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,597
Website

Radeon RX560D @full GPU clock speed.. how to enable power savings mode

I am using the kernel amdgpu module to drive a Yeston RX560D.  In querying /sys/kernel/debug/dri/0/amdgpu_pm_info I see that the core GPU frequency is always at full throttle, example while idle:

# head /sys/kernel/debug/dri/0/amdgpu_pm_info 
GFX Clocks and Power:
	1500 MHz (MCLK)
	1149 MHz (SCLK)
	387 MHz (PSTATE_SCLK)
	625 MHz (PSTATE_MCLK)
	1012 mV (VDDGFX)
	27.97 W (average GPU)

GPU Temperature: 49 C
GPU Load: 0 %

In reading through the AMDGPU wiki article, it seems one can change the profile first by enabling manual mode then by selecting one of the profiles.  I tried this selecting the "power_savings" profile but found that the GPU freq did not change.  What am I missing?

# echo manual > /sys/class/drm/card0/device/power_dpm_force_performance_level
# echo 2 > /sys/class/drm/card0/device/pp_power_profile_mode
# head /sys/kernel/debug/dri/0/amdgpu_pm_info
GFX Clocks and Power:
	1500 MHz (MCLK)
	1149 MHz (SCLK)
	387 MHz (PSTATE_SCLK)
	625 MHz (PSTATE_MCLK)
	1012 mV (VDDGFX)
	12.94 W (average GPU)

GPU Temperature: 49 C
GPU Load: 0 %

CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#2 2022-04-12 10:01:00

Lone_Wolf
Forum Moderator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,922

Re: Radeon RX560D @full GPU clock speed.. how to enable power savings mode

The used power did go down from 27.97 W to 12.94 W so it appears changing the power profile had some effect.

I do think those values are very high though, this is what I get on a RX 580  with default profiles.

# head /sys/kernel/debug/dri/0/amdgpu_pm_info
GFX Clocks and Power:
        300 MHz (MCLK)
        300 MHz (SCLK)
        600 MHz (PSTATE_SCLK)
        1000 MHz (PSTATE_MCLK)
        750 mV (VDDGFX)
        4.222 W (average GPU)

GPU Temperature: 38 C
GPU Load: 0 %
# 

Active State Power Management (aspm) might be involved.

AMD enabled aspm by default for polaris cards in kernel 5.13, but whether it works well depends on motherboard & firmware.
Recently problems have been reported with intel alder lake and certain amd video cards.
Also on my own system mobo + firmware don't support aspm properly and enabling aspm increases  used video power instead of lowering it.

Try adding pcie_aspm=off to your bootloader command line.
(incase you already have it disabled, try enabling it.)


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

#3 2022-04-12 16:53:34

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,597
Website

Re: Radeon RX560D @full GPU clock speed.. how to enable power savings mode

I booted with that parameter and now see the following, this is without me changing default modes, just booting and querying the command:

# head /sys/kernel/debug/dri/0/amdgpu_pm_info
GFX Clocks and Power:
	1500 MHz (MCLK)
	885 MHz (SCLK)
	387 MHz (PSTATE_SCLK)
	625 MHz (PSTATE_MCLK)
	850 mV (VDDGFX)
	15.0 W (average GPU)

GPU Temperature: 47 C
GPU Load: 0 %

@Lone_Wolf - can you provide a link to the recent problems re: adler lake stuff you mentioned?  Thanks!

Last edited by graysky (2022-04-13 10:59:33)


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#4 2022-04-13 14:31:19

Lone_Wolf
Forum Moderator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,922

Re: Radeon RX560D @full GPU clock speed.. how to enable power savings mode

Sure, I saw it on phoronix

Following the kernel ML thread about the patch lead to https://gitlab.freedesktop.org/drm/amd/-/issues/1885


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

#5 2022-04-13 17:27:47

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,597
Website

Re: Radeon RX560D @full GPU clock speed.. how to enable power savings mode

Thanks, oddly enough the patch they called out seems to be applied to 5.17.2.


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

Board footer

Powered by FluxBB