From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 101653] FAN speed is too high when displays are off Date: Thu, 29 Jun 2017 23:32:50 +0000 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1532076939==" Return-path: Received: from culpepper.freedesktop.org (culpepper.freedesktop.org [131.252.210.165]) by gabe.freedesktop.org (Postfix) with ESMTP id 1E6756E73B for ; Thu, 29 Jun 2017 23:32:50 +0000 (UTC) List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" To: dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org --===============1532076939== Content-Type: multipart/alternative; boundary="14987791700.02d8e0a.871"; charset="UTF-8" --14987791700.02d8e0a.871 Date: Thu, 29 Jun 2017 23:32:50 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.freedesktop.org/ Auto-Submitted: auto-generated https://bugs.freedesktop.org/show_bug.cgi?id=3D101653 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=3D132364&action=3Dedit kernel log While investigating bug #101528, I've noticed another issue: FAN speed is t= oo 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 [V= GA controller]) Subsystem: PC Partner Limited / Sapphire Technology Tonga PRO [Rade= on R9 285/380] [174b:e305] kernel: $ uname -r 4.11.7-gentoo --=20 You are receiving this mail because: You are the assignee for the bug.= --14987791700.02d8e0a.871 Date: Thu, 29 Jun 2017 23:32:50 +0000 MIME-Version: 1.0 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.freedesktop.org/ Auto-Submitted: auto-generated
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 [det=
ails]
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 [V=
GA
controller])
        Subsystem: PC Partner Limited / Sapphire Technology Tonga PRO [Rade=
on
R9 285/380] [174b:e305]

kernel:
$ uname -r
4.11.7-gentoo


You are receiving this mail because:
  • You are the assignee for the bug.
= --14987791700.02d8e0a.871-- --===============1532076939== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVsCg== --===============1532076939==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 101653] FAN speed is too high when displays are off Date: Fri, 30 Jun 2017 00:25:30 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0323754702==" Return-path: Received: from culpepper.freedesktop.org (culpepper.freedesktop.org [131.252.210.165]) by gabe.freedesktop.org (Postfix) with ESMTP id 52D108914E for ; Fri, 30 Jun 2017 00:25:30 +0000 (UTC) In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" To: dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org --===============0323754702== Content-Type: multipart/alternative; boundary="14987823300.6Eee3f.3013"; charset="UTF-8" --14987823300.6Eee3f.3013 Date: Fri, 30 Jun 2017 00:25:30 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.freedesktop.org/ Auto-Submitted: auto-generated https://bugs.freedesktop.org/show_bug.cgi?id=3D101653 --- Comment #1 from Alexander Tsoy --- It looks like actual FAN speed doesn't change. It's just reported different= ly. --=20 You are receiving this mail because: You are the assignee for the bug.= --14987823300.6Eee3f.3013 Date: Fri, 30 Jun 2017 00:25:30 +0000 MIME-Version: 1.0 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.freedesktop.org/ Auto-Submitted: auto-generated

Commen= t # 1 on bug 10165= 3 from Alexander Tsoy
It looks like actual FAN speed doesn't change. It's just repor=
ted differently.


You are receiving this mail because:
  • You are the assignee for the bug.
= --14987823300.6Eee3f.3013-- --===============0323754702== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVsCg== --===============0323754702==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 101653] FAN speed is too high when displays are off Date: Fri, 30 Jun 2017 03:03:12 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1206282281==" Return-path: Received: from culpepper.freedesktop.org (culpepper.freedesktop.org [131.252.210.165]) by gabe.freedesktop.org (Postfix) with ESMTP id B08126E16E for ; Fri, 30 Jun 2017 03:03:12 +0000 (UTC) In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" To: dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org --===============1206282281== Content-Type: multipart/alternative; boundary="14987917920.4DB2BC.17653"; charset="UTF-8" --14987917920.4DB2BC.17653 Date: Fri, 30 Jun 2017 03:03:12 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.freedesktop.org/ Auto-Submitted: auto-generated https://bugs.freedesktop.org/show_bug.cgi?id=3D101653 --- Comment #2 from Alexander Tsoy --- smu7_get_xclk() returns some crazy values when display is off. And this val= ue depends on some state that changes every boot. $ sudo journalctl -b -1 -o cat | grep reference_clock | sort | uniq -c 4 amdgpu: reference_clock =3D 232169472, tmp =3D 0 5 amdgpu: reference_clock =3D 2700, tmp =3D 0 $ sudo journalctl -b -o cat | grep reference_clock | sort | uniq -c 16 amdgpu: reference_clock =3D 1305214976, tmp =3D 0 12 amdgpu: reference_clock =3D 2700, tmp =3D 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 --=20 You are receiving this mail because: You are the assignee for the bug.= --14987917920.4DB2BC.17653 Date: Fri, 30 Jun 2017 03:03:12 +0000 MIME-Version: 1.0 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.freedesktop.org/ Auto-Submitted: auto-generated

Commen= t # 2 on bug 10165= 3 from Alexander Tsoy
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 =3D 232169472, tmp =3D 0
      5 amdgpu: reference_clock =3D 2700, tmp =3D 0
