Skip to contentSkip to conversation

FAN speed is too high when displays are off

Bug 101653 [email protected] 1 participant 6 messages Jun 29, 2017 – Jul 24, 2017

lore
Share & tools
lore
#0 lore raw

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: [email protected]
Reporter: [email protected]

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
Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#2 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=101653

--- Comment #2 from Alexander Tsoy <[email protected]> --- 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
Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#3 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=101653

--- Comment #3 from Alex Deucher <[email protected]> --- Created attachment 132374
--> https://bugs.freedesktop.org/attachment.cgi?id=132374&action=edit
possible fix

Depends on attachment 132358.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#4 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=101653

--- Comment #4 from Alexander Tsoy <[email protected]> --- (In reply to Alex Deucher from comment #3)

Quoted 2 lines

Created attachment 132374 [details] [review]
possible fix

It works. Thanks.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#5 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=101653

Alexander Tsoy <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

         Resolution|---                         |FIXED
             Status|NEW                         |RESOLVED

--- Comment #5 from Alexander Tsoy <[email protected]> --- The patch is upstream:
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=73cc90798ff765341a1d9c2cfe18153ab231c9bb

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel