From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 106957] GPU runtime suspend broken since 4.17 Date: Mon, 18 Jun 2018 20:49:51 +0000 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1557317028==" Return-path: Received: from culpepper.freedesktop.org (culpepper.freedesktop.org [131.252.210.165]) by gabe.freedesktop.org (Postfix) with ESMTP id 4E1196E1A0 for ; Mon, 18 Jun 2018 20:49:52 +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 --===============1557317028== Content-Type: multipart/alternative; boundary="15293549920.aBf1Df4A.16622" Content-Transfer-Encoding: 7bit --15293549920.aBf1Df4A.16622 Date: Mon, 18 Jun 2018 20:49:52 +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=3D106957 Bug ID: 106957 Summary: GPU runtime suspend broken since 4.17 Product: DRI Version: unspecified Hardware: x86-64 (AMD64) OS: Linux (All) Status: NEW Severity: normal Priority: medium Component: DRM/Radeon Assignee: dri-devel@lists.freedesktop.org Reporter: prg@cooco.de CC: lukas@wunner.de Created attachment 140212 --> https://bugs.freedesktop.org/attachment.cgi?id=3D140212&action=3Dedit dmesg from 4.17.2 I got a notebook with some Intel IGP and a Radeon HD5650. Since commit 07f4f97d7b4bf325d9f558c5b58230387e4e57e0 the dGPU is constantly DynPwr'd. T= his still happens in 4.17.2, so the patch mentioned in #106597 doesn't help. --=20 You are receiving this mail because: You are the assignee for the bug.= --15293549920.aBf1Df4A.16622 Date: Mon, 18 Jun 2018 20:49:52 +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 106957
Summary GPU runtime suspend broken since 4.17
Product DRI
Version unspecified
Hardware x86-64 (AMD64)
OS Linux (All)
Status NEW
Severity normal
Priority medium
Component DRM/Radeon
Assignee dri-devel@lists.freedesktop.org
Reporter prg@cooco.de
CC lukas@wunner.de

Created attachment 140212 =
[details]
dmesg from 4.17.2

I got a notebook with some Intel IGP and a Radeon HD5650. Since commit
07f4f97d7b4bf325d9f558c5b58230387e4e57e0 the dGPU is constantly DynPwr'd. T=
his
still happens in 4.17.2, so the patch mentioned in #106597 doesn't help.
        


You are receiving this mail because:
  • You are the assignee for the bug.
= --15293549920.aBf1Df4A.16622-- --===============1557317028== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVsCg== --===============1557317028==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 106957] GPU runtime suspend broken since 4.17 Date: Mon, 18 Jun 2018 22:06:04 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2139146206==" 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 EC6B16E18B for ; Mon, 18 Jun 2018 22:06:03 +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 --===============2139146206== Content-Type: multipart/alternative; boundary="15293595631.121A9.9072" Content-Transfer-Encoding: 7bit --15293595631.121A9.9072 Date: Mon, 18 Jun 2018 22:06:03 +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=3D106957 --- Comment #1 from Lukas Wunner --- Hm, what does the following show? cat /sys/bus/pci/devices/0000:02:00.0/power/control # GPU cat /sys/bus/pci/devices/0000:02:00.0/power/runtime_status # GPU cat /sys/bus/pci/devices/0000:02:00.0/power/runtime_usage # GPU cat /sys/bus/pci/devices/0000:02:00.0/power/runtime_active_kids # GPU cat /sys/bus/pci/devices/0000:02:00.1/power/control # HDA cat /sys/bus/pci/devices/0000:02:00.1/power/runtime_status # HDA cat /sys/bus/pci/devices/0000:02:00.1/power/runtime_usage # HDA cat /sys/bus/pci/devices/0000:02:00.1/power/runtime_active_kids # HDA I can't see anything in dmesg that the HDA controller is bound to a driver. What does the following show? ls -l /sys/bus/pci/devices/0000:02:00.1/driver --=20 You are receiving this mail because: You are the assignee for the bug.= --15293595631.121A9.9072 Date: Mon, 18 Jun 2018 22:06:03 +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 10695= 7 from Lukas Wunner
Hm, what does the following show?

cat /sys/bus/pci/devices/0000:02:00.0/power/control               # GPU
cat /sys/bus/pci/devices/0000:02:00.0/power/runtime_status        # GPU
cat /sys/bus/pci/devices/0000:02:00.0/power/runtime_usage         # GPU
cat /sys/bus/pci/devices/0000:02:00.0/power/runtime_active_kids   # GPU
cat /sys/bus/pci/devices/0000:02:00.1/power/control               # HDA
cat /sys/bus/pci/devices/0000:02:00.1/power/runtime_status        # HDA
cat /sys/bus/pci/devices/0000:02:00.1/power/runtime_usage         # HDA
cat /sys/bus/pci/devices/0000:02:00.1/power/runtime_active_kids   # HDA

I can't see anything in dmesg that the HDA controller is bound to a driver.
What does the following show?

ls -l /sys/bus/pci/devices/0000:02:00.1/driver


You are receiving this mail because:
  • You are the assignee for the bug.
= --15293595631.121A9.9072-- --===============2139146206== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVsCg== --===============2139146206==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 106957] GPU runtime suspend broken since 4.17 Date: Tue, 19 Jun 2018 16:08:08 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0968291277==" 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 B39FC6E5A0 for ; Tue, 19 Jun 2018 16:08:08 +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 --===============0968291277== Content-Type: multipart/alternative; boundary="15294244881.2Dc6.19923" Content-Transfer-Encoding: 7bit --15294244881.2Dc6.19923 Date: Tue, 19 Jun 2018 16:08:08 +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=3D106957 --- Comment #2 from prg@cooco.de --- # cat /sys/bus/pci/devices/0000:02:00.0/power/control # GPU auto # cat /sys/bus/pci/devices/0000:02:00.0/power/runtime_status # GPU active # cat /sys/bus/pci/devices/0000:02:00.0/power/runtime_usage # GPU cat: '/sys/bus/pci/devices/0000:02:00.0/power/runtime_usage': No such file = or directory # cat /sys/bus/pci/devices/0000:02:00.0/power/runtime_active_kids # GPU cat: '/sys/bus/pci/devices/0000:02:00.0/power/runtime_active_kids': No such file or directory=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20 # cat /sys/bus/pci/devices/0000:02:00.1/power/control # HDA= =20=20=20=20=20=20=20 auto=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20 # cat /sys/bus/pci/devices/0000:02:00.1/power/runtime_status # HDA active # cat /sys/bus/pci/devices/0000:02:00.1/power/runtime_usage # HDA cat: '/sys/bus/pci/devices/0000:02:00.1/power/runtime_usage': No such file = or directory # cat /sys/bus/pci/devices/0000:02:00.1/power/runtime_active_kids # HDA cat: '/sys/bus/pci/devices/0000:02:00.1/power/runtime_active_kids': No such file or directory # ls -l /sys/bus/pci/devices/0000:02:00.1/driver lrwxrwxrwx 1 root root 0 Jun 19 18:04 /sys/bus/pci/devices/0000:02:00.1/dri= ver -> ../../../../bus/pci/drivers/snd_hda_intel --=20 You are receiving this mail because: You are the assignee for the bug.= --15294244881.2Dc6.19923 Date: Tue, 19 Jun 2018 16:08:08 +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 10695= 7 from prg@cooco.de
# cat /sys/bus/pci/devices/0000:02:00.0/power/control         =
      # GPU
auto

# cat /sys/bus/pci/devices/0000:02:00.0/power/runtime_status        # GPU
active

# cat /sys/bus/pci/devices/0000:02:00.0/power/runtime_usage         # GPU
cat: '/sys/bus/pci/devices/0000:02:00.0/power/runtime_usage': No such file =
or
directory

# cat /sys/bus/pci/devices/0000:02:00.0/power/runtime_active_kids   # GPU
cat: '/sys/bus/pci/devices/0000:02:00.0/power/runtime_active_kids': No such
file or directory=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20

# cat /sys/bus/pci/devices/0000:02:00.1/power/control               # HDA=
=20=20=20=20=20=20=20
auto=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20

# cat /sys/bus/pci/devices/0000:02:00.1/power/runtime_status        # HDA
active

# cat /sys/bus/pci/devices/0000:02:00.1/power/runtime_usage         # HDA
cat: '/sys/bus/pci/devices/0000:02:00.1/power/runtime_usage': No such file =
or
directory

# cat /sys/bus/pci/devices/0000:02:00.1/power/runtime_active_kids   # HDA
cat: '/sys/bus/pci/devices/0000:02:00.1/power/runtime_active_kids': No such
file or directory

# ls -l /sys/bus/pci/devices/0000:02:00.1/driver
lrwxrwxrwx 1 root root 0 Jun 19 18:04 /sys/bus/pci/devices/0000:02:00.1/dri=
ver
-> ../../../../bus/pci/drivers/snd_hda_intel


You are receiving this mail because:
  • You are the assignee for the bug.
= --15294244881.2Dc6.19923-- --===============0968291277== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVsCg== --===============0968291277==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 106957] GPU runtime suspend broken since 4.17 Date: Tue, 19 Jun 2018 17:51:09 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1575608144==" Return-path: Received: from culpepper.freedesktop.org (culpepper.freedesktop.org [131.252.210.165]) by gabe.freedesktop.org (Postfix) with ESMTP id 2ECEC6E0D0 for ; Tue, 19 Jun 2018 17:51:09 +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 --===============1575608144== Content-Type: multipart/alternative; boundary="15294306680.ce4D.18759" Content-Transfer-Encoding: 7bit --15294306680.ce4D.18759 Date: Tue, 19 Jun 2018 17:51:08 +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=3D106957 --- Comment #3 from Lukas Wunner --- Okay so the HDA controller is bound to a driver and is runtime active.=20 Naturally, if it's runtime active it'll keep the GPU awake. Question is wh= at's keeping it active. Could you check if there are any user space processes accessing the HDA controller: sudo lsof /dev/snd/controlC1 You got "No such file or directory" for some of the commands I gave you bec= ause the kernel isn't compiled with CONFIG_PM_ADVANCED_DEBUG=3Dy. Could you ena= ble that option and try again? Thanks! --=20 You are receiving this mail because: You are the assignee for the bug.= --15294306680.ce4D.18759 Date: Tue, 19 Jun 2018 17:51:08 +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 # 3 on bug 10695= 7 from Lukas Wunner
Okay so the HDA controller is bound to a driver and is runtime=
 active.=20
Naturally, if it's runtime active it'll keep the GPU awake.  Question is wh=
at's
keeping it active.

Could you check if there are any user space processes accessing the HDA
controller:
sudo lsof /dev/snd/controlC1

You got "No such file or directory" for some of the commands I ga=
ve you because
the kernel isn't compiled with CONFIG_PM_ADVANCED_DEBUG=3Dy.  Could you ena=
ble
that option and try again?  Thanks!


You are receiving this mail because:
  • You are the assignee for the bug.
= --15294306680.ce4D.18759-- --===============1575608144== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVsCg== --===============1575608144==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 106957] GPU runtime suspend broken since 4.17 Date: Tue, 19 Jun 2018 18:32:49 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1508751651==" 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 D46546E5C7 for ; Tue, 19 Jun 2018 18:32:48 +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 --===============1508751651== Content-Type: multipart/alternative; boundary="15294331681.F4DAA.335" Content-Transfer-Encoding: 7bit --15294331681.F4DAA.335 Date: Tue, 19 Jun 2018 18:32:48 +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=3D106957 --- Comment #4 from prg@cooco.de --- # cat /sys/bus/pci/devices/0000:02:00.0/power/runtime_usage 1 # cat /sys/bus/pci/devices/0000:02:00.0/power/runtime_active_kids 0 # cat /sys/bus/pci/devices/0000:02:00.1/power/runtime_usage 0 # cat /sys/bus/pci/devices/0000:02:00.1/power/runtime_active_kids 0 # lsof /dev/snd/controlC1 No output. Yes, I did run this as root. --=20 You are receiving this mail because: You are the assignee for the bug.= --15294331681.F4DAA.335 Date: Tue, 19 Jun 2018 18:32:48 +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 10695= 7 from prg@cooco.de
# cat /sys/bus/pci/devices/0000:02:00.0/power/runtime_usage
1

