Bug 1180404 - high idle power consumption of amd gpu 5700xt with kernel 5.10.1
high idle power consumption of amd gpu 5700xt with kernel 5.10.1
Status: RESOLVED FIXED
Classification: openSUSE
Product: openSUSE Tumbleweed
Classification: openSUSE
Component: Kernel
Current
PC Other
: P5 - None : Normal (vote)
: ---
Assigned To: openSUSE Kernel Bugs
E-mail List
https://gitlab.freedesktop.org/drm/am...
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2020-12-28 13:23 UTC by Benoît Monin
Modified: 2021-01-21 13:06 UTC (History)
2 users (show)

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Benoît Monin 2020-12-28 13:23:49 UTC
On opensuse tumbleweed with kernel 5.10.1, the idle power consumption of my AMD graphic card (5700xt navi 10) increased from 8W to 29W over previous kernel versions. This is annoying as the graphic card periodically starts and stops the fan to deal with the increased temperature while simply displaying the desktop.

I only have one monitor attached (1920x1200@60Hz) but the VRAM clock is now set to 850MHz all the time, while it was as 100MHz with earlier kernels. Is there any way to revert to the old behaviour?

With 5.10.1-1-default: cat /sys/kernel/debug/dri/0/amdgpu_pm_info
GFX Clocks and Power:
        875 MHz (MCLK)
        800 MHz (SCLK)
        1300 MHz (PSTATE_SCLK)
        625 MHz (PSTATE_MCLK)
        725 mV (VDDGFX)
        29.0 W (average GPU)

GPU Temperature: 52 C
GPU Load: 0 %
MEM Load: 0 %

SMC Feature Mask: 0x00000623a3ddaffb
VCN: Disabled

Clock Gating Flags Mask: 0x38099f05
        Graphics Medium Grain Clock Gating: On
        Graphics Medium Grain memory Light Sleep: Off
        Graphics Coarse Grain Clock Gating: On
        Graphics Coarse Grain memory Light Sleep: Off
        Graphics Coarse Grain Tree Shader Clock Gating: Off
        Graphics Coarse Grain Tree Shader Light Sleep: Off
        Graphics Command Processor Light Sleep: Off
        Graphics Run List Controller Light Sleep: Off
        Graphics 3D Coarse Grain Clock Gating: Off
        Graphics 3D Coarse Grain memory Light Sleep: Off
        Memory Controller Light Sleep: On
        Memory Controller Medium Grain Clock Gating: On
        System Direct Memory Access Light Sleep: On
        System Direct Memory Access Medium Grain Clock Gating: On
        Bus Interface Medium Grain Clock Gating: On
        Bus Interface Light Sleep: On
        Unified Video Decoder Medium Grain Clock Gating: Off
        Video Compression Engine Medium Grain Clock Gating: Off
        Host Data Path Light Sleep: On
        Host Data Path Medium Grain Clock Gating: On
        Digital Right Management Medium Grain Clock Gating: Off
        Digital Right Management Light Sleep: Off
        Rom Medium Grain Clock Gating: Off
        Data Fabric Medium Grain Clock Gating: Off
        Address Translation Hub Medium Grain Clock Gating: On
        Address Translation Hub Light Sleep: On


With 5.9.14-1-default: cat /sys/kernel/debug/dri/0/amdgpu_pm_info
Clock Gating Flags Mask: 0x38099f05
        Graphics Medium Grain Clock Gating: On
        Graphics Medium Grain memory Light Sleep: Off
        Graphics Coarse Grain Clock Gating: On
        Graphics Coarse Grain memory Light Sleep: Off
        Graphics Coarse Grain Tree Shader Clock Gating: Off
        Graphics Coarse Grain Tree Shader Light Sleep: Off
        Graphics Command Processor Light Sleep: Off
        Graphics Run List Controller Light Sleep: Off
        Graphics 3D Coarse Grain Clock Gating: Off
        Graphics 3D Coarse Grain memory Light Sleep: Off
        Memory Controller Light Sleep: On
        Memory Controller Medium Grain Clock Gating: On
        System Direct Memory Access Light Sleep: On
        System Direct Memory Access Medium Grain Clock Gating: On
        Bus Interface Medium Grain Clock Gating: On
        Bus Interface Light Sleep: On
        Unified Video Decoder Medium Grain Clock Gating: Off
        Video Compression Engine Medium Grain Clock Gating: Off
        Host Data Path Light Sleep: On
        Host Data Path Medium Grain Clock Gating: On
        Digital Right Management Medium Grain Clock Gating: Off
        Digital Right Management Light Sleep: Off
        Rom Medium Grain Clock Gating: Off
        Data Fabric Medium Grain Clock Gating: Off
        Address Translation Hub Medium Grain Clock Gating: On
        Address Translation Hub Light Sleep: On

GFX Clocks and Power:
        100 MHz (MCLK)
        800 MHz (SCLK)
        1300 MHz (PSTATE_SCLK)
        625 MHz (PSTATE_MCLK)
        750 mV (VDDGFX)
        8.0 W (average GPU)

GPU Temperature: 35 C
GPU Load: 0 %
MEM Load: 0 %

SMC Feature Mask: 0x00000623a3ddaffb
VCN: Disabled
Comment 1 Takashi Iwai 2020-12-29 08:52:49 UTC
Care to report this to upstream bug tracker, e.g. gitlab.freedesktop.org Issues?
Comment 2 Benoît Monin 2020-12-29 10:44:53 UTC
I found the following issue that matches my problem in the upstream bugtracker:
https://gitlab.freedesktop.org/drm/amd/-/issues/1407
Comment 3 Benoît Monin 2020-12-29 19:27:29 UTC
Bisected to:
a861736dae64 drm/amd/display: Fixed Intermittent blue screen on OLED panel
Comment 4 Takashi Iwai 2020-12-30 07:45:40 UTC
Thanks.  Let's wait a bit for the reaction from the upstream.  If nothing happens, I'm going to revert the commit on Kernel:stable.
Comment 5 Takashi Iwai 2021-01-05 14:31:48 UTC
Since there has been no visible reaction from the upstream, I pushed the revert of the culprit commit (a861736dae64 "drm/amd/display: Fixed Intermittent blue screen on OLED panel") for stable branch as a tentative fix for now.

I'll keep this bug opened, though, until the upstream fixes it properly and we backport it.
Comment 6 Benoît Monin 2021-01-16 10:28:47 UTC
For reference, the revert has been merged in Linus tree:

https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=4eec66c014e9a406d8d453de958f6791d05427e4
Comment 7 Benoît Monin 2021-01-19 19:14:23 UTC
The revert is now part of the stable tree and released in 5.10.9:

https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=linux-5.10.y&id=989a0f6791ff55344cba164498225707045f6b1a
Comment 8 Takashi Iwai 2021-01-21 13:06:16 UTC
Thanks for the update.  Since the official revert landed in the stable, let's close now.