tuned icon indicating copy to clipboard operation
tuned copied to clipboard

AMDGPU doesn't support radeon_powersave

Open qnixsynapse opened this issue 6 years ago • 7 comments

Please use echo high|low|auto in /sys/class/drm/card0/device/power_dpm_force_performance_level

tuned logs:

 2018-11-01 19:26:03,813 INFO     tuned.daemon.application: dynamic tuning is enabled (can be overridden in plugins) ✔ 1.85G RAM
2018-11-01 19:26:03,820 INFO     tuned.daemon.daemon: using sleep interval of 1 second(s)
2018-11-01 19:26:03,820 INFO     tuned.daemon.daemon: dynamic tuning is enabled (can be overridden by plugins)
2018-11-01 19:26:03,821 INFO     tuned.daemon.daemon: using update interval of 10 second(s) (10 times of the sleep interval)
2018-11-01 19:26:03,821 INFO     tuned.daemon.daemon: Running in automatic mode, checking what profile is recommended for your configuration.
2018-11-01 19:26:04,074 INFO     tuned.daemon.daemon: Using 'balanced' profile
2018-11-01 19:26:04,075 INFO     tuned.profiles.loader: loading profile: balanced
2018-11-01 19:26:04,081 INFO     tuned.daemon.controller: starting controller
2018-11-01 19:26:04,081 INFO     tuned.daemon.daemon: starting tuning
2018-11-01 19:26:04,103 INFO     tuned.plugins.base: instance cpu: assigning devices cpu0, cpu1
2018-11-01 19:26:04,108 WARNING  tuned.plugins.plugin_cpu: unable to run x86_energy_perf_policy tool, ignoring CPU energy performance bias, is the tool installed?
2018-11-01 19:26:04,110 INFO     tuned.plugins.base: instance audio: assigning devices snd_hda_intel
2018-11-01 19:26:04,110 INFO     tuned.plugins.base: instance video: assigning devices card0
2018-11-01 19:26:04,110 WARNING  tuned.plugins.base: instance disk: no matching devices available
2018-11-01 19:26:04,111 INFO     tuned.plugins.base: instance scsi_host: assigning devices host0, host1
2018-11-01 19:26:04,113 INFO     tuned.plugins.plugin_cpu: setting governor 'conservative' on cpu 'cpu0'
2018-11-01 19:26:04,122 INFO     tuned.plugins.plugin_cpu: setting governor 'conservative' on cpu 'cpu1'
2018-11-01 19:26:04,130 INFO     tuned.plugins.plugin_cpu: setting new cpu latency 100
2018-11-01 19:26:04,132 ERROR    tuned.utils.commands: Error when reading file '/sys/class/drm/card0/device/power_method': '[Errno 2] No such file or directory: '/sys/class/drm/card0/device/power_method''
2018-11-01 19:26:04,135 WARNING  tuned.plugins.plugin_video: radeon_powersave is not supported on 'card0'
2018-11-01 19:26:04,138 INFO     tuned.daemon.daemon: static tuning from profile 'balanced' applied

qnixsynapse avatar Nov 01 '18 14:11 qnixsynapse

I can reproduce the bug with AMD Ryzen 2500u powered HP Envy x360 convertible laptop. tuned.log

Version installed on Fedora 32 is 2.13.0. It seems tuned have not fully tested on AMD hardware and builtin cpufreq_conservative module hence the following errors:

2020-05-05 19:16:48,311 ERROR    tuned.utils.commands: Executing modprobe error: modprobe: FATAL: Module cpufreq_conservative is builtin.

luyatshimbalanga avatar May 16 '20 16:05 luyatshimbalanga

Only the old radeon driver supported those tweaks, and they shouldn't be used anymore: https://lists.freedesktop.org/archives/amd-gfx/2020-September/053717.html

hadess avatar Sep 14 '20 09:09 hadess

Just use "dpm-battery", "dpm-balanced", or "dpm-perfomance" instead https://github.com/redhat-performance/tuned/blob/master/tuned/plugins/plugin_video.py

WhiteCat6142 avatar Feb 15 '21 05:02 WhiteCat6142

FWIW, I was told that those values shouldn't be changed at all: https://lists.freedesktop.org/archives/amd-gfx/2020-September/053717.html

hadess avatar Feb 15 '21 11:02 hadess

I see that power_dpm_state is also meaningless The diffrence between power_method and power_dpm_state is that the former throws "No such file" error and the latter does not Thank you

WhiteCat6142 avatar Feb 15 '21 13:02 WhiteCat6142

Hi. I updated video_plugin on my fork, but don't have access to newer radeon GPU (yet). Can somebody please check it before I update docs and tests? https://github.com/CZerta/tuned/tree/radeon_powersave_update

CZerta avatar Mar 03 '21 10:03 CZerta

The patch worked fine on my RX5600XT. (I'm not sure "amdgpu / radeon" detect works properly. If it is compatible with some older systems, it should be marged, I think.)

WhiteCat6142 avatar May 04 '21 13:05 WhiteCat6142