# cat /sys/bus/pci/devices/0000:02:00.0/power/runtime_active_kids
0

# cat /sys/bus/pci/devices/0000:02:00.1/power/runtime_usage
0

# cat /sys/bus/pci/devices/0000:02:00.1/power/runtime_active_kids
0

# lsof /dev/snd/controlC1

No output. Yes, I did run this as root.


You are receiving this mail because:
  • You are the assignee for the bug.
= --15294331681.F4DAA.335-- --===============1508751651== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVsCg== --===============1508751651==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 106957] GPU runtime suspend broken since 4.17 Date: Tue, 19 Jun 2018 20:09:41 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1186046999==" Return-path: Received: from culpepper.freedesktop.org (culpepper.freedesktop.org [131.252.210.165]) by gabe.freedesktop.org (Postfix) with ESMTP id 4A97E6E261 for ; Tue, 19 Jun 2018 20:09:41 +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 --===============1186046999== Content-Type: multipart/alternative; boundary="15294389810.Ed0821.340" Content-Transfer-Encoding: 7bit --15294389810.Ed0821.340 Date: Tue, 19 Jun 2018 20:09:41 +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=3D106957 --- Comment #5 from Lukas Wunner --- Okay the HDA's runtime ref counter is 0 and it has no active children, so it should suspend. Chances are it doesn't because rpm_idle() fails for some reason. Could you try this debug patch that I had created for #106597 and post the dmesg output? https://bugs.freedesktop.org/attachment.cgi?id=3D139706&action=3Dedit You can add "log_buf_len=3D10M ignore_loglevel" to the command line to ensu= re that dmesg isn't truncated and contains all debug output. --=20 You are receiving this mail because: You are the assignee for the bug.= --15294389810.Ed0821.340 Date: Tue, 19 Jun 2018 20:09:41 +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 # 5 on bug 10695= 7 from Lukas Wunner
Okay the HDA's runtime ref counter is 0 and it has no active c=
hildren, so it
should suspend. Chances are it doesn't because rpm_idle() fails for some
reason.

Could you try this debug patch that I had created for #106597 and post the
dmesg output?

https://bugs.freedesktop.org/attachment.cgi?id=3D139706&acti=
on=3Dedit

You can add "log_buf_len=3D10M ignore_loglevel" to the command li=
ne to ensure
that dmesg isn't truncated and contains all debug output.


You are receiving this mail because:
  • You are the assignee for the bug.
= --15294389810.Ed0821.340-- --===============1186046999== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVsCg== --===============1186046999==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 106957] GPU runtime suspend broken since 4.17 Date: Tue, 19 Jun 2018 20:25:01 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0052725860==" 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 C9A236E5C9 for ; Tue, 19 Jun 2018 20:25:01 +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 --===============0052725860== Content-Type: multipart/alternative; boundary="15294399011.22eAbF0.4616" Content-Transfer-Encoding: 7bit --15294399011.22eAbF0.4616 Date: Tue, 19 Jun 2018 20:25:01 +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=3D106957 --- Comment #6 from prg@cooco.de --- Created attachment 140235 --> https://bugs.freedesktop.org/attachment.cgi?id=3D140235&action=3Dedit dmesg with debug patch --=20 You are receiving this mail because: You are the assignee for the bug.= --15294399011.22eAbF0.4616 Date: Tue, 19 Jun 2018 20:25:01 +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 # 6 on bug 10695= 7 from prg@cooco.de
Created attachment 140235=
 [details]
dmesg with debug patch


You are receiving this mail because:
  • You are the assignee for the bug.