$ sudo journalctl -b -o cat | grep reference_clock | sort | uniq -c
     16 amdgpu: reference_clock =3D 1305214976, tmp =3D 0
     12 amdgpu: reference_clock =3D 2700, tmp =3D 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


You are receiving this mail because:
  • You are the assignee for the bug.
= --14987917920.4DB2BC.17653-- --===============1206282281== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVsCg== --===============1206282281==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 101653] FAN speed is too high when displays are off Date: Fri, 30 Jun 2017 14:02:56 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1708102486==" Return-path: Received: from culpepper.freedesktop.org (culpepper.freedesktop.org [131.252.210.165]) by gabe.freedesktop.org (Postfix) with ESMTP id 042AA6E80C for ; Fri, 30 Jun 2017 14:02:56 +0000 (UTC) In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" To: dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org --===============1708102486== Content-Type: multipart/alternative; boundary="14988313750.feBC.14308"; charset="UTF-8" --14988313750.feBC.14308 Date: Fri, 30 Jun 2017 14:02:55 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.freedesktop.org/ Auto-Submitted: auto-generated https://bugs.freedesktop.org/show_bug.cgi?id=3D101653 --- Comment #3 from Alex Deucher --- Created attachment 132374 --> https://bugs.freedesktop.org/attachment.cgi?id=3D132374&action=3Dedit possible fix Depends on attachment 132358. --=20 You are receiving this mail because: You are the assignee for the bug.= --14988313750.feBC.14308 Date: Fri, 30 Jun 2017 14:02:55 +0000 MIME-Version: 1.0 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.freedesktop.org/ Auto-Submitted: auto-generated


You are receiving this mail because:
  • You are the assignee for the bug.
= --14988313750.feBC.14308-- --===============1708102486== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVsCg== --===============1708102486==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 101653] FAN speed is too high when displays are off Date: Fri, 30 Jun 2017 23:18:26 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0317634147==" Return-path: Received: from culpepper.freedesktop.org (culpepper.freedesktop.org [131.252.210.165]) by gabe.freedesktop.org (Postfix) with ESMTP id C88A26E874 for ; Fri, 30 Jun 2017 23:18:25 +0000 (UTC) In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" To: dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org --===============0317634147== Content-Type: multipart/alternative; boundary="14988647050.657b3.3351"; charset="UTF-8" --14988647050.657b3.3351 Date: Fri, 30 Jun 2017 23:18:25 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.freedesktop.org/ Auto-Submitted: auto-generated https://bugs.freedesktop.org/show_bug.cgi?id=3D101653 --- Comment #4 from Alexander Tsoy --- (In reply to Alex Deucher from comment #3) > Created attachment 132374 [details] [review] > possible fix It works. Thanks. --=20 You are receiving this mail because: You are the assignee for the bug.= --14988647050.657b3.3351 Date: Fri, 30 Jun 2017 23:18:25 +0000 MIME-Version: 1.0 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.freedesktop.org/ Auto-Submitted: auto-generated

Commen= t # 4 on bug 10165= 3 from Alexander Tsoy
(In reply to Alex Deucher from comment #3)
> Created attachment 13=
2374 [details] [review] [review]
> possible fix

It works. Thanks.


You are receiving this mail because:
  • You are the assignee for the bug.
= --14988647050.657b3.3351-- --===============0317634147== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVsCg== --===============0317634147==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 101653] FAN speed is too high when displays are off Date: Mon, 24 Jul 2017 00:13:50 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1129036949==" Return-path: Received: from culpepper.freedesktop.org (culpepper.freedesktop.org [IPv6:2610:10:20:722:a800:ff:fe98:4b55]) by gabe.freedesktop.org (Postfix) with ESMTP id EFE086E172 for ; Mon, 24 Jul 2017 00:13:49 +0000 (UTC) In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" To: dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org --===============1129036949== Content-Type: multipart/alternative; boundary="15008552290.A2FB2b.12393"; charset="UTF-8" --15008552290.A2FB2b.12393 Date: Mon, 24 Jul 2017 00:13:49 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.freedesktop.org/ Auto-Submitted: auto-generated https://bugs.freedesktop.org/show_bug.cgi?id=3D101653 Alexander Tsoy changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |FIXED Status|NEW |RESOLVED --- Comment #5 from Alexander Tsoy --- The patch is upstream: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?= id=3D73cc90798ff765341a1d9c2cfe18153ab231c9bb --=20 You are receiving this mail because: You are the assignee for the bug.= --15008552290.A2FB2b.12393 Date: Mon, 24 Jul 2017 00:13:49 +0000 MIME-Version: 1.0 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.freedesktop.org/ Auto-Submitted: auto-generated Alexander Tsoy changed bug 10165= 3
What Removed Added
Resolution --- FIXED
Status NEW RESOLVED


You are receiving this mail because:
  • You are the assignee for the bug.
= --15008552290.A2FB2b.12393-- --===============1129036949== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVsCg== --===============1129036949==--