https://bugs.freedesktop.org/show_bug.cgi?id=101653
Bug ID: 101653 Summary: FAN speed is too high when displays are off Product: DRI Version: unspecified Hardware: Other OS: All Status: NEW Severity: normal Priority: medium Component: DRM/AMDgpu Assignee: dri-devel@lists.freedesktop.org Reporter: alexander@tsoy.me
Created attachment 132364 --> https://bugs.freedesktop.org/attachment.cgi?id=132364&action=edit kernel log
While investigating bug #101528, I've noticed another issue: FAN speed is too high when display are off.
Display is off: $ cat /sys/class/hwmon/hwmon6/fan1_input 1914
Display is on: $ cat /sys/class/hwmon/hwmon6/fan1_input 941
In both cases sclk, mclk and pcie are in the same lowest state.
GPU: 01:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Tonga PRO [Radeon R9 285/380] [1002:6939] (rev f1) (prog-if 00 [VGA controller]) Subsystem: PC Partner Limited / Sapphire Technology Tonga PRO [Radeon R9 285/380] [174b:e305]
kernel: $ uname -r 4.11.7-gentoo
https://bugs.freedesktop.org/show_bug.cgi?id=101653
--- Comment #1 from Alexander Tsoy alexander@tsoy.me --- It looks like actual FAN speed doesn't change. It's just reported differently.
https://bugs.freedesktop.org/show_bug.cgi?id=101653
--- Comment #2 from Alexander Tsoy alexander@tsoy.me --- smu7_get_xclk() returns some crazy values when display is off. And this value depends on some state that changes every boot.
$ sudo journalctl -b -1 -o cat | grep reference_clock | sort | uniq -c 4 amdgpu: reference_clock = 232169472, tmp = 0 5 amdgpu: reference_clock = 2700, tmp = 0 $ sudo journalctl -b -o cat | grep reference_clock | sort | uniq -c 16 amdgpu: reference_clock = 1305214976, tmp = 0 12 amdgpu: reference_clock = 2700, tmp = 0
So now after reboot I get a different FAN speed when display is off: $ cat /sys/class/hwmon/hwmon6/fan1_input 1057
When display is on, FAN speed is always consistent. $ cat /sys/class/hwmon/hwmon6/fan1_input 937
https://bugs.freedesktop.org/show_bug.cgi?id=101653
--- Comment #3 from Alex Deucher alexdeucher@gmail.com --- Created attachment 132374 --> https://bugs.freedesktop.org/attachment.cgi?id=132374&action=edit possible fix
Depends on attachment 132358.
https://bugs.freedesktop.org/show_bug.cgi?id=101653
--- Comment #4 from Alexander Tsoy alexander@tsoy.me --- (In reply to Alex Deucher from comment #3)
Created attachment 132374 [details] [review] possible fix
It works. Thanks.
https://bugs.freedesktop.org/show_bug.cgi?id=101653
Alexander Tsoy alexander@tsoy.me changed:
What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |FIXED Status|NEW |RESOLVED
--- Comment #5 from Alexander Tsoy alexander@tsoy.me --- The patch is upstream: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?i...
dri-devel@lists.freedesktop.org