= --15294399011.22eAbF0.4616-- --===============0052725860== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVsCg== --===============0052725860==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 106957] GPU runtime suspend broken since 4.17 Date: Wed, 20 Jun 2018 04:12:30 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0209407380==" Return-path: Received: from culpepper.freedesktop.org (culpepper.freedesktop.org [131.252.210.165]) by gabe.freedesktop.org (Postfix) with ESMTP id 207196E67F for ; Wed, 20 Jun 2018 04:12: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 --===============0209407380== Content-Type: multipart/alternative; boundary="15294679501.D7A6afD4.28797" Content-Transfer-Encoding: 7bit --15294679501.D7A6afD4.28797 Date: Wed, 20 Jun 2018 04:12: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=3D106957 --- Comment #7 from Lukas Wunner --- I'm having a d=C3=A9j=C3=A0 vu here :-) [ 7.840122] snd_hda_intel 0000:02:00.1: azx_runtime_idle: !power_save_controller =3D 0, !azx_has_pm_runtime(chip) =3D 0, azx_bus(chip)->codec_powered =3D 0x1, !chip->running =3D 0 The single codec on this HDA controller is considered powered on, hence the= HDA controller refuses to runtime suspend. Same problem as in #106597. What does the following show: grep . /sys/bus/hdaudio/devices/hdaudioC1D0/widgets/*/power_caps And could you try this debug patch (in lieu of the other one) to narrow down the root cause further: https://bugs.freedesktop.org/attachment.cgi?id=3D139735&action=3Dedit Thanks! --=20 You are receiving this mail because: You are the assignee for the bug.= --15294679501.D7A6afD4.28797 Date: Wed, 20 Jun 2018 04:12: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 # 7 on bug 10695= 7 from Lukas Wunner
I'm having a d=C3=A9j=C3=A0 vu here :-)

[    7.840122] snd_hda_intel 0000:02:00.1: azx_runtime_idle:
!power_save_controller =3D 0, !azx_has_pm_runtime(chip) =3D 0,
azx_bus(chip)->codec_powered =3D 0x1, !chip->running =3D 0

The single codec on this HDA controller is considered powered on, hence the=
 HDA
controller refuses to runtime suspend. Same problem as in #106597.

What does the following show:
grep . /sys/bus/hdaudio/devices/hdaudioC1D0/widgets/*/power_caps

And could you try this debug patch (in lieu of the other one) to narrow down
the root cause further:
https://bugs.freedesktop.org/attachment.cgi?id=3D139735&acti=
on=3Dedit

Thanks!


You are receiving this mail because:
  • You are the assignee for the bug.
= --15294679501.D7A6afD4.28797-- --===============0209407380== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVsCg== --===============0209407380==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 106957] GPU runtime suspend broken since 4.17 Date: Wed, 20 Jun 2018 07:27:05 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1094950121==" 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 29F336E00F for ; Wed, 20 Jun 2018 07:27:05 +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 --===============1094950121== Content-Type: multipart/alternative; boundary="15294796250.0fd6e.24645" Content-Transfer-Encoding: 7bit --15294796250.0fd6e.24645 Date: Wed, 20 Jun 2018 07:27:05 +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=3D106957 --- Comment #8 from prg@cooco.de --- Created attachment 140242 --> https://bugs.freedesktop.org/attachment.cgi?id=3D140242&action=3Dedit dmesg with second debug patch # grep . /sys/bus/hdaudio/devices/hdaudioC1D0/widgets/*/power_caps /sys/bus/hdaudio/devices/hdaudioC1D0/widgets/01/power_caps:0x00000009 --=20 You are receiving this mail because: You are the assignee for the bug.= --15294796250.0fd6e.24645 Date: Wed, 20 Jun 2018 07:27:05 +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 # 8 on bug 10695= 7 from prg@cooco.de
Created attachment=
 140242 [details]
dmesg with second debug patch

# grep . /sys/bus/hdaudio/devices/hdaudioC1D0/widgets/*/power_caps
/sys/bus/hdaudio/devices/hdaudioC1D0/widgets/01/power_caps:0x00000009


You are receiving this mail because:
  • You are the assignee for the bug.
