https://bugs.freedesktop.org/show_bug.cgi?id=79806
Priority: medium Bug ID: 79806 Assignee: dri-devel@lists.freedesktop.org Summary: Performance degradation after resume Severity: normal Classification: Unclassified OS: All Reporter: enyecz@gmail.com Hardware: Other Status: NEW Version: unspecified Component: DRM/Radeon Product: DRI
I have a Radeon HD 4350/4550 (RV770) card in my notebook. After resuming from suspend, there is a significant 3D performance drop (a bit less than 1/4 of original performance remains). The performance drop is exactly at the same level as it is after "echo low > /sys/class/drm/card0/device/power_dpm_force_performance_level", albeit power_dpm_force_performance_level still contains "auto".
Bug is found in Ubuntu 14.04, but it was there at least since 13.10 (I have just found the workaround). The bug is there with kernel 3.13 (official), with 3.14 mainline and 3.15-RC8 which was build for Ubuntu 14.10.
Workaround: when resume, execute "echo auto > /sys/class/drm/card0/device/power_dpm_force_performance_level".
https://bugs.freedesktop.org/show_bug.cgi?id=79806
Gabor Enyedi enyecz@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Hardware|Other |x86-64 (AMD64) OS|All |Linux (All) Priority|medium |low
https://bugs.freedesktop.org/show_bug.cgi?id=79806
--- Comment #1 from Gabor Enyedi enyecz@gmail.com --- /sys/kernel/debug/dri/64/radeon_pm_info also shows, that the card always stays in the lowest performance level.
https://bugs.freedesktop.org/show_bug.cgi?id=79806
--- Comment #2 from Chernovsky Oleg adonai@xaker.ru --- I have the same issue. Can provide any additional info needed.
Arch x64, Linux 3.15.1, mesa 10.2.2, ati-dri 10.2.2
https://bugs.freedesktop.org/show_bug.cgi?id=79806
--- Comment #3 from Chernovsky Oleg adonai@xaker.ru ---
Workaround: when resume, execute "echo auto > /sys/class/drm/card0/device/power_dpm_force_performance_level".
How did you do that? It gives me "echo: write error: Invalid argument" on kernel 3.15
https://bugs.freedesktop.org/show_bug.cgi?id=79806
--- Comment #4 from Gabor Enyedi enyecz@gmail.com --- (In reply to comment #3)
Workaround: when resume, execute "echo auto > /sys/class/drm/card0/device/power_dpm_force_performance_level".
How did you do that? It gives me "echo: write error: Invalid argument" on kernel 3.15
It simply works without any trick. It also works with stock kernel 3.13. Are you sure that you have the same ATI card?
What I have found since I have posted the bug is that sometimes (very rarely) this simple workaround is not enough. Now, I use the following:
echo low > /sys/class/drm/card0/device/power_dpm_force_performance_level echo battery > /sys/class/drm/card0/device/power_dpm_state echo auto > /sys/class/drm/card0/device/power_dpm_force_performance_level echo balanced > /sys/class/drm/card0/device/power_dpm_state
https://bugs.freedesktop.org/show_bug.cgi?id=79806
--- Comment #5 from Gabor Enyedi enyecz@gmail.com --- One more! If you (or anyone else) don't have the same card, but have some similar issue, you should check if the problem is the same or not (i.e. that the card does not turn up performance, when needed). Give some 3D load (e.g. glmark2), and check /sys/kernel/debug/dri/64/radeon_pm_info.(In reply to comment #3)
Workaround: when resume, execute "echo auto > /sys/class/drm/card0/device/power_dpm_force_performance_level".
How did you do that? It gives me "echo: write error: Invalid argument" on kernel 3.15
One more! If you (or anyone else) don't have the same card, but have some similar issue, you should check if the problem is the same or not (i.e. that the card does not turn up performance, when needed). Give some 3D load (e.g. glmark2), and check /sys/kernel/debug/dri/64/radeon_pm_info.
https://bugs.freedesktop.org/show_bug.cgi?id=79806
--- Comment #6 from Chernovsky Oleg adonai@xaker.ru ---
It simply works without any trick. It also works with stock kernel 3.13. Are you sure that you have the same ATI card?
No, I have Radeon R7 260X, so it uses RadeonSI mesa driver. But I did some research and it appears Radeon DPM is now turned on by default (on latest kernel 3.15) and people complain abount non-working /proc variables everywhere. So sadly, currently there's no clue for me.
https://bugs.freedesktop.org/show_bug.cgi?id=79806
--- Comment #7 from Chernovsky Oleg adonai@xaker.ru ---
One more! If you (or anyone else) don't have the same card, but have some similar issue, you should check if the problem is the same or not (i.e. that the card does not turn up performance, when needed). Give some 3D load (e.g. glmark2), and check /sys/kernel/debug/dri/64/radeon_pm_info.
I'll try it in my spare time and post results here.
https://bugs.freedesktop.org/show_bug.cgi?id=79806
--- Comment #8 from Chernovsky Oleg adonai@xaker.ru --- So I bencmarked my card as you said and here are the results: ======================================================= glmark2 2014.03 ======================================================= OpenGL Information GL_VENDOR: X.Org GL_RENDERER: Gallium 0.4 on AMD BONAIRE GL_VERSION: 3.0 Mesa 10.2.3 =======================================================
Before suspend:
power level avg sclk: 116000 mclk: 165000
glmark: [build] use-vbo=false: FPS: 4266 FrameTime: 0.234 ms [build] use-vbo=true: FPS: 4806 FrameTime: 0.208 ms [texture] texture-filter=nearest: FPS: 4270 FrameTime: 0.234 ms [texture] texture-filter=linear: FPS: 4332 FrameTime: 0.231 ms [texture] texture-filter=mipmap: FPS: 4451 FrameTime: 0.225 ms [shading] shading=gouraud: FPS: 4361 FrameTime: 0.229 ms [shading] shading=blinn-phong-inf: FPS: 4363 FrameTime: 0.229 ms [shading] shading=phong: FPS: 4340 FrameTime: 0.230 ms [shading] shading=cel: FPS: 4330 FrameTime: 0.231 ms [bump] bump-render=high-poly: FPS: 3666 FrameTime: 0.273 ms [bump] bump-render=normals: FPS: 4717 FrameTime: 0.212 ms [bump] bump-render=height: FPS: 4688 FrameTime: 0.213 ms
================================================================
After suspend:
power level avg sclk: 28250 mclk: 15000
glmark: [build] use-vbo=false: FPS: 392 FrameTime: 2.551 ms [build] use-vbo=true: FPS: 433 FrameTime: 2.309 ms [texture] texture-filter=nearest: FPS: 340 FrameTime: 2.941 ms [texture] texture-filter=linear: FPS: 315 FrameTime: 3.175 ms [texture] texture-filter=mipmap: FPS: 369 FrameTime: 2.710 ms [shading] shading=gouraud: FPS: 311 FrameTime: 3.215 ms [shading] shading=blinn-phong-inf: FPS: 327 FrameTime: 3.058 ms [shading] shading=phong: FPS: 341 FrameTime: 2.933 ms [shading] shading=cel: FPS: 340 FrameTime: 2.941 ms [bump] bump-render=high-poly: FPS: 294 FrameTime: 3.401 ms [bump] bump-render=normals: FPS: 370 FrameTime: 2.703 ms [bump] bump-render=height: FPS: 371 FrameTime: 2.695 ms
https://bugs.freedesktop.org/show_bug.cgi?id=79806
Martin Peres martin.peres@free.fr changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |MOVED
--- Comment #9 from Martin Peres martin.peres@free.fr --- -- GitLab Migration Automatic Message --
This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.
You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/drm/amd/issues/502.
dri-devel@lists.freedesktop.org