= --15294796250.0fd6e.24645-- --===============1094950121== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVsCg== --===============1094950121==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 106957] GPU runtime suspend broken since 4.17 Date: Thu, 21 Jun 2018 19:43:30 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0675198047==" Return-path: Received: from culpepper.freedesktop.org (culpepper.freedesktop.org [131.252.210.165]) by gabe.freedesktop.org (Postfix) with ESMTP id 46C876E2F3 for ; Thu, 21 Jun 2018 19:43: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 --===============0675198047== Content-Type: multipart/alternative; boundary="15296102100.D90efC.3067" Content-Transfer-Encoding: 7bit --15296102100.D90efC.3067 Date: Thu, 21 Jun 2018 19:43: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=3D106957 Lukas Wunner changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |FIXED Status|NEW |RESOLVED --- Comment #9 from Lukas Wunner --- Fixed with commit 57cb54e53bdd ("ALSA: hda - Force to link down at runtime suspend on ATI/AMD HDMI") which is now queued for 4.18-rc2 and marked for stable, it will probably appear in 4.17.3: https://git.kernel.org/tiwai/sound/c/57cb54e53bdd --=20 You are receiving this mail because: You are the assignee for the bug.= --15296102100.D90efC.3067 Date: Thu, 21 Jun 2018 19:43: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 Lukas Wunner changed bug 10695= 7
What Removed Added
Resolution --- FIXED
Status NEW RESOLVED

Commen= t # 9 on bug 10695= 7 from Lukas Wunner
Fixed with commit 57cb54e53bdd ("ALSA: hda - Force to lin=
k down at runtime
suspend on ATI/AMD HDMI") which is now queued for 4.18-rc2 and marked =
for
stable, it will probably appear in 4.17.3:
https://git.k=
ernel.org/tiwai/sound/c/57cb54e53bdd


You are receiving this mail because:
  • You are the assignee for the bug.
= --15296102100.D90efC.3067-- --===============0675198047== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVsCg== --===============0675198047==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 106957] GPU runtime suspend broken since 4.17 Date: Sun, 24 Jun 2018 16:50:26 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1476513167==" Return-path: Received: from culpepper.freedesktop.org (culpepper.freedesktop.org [131.252.210.165]) by gabe.freedesktop.org (Postfix) with ESMTP id B809B6E107 for ; Sun, 24 Jun 2018 16:50:26 +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 --===============1476513167== Content-Type: multipart/alternative; boundary="15298590261.a8aDAbDf.5901" Content-Transfer-Encoding: 7bit --15298590261.a8aDAbDf.5901 Date: Sun, 24 Jun 2018 16:50:26 +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=3D106957 --- Comment #10 from Lukas Wunner --- It looks like no pull request was sent out for the sound subsystem this wee= k, so I'm afraid the fix will not appear in mainline earlier than 4.18-rc3. --=20 You are receiving this mail because: You are the assignee for the bug.= --15298590261.a8aDAbDf.5901 Date: Sun, 24 Jun 2018 16:50:26 +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

Comme= nt # 10 on bug 10695= 7 from Lukas Wunner
It looks like no pull request was sent out for the sound subsy=
stem this week,
so I'm afraid the fix will not appear in mainline earlier than 4.18-rc3.
        


You are receiving this mail because:
  • You are the assignee for the bug.
= --15298590261.a8aDAbDf.5901-- --===============1476513167== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVsCg== --===============1476513167==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 106957] GPU runtime suspend broken since 4.17 Date: Fri, 29 Jun 2018 11:15:05 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1168381336==" Return-path: Received: from culpepper.freedesktop.org (culpepper.freedesktop.org [131.252.210.165]) by gabe.freedesktop.org (Postfix) with ESMTP id 4686A6EBF8 for ; Fri, 29 Jun 2018 11:15:05 +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 --===============1168381336== Content-Type: multipart/alternative; boundary="15302709050.A57127F.32609" Content-Transfer-Encoding: 7bit --15302709050.A57127F.32609 Date: Fri, 29 Jun 2018 11:15:05 +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=3D106957 --- Comment #11 from Lukas Wunner --- The fix landed in Linus' tree yesterday: https://git.kernel.org/linus/57cb54e53bdd --=20 You are receiving this mail because: You are the assignee for the bug.= --15302709050.A57127F.32609 Date: Fri, 29 Jun 2018 11:15:05 +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.
= --15302709050.A57127F.32609-- --===============1168381336== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVsCg== --===============1168381336==--