From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 106597] [vga_switcheroo] commit 07f4f97d7b4bf325d9f558c5b58230387e4e57e0 breaks dpm on Alienware 15R3 Date: Mon, 21 May 2018 20:36:17 +0000 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0702976794==" Return-path: Received: from culpepper.freedesktop.org (culpepper.freedesktop.org [131.252.210.165]) by gabe.freedesktop.org (Postfix) with ESMTP id 1358A6E01F for ; Mon, 21 May 2018 20:36:18 +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 --===============0702976794== Content-Type: multipart/alternative; boundary="15269349770.f06B.16824" Content-Transfer-Encoding: 7bit --15269349770.f06B.16824 Date: Mon, 21 May 2018 20:36:17 +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=3D106597 Bug ID: 106597 Summary: [vga_switcheroo] commit 07f4f97d7b4bf325d9f558c5b58230387e4e57e0 breaks dpm on Alienware 15R3 Product: DRI Version: DRI git Hardware: x86-64 (AMD64) OS: Linux (All) Status: NEW Severity: normal Priority: medium Component: DRM/other Assignee: dri-devel@lists.freedesktop.org Reporter: taijian@posteo.de Over on Bug 104064 Alex Deucher and Harry Wentland had heroically assisted = me in finally fixing dGPU auto-suspend on my HG laptop (Intel iGPU + AMD dGPU)= . I was really looking forward to their work going mainline in 4.16 and me being able to enjoy my newly working system. Unfortunately, some other commit into 4.16 broke things again. After overcoming my initial frustration and doing = some research, I was now able to track this down to the work by Lukas Wunner on vga_switcheroo. I am doing my debugging with drm-next-4.18-wip over at https://cgit.freedesktop.org/~agd5f/linux because 4.16 & 4.17 have one other bug that 4.18 doesn't (Bug 105760) that prevent me from using those. Simply compiling drm-next-4.18-wip will result in a kernel that cannot dynamically power down the dGPU. It remains up regardless of use status and draws power. Now if I revert commits 07f4f97d7b4bf325d9f558c5b58230387e4e57e0, b67ae78efae0d5be5d9c7a507e67cd02971b32e1 and 2b4f44eec2be2688511c2b617d0e1b4f94c45ba4 and recompile, then the resulting kernel will once again fully power down my dGPU when it is not in use.=20 Now, if I can assist in any way with further debugging or testing patches to figure out what specifically went wrong with those patches, I'd be happy to= do so, just let me know! --=20 You are receiving this mail because: You are the assignee for the bug.= --15269349770.f06B.16824 Date: Mon, 21 May 2018 20:36:17 +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 106597
Summary [vga_switcheroo] commit 07f4f97d7b4bf325d9f558c5b58230387e4e5= 7e0 breaks dpm on Alienware 15R3
Product DRI
Version DRI git
Hardware x86-64 (AMD64)
OS Linux (All)
Status NEW
Severity normal
Priority medium
Component DRM/other
Assignee dri-devel@lists.freedesktop.org
Reporter taijian@posteo.de

Over on Bug 104064 Alex Deucher and Harry =
Wentland had heroically assisted me
in finally fixing dGPU auto-suspend on my HG laptop (Intel iGPU + AMD dGPU)=
. I
was really looking forward to their work going mainline in 4.16 and me being
able to enjoy my newly working system. Unfortunately, some other commit into
4.16 broke things again. After overcoming my initial frustration and doing =
some
research, I was now able to track this down to the work by Lukas Wunner on
vga_switcheroo.

I am doing my debugging with drm-next-4.18-wip over at
https://cgit.freedesk=
top.org/~agd5f/linux because 4.16 & 4.17 have one other
bug that 4.18 doesn't (Bug 105760) that prevent me from u=
sing those. Simply
compiling drm-next-4.18-wip will result in a kernel that cannot dynamically
power down the dGPU. It remains up regardless of use status and draws power.

Now if I revert commits 07f4f97d7b4bf325d9f558c5b58230387e4e57e0,
b67ae78efae0d5be5d9c7a507e67cd02971b32e1 and
2b4f44eec2be2688511c2b617d0e1b4f94c45ba4 and recompile, then the resulting
kernel will once again fully power down my dGPU when it is not in use.=20

Now, if I can assist in any way with further debugging or testing patches to
figure out what specifically went wrong with those patches, I'd be happy to=
 do
so, just let me know!


You are receiving this mail because:
  • You are the assignee for the bug.
= --15269349770.f06B.16824-- --===============0702976794== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVsCg== --===============0702976794==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 106597] [vga_switcheroo] commit 07f4f97d7b4bf325d9f558c5b58230387e4e57e0 breaks dpm on Alienware 15R3 Date: Mon, 21 May 2018 20:59:55 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0211119111==" 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 E7B4889FFD for ; Mon, 21 May 2018 20:59:55 +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 --===============0211119111== Content-Type: multipart/alternative; boundary="15269363952.BCad4CB5B.30628" Content-Transfer-Encoding: 7bit --15269363952.BCad4CB5B.30628 Date: Mon, 21 May 2018 20:59: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=3D106597 --- Comment #1 from Alex Deucher --- Does reverting the ATPX quirk from bug 105760 also fix the issue? I wonder= if Lukas' patch fixed the underlying issue and the ATPX workaround is no longer necessary. --=20 You are receiving this mail because: You are the assignee for the bug.= --15269363952.BCad4CB5B.30628 Date: Mon, 21 May 2018 20:59: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

Commen= t # 1 on bug 10659= 7 from Alex Deucher
Does reverting the ATPX quirk from bug 105760 also fix the issue?  I =
wonder if
Lukas' patch fixed the underlying issue and the ATPX workaround is no longer
necessary.


You are receiving this mail because:
  • You are the assignee for the bug.
= --15269363952.BCad4CB5B.30628-- --===============0211119111== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVsCg== --===============0211119111==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 106597] [vga_switcheroo] commit 07f4f97d7b4bf325d9f558c5b58230387e4e57e0 breaks dpm on Alienware 15R3 Date: Mon, 21 May 2018 21:17:25 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0836062600==" 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 4C2116E017 for ; Mon, 21 May 2018 21:17: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 --===============0836062600== Content-Type: multipart/alternative; boundary="15269374450.e970f.4970" Content-Transfer-Encoding: 7bit --15269374450.e970f.4970 Date: Mon, 21 May 2018 21:17: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=3D106597 --- Comment #2 from taijian@posteo.de --- Yeah, I tried that, but unfortunately that did not work. --=20 You are receiving this mail because: You are the assignee for the bug.= --15269374450.e970f.4970 Date: Mon, 21 May 2018 21:17: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 # 2 on bug 10659= 7 from taijian@posteo.d= e
Yeah, I tried that, but unfortunately that did not work.


You are receiving this mail because:
  • You are the assignee for the bug.
= --15269374450.e970f.4970-- --===============0836062600== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVsCg== --===============0836062600==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 106597] [vga_switcheroo] commit 07f4f97d7b4bf325d9f558c5b58230387e4e57e0 breaks dpm on Alienware 15R3 Date: Mon, 21 May 2018 21:26:42 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0933002390==" 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 E4BA16E01A for ; Mon, 21 May 2018 21:26: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 --===============0933002390== Content-Type: multipart/alternative; boundary="15269380011.cdA8A706.10951" Content-Transfer-Encoding: 7bit --15269380011.cdA8A706.10951 Date: Mon, 21 May 2018 21:26: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=3D106597 --- Comment #3 from Lukas Wunner --- Pretty sure there's an issue with the HDA controller on the GPU that preven= ts the GPU from suspending. Can you attach dmesg output of a drm-next-4.18-wip kernel? There's dmesg output in the bug you've linked but I'm not sure if that's with or without my patches? --=20 You are receiving this mail because: You are the assignee for the bug.= --15269380011.cdA8A706.10951 Date: Mon, 21 May 2018 21:26: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 # 3 on bug 10659= 7 from Lukas Wunner
Pretty sure there's an issue with the HDA controller on the GP=
U that prevents
the GPU from suspending. Can you attach dmesg output of a drm-next-4.18-wip
kernel? There's dmesg output in the bug you've linked but I'm not sure if
that's with or without my patches?


You are receiving this mail because:
  • You are the assignee for the bug.
= --15269380011.cdA8A706.10951-- --===============0933002390== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVsCg== --===============0933002390==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 106597] [vga_switcheroo] commit 07f4f97d7b4bf325d9f558c5b58230387e4e57e0 breaks dpm on Alienware 15R3 Date: Mon, 21 May 2018 21:34:17 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0111550034==" 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 BD04A6E026 for ; Mon, 21 May 2018 21:34:16 +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 --===============0111550034== Content-Type: multipart/alternative; boundary="15269384560.2CAfD426b.12561" Content-Transfer-Encoding: 7bit --15269384560.2CAfD426b.12561 Date: Mon, 21 May 2018 21:34:16 +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=3D106597 --- Comment #4 from Lukas Wunner --- What does the following show? cat /sys/bus/pci/devices/0000:01:00.0/power/runtime_status # GPU cat /sys/bus/pci/devices/0000:01:00.0/power/runtime_usage # GPU cat /sys/bus/pci/devices/0000:01:00.0/power/runtime_active_kids # GPU cat /sys/bus/pci/devices/0000:01:00.1/power/runtime_status # HDA cat /sys/bus/pci/devices/0000:01:00.1/power/runtime_usage # HDA cat /sys/bus/pci/devices/0000:01:00.1/power/runtime_active_kids # HDA --=20 You are receiving this mail because: You are the assignee for the bug.= --15269384560.2CAfD426b.12561 Date: Mon, 21 May 2018 21:34:16 +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 10659= 7 from Lukas Wunner
What does the following show?

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


You are receiving this mail because:
  • You are the assignee for the bug.
= --15269384560.2CAfD426b.12561-- --===============0111550034== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVsCg== --===============0111550034==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 106597] [vga_switcheroo] commit 07f4f97d7b4bf325d9f558c5b58230387e4e57e0 breaks dpm on Alienware 15R3 Date: Mon, 21 May 2018 21:47:32 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0702762822==" 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 8D2CB6E019 for ; Mon, 21 May 2018 21:47:32 +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 --===============0702762822== Content-Type: multipart/alternative; boundary="15269392520.DE13C0.19014" Content-Transfer-Encoding: 7bit --15269392520.DE13C0.19014 Date: Mon, 21 May 2018 21:47:32 +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=3D106597 --- Comment #5 from Lukas Wunner --- Ok I found this dmesg ouput of a 4.17 kernel... https://bugs.freedesktop.org/attachment.cgi?id=3D139668 However the HDA device 0000:01:00.1 is not enumerated! It *is* enumerated in the 4.16 dmesg output you've attached. What gives? We know there are Nvidia GPUs which hide the HDA controller if no external display is attached: https://bugs.freedesktop.org/show_bug.cgi?id=3D75985 Maybe something like that is going on here despite this being an AMD GPU? Also, there are Dell machines which can be switched to one of two modes in = the BIOS: In one mode, audio is streamed to external displays via the Intel HDA= , in the other mode, it's streamed via the AMD HDA. In the former mode, the AMD = HDA serves no purpose and should thus be hidden as per this patch: https://lkml.org/lkml/2018/4/20/244 It's possible that something similar is needed here. --=20 You are receiving this mail because: You are the assignee for the bug.= --15269392520.DE13C0.19014 Date: Mon, 21 May 2018 21:47:32 +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 10659= 7 from Lukas Wunner
Ok I found this dmesg ouput of a 4.17 kernel...
https:/=
/bugs.freedesktop.org/attachment.cgi?id=3D139668

However the HDA device 0000:01:00.1 is not enumerated! It *is* enumerated in
the 4.16 dmesg output you've attached. What gives?

We know there are Nvidia GPUs which hide the HDA controller if no external
display is attached:
https://bugs.freedesktop.org/show_bug.c=
gi?id=3D75985

Maybe something like that is going on here despite this being an AMD GPU?

Also, there are Dell machines which can be switched to one of two modes in =
the
BIOS: In one mode, audio is streamed to external displays via the Intel HDA=
, in
the other mode, it's streamed via the AMD HDA. In the former mode, the AMD =
HDA
serves no purpose and should thus be hidden as per this patch:
https://lkml.org/lkml/2018/=
4/20/244

It's possible that something similar is needed here.


You are receiving this mail because:
  • You are the assignee for the bug.
= --15269392520.DE13C0.19014-- --===============0702762822== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVsCg== --===============0702762822==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 106597] [vga_switcheroo] commit 07f4f97d7b4bf325d9f558c5b58230387e4e57e0 breaks dpm on Alienware 15R3 Date: Mon, 21 May 2018 22:03:46 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1449362300==" 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 7F5BA6E029 for ; Mon, 21 May 2018 22:03:46 +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 --===============1449362300== Content-Type: multipart/alternative; boundary="15269402261.ADC3B36A.25941" Content-Transfer-Encoding: 7bit --15269402261.ADC3B36A.25941 Date: Mon, 21 May 2018 22:03:46 +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=3D106597 --- Comment #6 from Lukas Wunner --- Ah, never mind, the 4.17 output was attached by Thomas Martitz. So without = 4.17 dmesg output of your machine it's pretty hard to tell what's going on. --=20 You are receiving this mail because: You are the assignee for the bug.= --15269402261.ADC3B36A.25941 Date: Mon, 21 May 2018 22:03:46 +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 10659= 7 from Lukas Wunner
Ah, never mind, the 4.17 output was attached by Thomas Martitz=
. So without 4.17
dmesg output of your machine it's pretty hard to tell what's going on.


You are receiving this mail because:
  • You are the assignee for the bug.
= --15269402261.ADC3B36A.25941-- --===============1449362300== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVsCg== --===============1449362300==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 106597] [vga_switcheroo] commit 07f4f97d7b4bf325d9f558c5b58230387e4e57e0 breaks dpm on Alienware 15R3 Date: Mon, 21 May 2018 22:43:00 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1378970404==" Return-path: Received: from culpepper.freedesktop.org (culpepper.freedesktop.org [131.252.210.165]) by gabe.freedesktop.org (Postfix) with ESMTP id 95F636E034 for ; Mon, 21 May 2018 22:43:00 +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 --===============1378970404== Content-Type: multipart/alternative; boundary="15269425800.dc9F6c2.13215" Content-Transfer-Encoding: 7bit --15269425800.dc9F6c2.13215 Date: Mon, 21 May 2018 22:43:00 +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=3D106597 --- Comment #7 from Alex Deucher --- see also: https://bugzilla.kernel.org/show_bug.cgi?id=3D199693 --=20 You are receiving this mail because: You are the assignee for the bug.= --15269425800.dc9F6c2.13215 Date: Mon, 21 May 2018 22:43:00 +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.
= --15269425800.dc9F6c2.13215-- --===============1378970404== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVsCg== --===============1378970404==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 106597] [vga_switcheroo] commit 07f4f97d7b4bf325d9f558c5b58230387e4e57e0 breaks dpm on Alienware 15R3 Date: Tue, 22 May 2018 08:16:58 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1372031429==" Return-path: Received: from culpepper.freedesktop.org (culpepper.freedesktop.org [131.252.210.165]) by gabe.freedesktop.org (Postfix) with ESMTP id 314BE6E254 for ; Tue, 22 May 2018 08:16:58 +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 --===============1372031429== Content-Type: multipart/alternative; boundary="15269770180.ceCBd797.2226" Content-Transfer-Encoding: 7bit --15269770180.ceCBd797.2226 Date: Tue, 22 May 2018 08:16:58 +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=3D106597 --- Comment #8 from taijian@posteo.de --- Created attachment 139673 --> https://bugs.freedesktop.org/attachment.cgi?id=3D139673&action=3Dedit dmesg with 4.18-wip 'vanilla-as-is' OK, here come three dmesg outputs - first one is 'vanilla' drm-next-4.18-wi= p, the second one is with the atpx quirk reversed, the third one is with the t= hree vga_switcheroo patches I mentioned in the original bug report reversed. That third one is also the only one where my dGPU properly powers down. --=20 You are receiving this mail because: You are the assignee for the bug.= --15269770180.ceCBd797.2226 Date: Tue, 22 May 2018 08:16:58 +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 10659= 7 from taijian@posteo.d= e
Created atta=
chment 139673 [details]
dmesg with 4.18-wip 'vanilla-as-is'

OK, here come three dmesg outputs - first one is 'vanilla' drm-next-4.18-wi=
p,
the second one is with the atpx quirk reversed, the third one is with the t=
hree
vga_switcheroo patches I mentioned in the original bug report reversed. That
third one is also the only one where my dGPU properly powers down.


You are receiving this mail because:
  • You are the assignee for the bug.
= --15269770180.ceCBd797.2226-- --===============1372031429== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVsCg== --===============1372031429==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 106597] [vga_switcheroo] commit 07f4f97d7b4bf325d9f558c5b58230387e4e57e0 breaks dpm on Alienware 15R3 Date: Tue, 22 May 2018 08:18:18 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0471678477==" Return-path: Received: from culpepper.freedesktop.org (culpepper.freedesktop.org [131.252.210.165]) by gabe.freedesktop.org (Postfix) with ESMTP id D31176E258 for ; Tue, 22 May 2018 08:18:18 +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 --===============0471678477== Content-Type: multipart/alternative; boundary="15269770981.79Ca62.2705" Content-Transfer-Encoding: 7bit --15269770981.79Ca62.2705 Date: Tue, 22 May 2018 08:18:18 +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=3D106597 --- Comment #9 from taijian@posteo.de --- Created attachment 139674 --> https://bugs.freedesktop.org/attachment.cgi?id=3D139674&action=3Dedit dmesg with 4.18-wip 'atpx-quirk reversed' Here the second dmesg - forced atpx method quirk reversed. --=20 You are receiving this mail because: You are the assignee for the bug.= --15269770981.79Ca62.2705 Date: Tue, 22 May 2018 08:18:18 +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 # 9 on bug 10659= 7 from taijian@posteo.d= e
Created [details]
dmesg with 4.18-wip 'atpx-quirk reversed'

Here the second dmesg - forced atpx method quirk reversed.


You are receiving this mail because:
  • You are the assignee for the bug.
= --15269770981.79Ca62.2705-- --===============0471678477== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVsCg== --===============0471678477==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 106597] [vga_switcheroo] commit 07f4f97d7b4bf325d9f558c5b58230387e4e57e0 breaks dpm on Alienware 15R3 Date: Tue, 22 May 2018 08:19:24 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0162100343==" 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 532BD6E259 for ; Tue, 22 May 2018 08:19:24 +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 --===============0162100343== Content-Type: multipart/alternative; boundary="15269771640.cAF3c.3418" Content-Transfer-Encoding: 7bit --15269771640.cAF3c.3418 Date: Tue, 22 May 2018 08:19:24 +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=3D106597 --- Comment #10 from taijian@posteo.de --- Created attachment 139675 --> https://bugs.freedesktop.org/attachment.cgi?id=3D139675&action=3Dedit dmesg with 4.18-wip 'vga_switcheroo-patches reversed' Here the third dmesg output - this one with the vga_switcheroo patches reve= rsed and working power management. --=20 You are receiving this mail because: You are the assignee for the bug.= --15269771640.cAF3c.3418 Date: Tue, 22 May 2018 08:19:24 +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 10659= 7 from taijian@posteo.d= e
Created attachment 139675 [details]
dmesg with 4.18-wip 'vga_switcheroo-patches reversed'

Here the third dmesg output - this one with the vga_switcheroo patches reve=
rsed
and working power management.


You are receiving this mail because:
  • You are the assignee for the bug.
= --15269771640.cAF3c.3418-- --===============0162100343== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVsCg== --===============0162100343==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 106597] [vga_switcheroo] commit 07f4f97d7b4bf325d9f558c5b58230387e4e57e0 breaks dpm on Alienware 15R3 Date: Tue, 22 May 2018 08:22:19 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1663906264==" 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 1535A6E25F for ; Tue, 22 May 2018 08:22:19 +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 --===============1663906264== Content-Type: multipart/alternative; boundary="15269773390.DCeFDe.3560" Content-Transfer-Encoding: 7bit --15269773390.DCeFDe.3560 Date: Tue, 22 May 2018 08:22:19 +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=3D106597 --- Comment #11 from taijian@posteo.de --- $ cat /sys/bus/pci/devices/0000:01:00.0/power/runtime_status active $ cat /sys/bus/pci/devices/0000:01:00.0/power/runtime_usage 1 $ cat /sys/bus/pci/devices/0000:01:00.0/power/runtime_active_kids=20 0 $ cat /sys/bus/pci/devices/0000:01:00.1/power/runtime_status active $ cat /sys/bus/pci/devices/0000:01:00.1/power/runtime_usage 0 $ cat /sys/bus/pci/devices/0000:01:00.1/power/runtime_active_kids 0 All of these are with the 'vanilla' kernel. --=20 You are receiving this mail because: You are the assignee for the bug.= --15269773390.DCeFDe.3560 Date: Tue, 22 May 2018 08:22:19 +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 # 11 on bug 10659= 7 from taijian@posteo.d= e
$ cat /sys/bus/pci/devices/0000:01:00.0/power/runtime_status
active
$ cat /sys/bus/pci/devices/0000:01:00.0/power/runtime_usage
1
$ cat /sys/bus/pci/devices/0000:01:00.0/power/runtime_active_kids=20
0
$ cat /sys/bus/pci/devices/0000:01:00.1/power/runtime_status
active
$ cat /sys/bus/pci/devices/0000:01:00.1/power/runtime_usage
0
$ cat /sys/bus/pci/devices/0000:01:00.1/power/runtime_active_kids
0


All of these are with the 'vanilla' kernel.


You are receiving this mail because:
  • You are the assignee for the bug.
= --15269773390.DCeFDe.3560-- --===============1663906264== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVsCg== --===============1663906264==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 106597] [vga_switcheroo] commit 07f4f97d7b4bf325d9f558c5b58230387e4e57e0 breaks dpm on Alienware 15R3 Date: Tue, 22 May 2018 09:03:29 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1999450194==" Return-path: Received: from culpepper.freedesktop.org (culpepper.freedesktop.org [131.252.210.165]) by gabe.freedesktop.org (Postfix) with ESMTP id 982EA6E119 for ; Tue, 22 May 2018 09:03:29 +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 --===============1999450194== Content-Type: multipart/alternative; boundary="15269798091.B36D.20479" Content-Transfer-Encoding: 7bit --15269798091.B36D.20479 Date: Tue, 22 May 2018 09:03:29 +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=3D106597 --- Comment #12 from Lukas Wunner --- Hm, the first 4.17 output does not show anything suspicious. Could you also post the output of: cat /sys/bus/pci/devices/0000:01:00.0/power/control cat /sys/bus/pci/devices/0000:01:00.1/power/control --=20 You are receiving this mail because: You are the assignee for the bug.= --15269798091.B36D.20479 Date: Tue, 22 May 2018 09:03:29 +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 # 12 on bug 10659= 7 from Lukas Wunner
Hm, the first 4.17 output does not show anything suspicious. C=
ould you also
post the output of:

cat /sys/bus/pci/devices/0000:01:00.0/power/control
cat /sys/bus/pci/devices/0000:01:00.1/power/control


You are receiving this mail because:
  • You are the assignee for the bug.
= --15269798091.B36D.20479-- --===============1999450194== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVsCg== --===============1999450194==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 106597] [vga_switcheroo] commit 07f4f97d7b4bf325d9f558c5b58230387e4e57e0 breaks dpm on Alienware 15R3 Date: Tue, 22 May 2018 20:40:02 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1524507207==" Return-path: Received: from culpepper.freedesktop.org (culpepper.freedesktop.org [131.252.210.165]) by gabe.freedesktop.org (Postfix) with ESMTP id C83D489CDB for ; Tue, 22 May 2018 20:40:02 +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 --===============1524507207== Content-Type: multipart/alternative; boundary="15270216021.D8Ea5d36.10395" Content-Transfer-Encoding: 7bit --15270216021.D8Ea5d36.10395 Date: Tue, 22 May 2018 20:40:02 +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=3D106597 --- Comment #13 from taijian@posteo.de --- $ cat /sys/bus/pci/devices/0000:01:00.0/power/control auto $ cat /sys/bus/pci/devices/0000:01:00.1/power/control auto again, this is with the 'vanilla' kernel. --=20 You are receiving this mail because: You are the assignee for the bug.= --15270216021.D8Ea5d36.10395 Date: Tue, 22 May 2018 20:40:02 +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 # 13 on bug 10659= 7 from taijian@posteo.d= e
$ cat /sys/bus/pci/devices/0000:01:00.0/power/control
auto
$ cat /sys/bus/pci/devices/0000:01:00.1/power/control
auto


again, this is with the 'vanilla' kernel.


You are receiving this mail because:
  • You are the assignee for the bug.
= --15270216021.D8Ea5d36.10395-- --===============1524507207== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVsCg== --===============1524507207==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 106597] [vga_switcheroo] commit 07f4f97d7b4bf325d9f558c5b58230387e4e57e0 breaks dpm on Alienware 15R3 Date: Tue, 22 May 2018 21:18:51 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1885429560==" 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 964D789C1F for ; Tue, 22 May 2018 21:18:51 +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 --===============1885429560== Content-Type: multipart/alternative; boundary="15270239311.ca47c.24156" Content-Transfer-Encoding: 7bit --15270239311.ca47c.24156 Date: Tue, 22 May 2018 21:18:51 +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=3D106597 --- Comment #14 from taijian@posteo.de --- (In reply to Lukas Wunner from comment #5) > Also, there are Dell machines which can be switched to one of two modes in > the BIOS: In one mode, audio is streamed to external displays via the Int= el > HDA, in the other mode, it's streamed via the AMD HDA. In the former mode, > the AMD HDA serves no purpose and should thus be hidden as per this patch: > https://lkml.org/lkml/2018/4/20/244 > Well, this is a Dell machine, but there is no BIOS option to switch anything regarding video/audio. However, it is possible that there is something wonky about how the chip is wired, because all other Alienware laptops do sport NVIDIA gpus and it could be that the wiring is the same. --=20 You are receiving this mail because: You are the assignee for the bug.= --15270239311.ca47c.24156 Date: Tue, 22 May 2018 21:18:51 +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 # 14 on bug 10659= 7 from taijian@posteo.d= e
(In reply to Lukas Wunner from comment #5)

> Also, there are Dell machines which can be switc=
hed to one of two modes in
> the BIOS: In one mode, audio is streamed to external displays via the =
Intel
> HDA, in the other mode, it's streamed via the AMD HDA. In the former m=
ode,
> the AMD HDA serves no purpose and should thus be hidden as per this pa=
tch:
> https://lkml.org/lkml/=
2018/4/20/244
>

Well, this is a Dell machine, but there is no BIOS option to switch anything
regarding video/audio. However, it is possible that there is something wonky
about how the chip is wired, because all other Alienware laptops do sport
NVIDIA gpus and it could be that the wiring is the same.


You are receiving this mail because:
  • You are the assignee for the bug.
= --15270239311.ca47c.24156-- --===============1885429560== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVsCg== --===============1885429560==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 106597] [vga_switcheroo] commit 07f4f97d7b4bf325d9f558c5b58230387e4e57e0 breaks dpm on Alienware 15R3 Date: Tue, 22 May 2018 21:49:48 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0860643748==" Return-path: Received: from culpepper.freedesktop.org (culpepper.freedesktop.org [131.252.210.165]) by gabe.freedesktop.org (Postfix) with ESMTP id 9E66589CD7 for ; Tue, 22 May 2018 21:49: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 --===============0860643748== Content-Type: multipart/alternative; boundary="15270257880.E74aD6.6734" Content-Transfer-Encoding: 7bit --15270257880.E74aD6.6734 Date: Tue, 22 May 2018 21:49: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=3D106597 --- Comment #15 from taijian@posteo.de --- (In reply to Alex Deucher from comment #7) > see also: https://bugzilla.kernel.org/show_bug.cgi?id=3D199693 I tried that patch, but am not seeing any difference. --=20 You are receiving this mail because: You are the assignee for the bug.= --15270257880.E74aD6.6734 Date: Tue, 22 May 2018 21:49: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

Comme= nt # 15 on bug 10659= 7 from taijian@posteo.d= e
(In reply to Alex Deucher from comment #7)
> see also: https://bugzilla.kernel.org/show_bug.cgi?id=3D19=
9693

I tried that patch, but am not seeing any difference.


You are receiving this mail because:
  • You are the assignee for the bug.
= --15270257880.E74aD6.6734-- --===============0860643748== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVsCg== --===============0860643748==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 106597] [vga_switcheroo] commit 07f4f97d7b4bf325d9f558c5b58230387e4e57e0 breaks dpm on Alienware 15R3 Date: Wed, 23 May 2018 06:54:51 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1721169336==" 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 91D346E3C3 for ; Wed, 23 May 2018 06:54:51 +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 --===============1721169336== Content-Type: multipart/alternative; boundary="15270584911.0AB82c.24291" Content-Transfer-Encoding: 7bit --15270584911.0AB82c.24291 Date: Wed, 23 May 2018 06:54:51 +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=3D106597 --- Comment #16 from Lukas Wunner --- Created attachment 139688 --> https://bugs.freedesktop.org/attachment.cgi?id=3D139688&action=3Dedit drm-next-4.18-wip debug patch 1 So, the HDA device's usage counter is 0, it has no active children and runt= ime PM is allowed. Still, it's runtime active. Why is it not suspending? Here's= a little patch which litters relevant code with debug printks, hopefully this will get us closer to the answer. Could you apply this on top of drm-next-4.18-wip and attach the resulting dmesg output? Oh and could you also try: cat /sys/bus/pci/devices/0000:01:00.1/power/runtime_status ... to double check that runtime PM is enabled? Thanks! --=20 You are receiving this mail because: You are the assignee for the bug.= --15270584911.0AB82c.24291 Date: Wed, 23 May 2018 06:54:51 +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.
= --15270584911.0AB82c.24291-- --===============1721169336== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVsCg== --===============1721169336==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 106597] [vga_switcheroo] commit 07f4f97d7b4bf325d9f558c5b58230387e4e57e0 breaks dpm on Alienware 15R3 Date: Wed, 23 May 2018 09:59:24 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1370089648==" 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 173BC6E433 for ; Wed, 23 May 2018 09:59:24 +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 --===============1370089648== Content-Type: multipart/alternative; boundary="15270695640.98dd.4266" Content-Transfer-Encoding: 7bit --15270695640.98dd.4266 Date: Wed, 23 May 2018 09:59:23 +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=3D106597 --- Comment #17 from taijian@posteo.de --- Created attachment 139692 --> https://bugs.freedesktop.org/attachment.cgi?id=3D139692&action=3Dedit dmesg with the debug symbols requested by Lukas This is the 'vanilla' kernel with the extra patch for the debug symbols add= ed in. Also, as requested: $ cat /sys/bus/pci/devices/0000:01:00.1/power/runtime_status active --=20 You are receiving this mail because: You are the assignee for the bug.= --15270695640.98dd.4266 Date: Wed, 23 May 2018 09:59:24 +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 # 17 on bug 10659= 7 from taijian@posteo.d= e
Created attachment 139692 [deta=
ils]
dmesg with the debug symbols requested by Lukas

This is the 'vanilla' kernel with the extra patch for the debug symbols add=
ed
in.

Also, as requested:

$ cat /sys/bus/pci/devices/0000:01:00.1/power/runtime_status
active


You are receiving this mail because:
  • You are the assignee for the bug.
= --15270695640.98dd.4266-- --===============1370089648== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVsCg== --===============1370089648==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 106597] [vga_switcheroo] commit 07f4f97d7b4bf325d9f558c5b58230387e4e57e0 breaks dpm on Alienware 15R3 Date: Wed, 23 May 2018 10:21:47 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1049046382==" Return-path: Received: from culpepper.freedesktop.org (culpepper.freedesktop.org [131.252.210.165]) by gabe.freedesktop.org (Postfix) with ESMTP id 369926E44A for ; Wed, 23 May 2018 10:21:47 +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 --===============1049046382== Content-Type: multipart/alternative; boundary="15270709071.02F595e5.15087" Content-Transfer-Encoding: 7bit --15270709071.02F595e5.15087 Date: Wed, 23 May 2018 10:21:47 +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=3D106597 --- Comment #18 from taijian@posteo.de --- (In reply to Lukas Wunner from comment #16) > Created attachment 139688 [details] [review] > drm-next-4.18-wip debug patch 1 >=20 > So, the HDA device's usage counter is 0, it has no active children and > runtime PM is allowed. Still, it's runtime active. Why is it not suspendi= ng? Well, AFAIK the both the HDMI port and the DP on my laptop are directly attached to the dGPU and not to the iGPU like the internal panel is. Maybe = it has something to do with that? --=20 You are receiving this mail because: You are the assignee for the bug.= --15270709071.02F595e5.15087 Date: Wed, 23 May 2018 10:21:47 +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 # 18 on bug 10659= 7 from taijian@posteo.d= e
(In reply to Lukas Wunner from comment #16)
> Created attachment 139688 [details] [review] [review]
> drm-next-4.18-wip debug patch 1
>=20
> So, the HDA device's usage counter is 0, it has no active children and
> runtime PM is allowed. Still, it's runtime active. Why is it not suspe=
nding?

Well, AFAIK the both the HDMI port and the DP on my laptop are directly
attached to the dGPU and not to the iGPU like the internal panel is. Maybe =
it
has something to do with that?


You are receiving this mail because:
  • You are the assignee for the bug.
= --15270709071.02F595e5.15087-- --===============1049046382== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVsCg== --===============1049046382==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 106597] [vga_switcheroo] commit 07f4f97d7b4bf325d9f558c5b58230387e4e57e0 breaks dpm on Alienware 15R3 Date: Wed, 23 May 2018 12:19:57 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0760289604==" Return-path: Received: from culpepper.freedesktop.org (culpepper.freedesktop.org [131.252.210.165]) by gabe.freedesktop.org (Postfix) with ESMTP id 58FD76E47C for ; Wed, 23 May 2018 12:19:57 +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 --===============0760289604== Content-Type: multipart/alternative; boundary="15270779971.ccE3dCAc.1359" Content-Transfer-Encoding: 7bit --15270779971.ccE3dCAc.1359 Date: Wed, 23 May 2018 12:19:57 +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=3D106597 --- Comment #19 from Lukas Wunner --- Created attachment 139706 --> https://bugs.freedesktop.org/attachment.cgi?id=3D139706&action=3Dedit drm-next-4.18-wip debug patch 2 Okay at 10.574564, the HDA controller tries to runtime suspend but returns -EBUSY (-16) because the child HDA codec hdaudioC1D0 is still probing. After the child is done with probing at 10.586551, it informs the HDA controller = that it may now be idle. However for some reason rpm_idle() doesn't cause the controller to be suspended. Here's another debug patch which also litters the ->runtime_idle() path with debug printks. Please try this and attach the resulting dmesg. > Well, AFAIK the both the HDMI port and the DP on my laptop are directly a= ttached > to the dGPU and not to the iGPU like the internal panel is. Maybe it has > something to do with that? You've got two HDMI codecs in your machine, hdaudioC1D0 on the AMD GPU and hdaudioC0D2 in the Intel PCH. It's unclear to me which one is used for exte= rnal displays. > Also, as requested: > $ cat /sys/bus/pci/devices/0000:01:00.1/power/runtime_status > active My apologies, I meant runtime_enabled, however it does seem to be enabled, otherwise the idle/suspend machinery wouldn't work. Thanks! --=20 You are receiving this mail because: You are the assignee for the bug.= --15270779971.ccE3dCAc.1359 Date: Wed, 23 May 2018 12:19:57 +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 # 19 on bug 10659= 7 from Lukas Wunner
Created attachme=
nt 139706 [details] [review]
drm-next-4.18-wip debug patch 2

Okay at 10.574564, the HDA controller tries to runtime suspend but returns
-EBUSY (-16) because the child HDA codec hdaudioC1D0 is still probing. After
the child is done with probing at 10.586551, it informs the HDA controller =
that
it may now be idle. However for some reason rpm_idle() doesn't cause the
controller to be suspended.

Here's another debug patch which also litters the ->runtime_idle() path =
with
debug printks. Please try this and attach the resulting dmesg.


> Well, AFAIK the both the HDMI port and the DP on=
 my laptop are directly attached
> to the dGPU and not to the iGPU like the internal panel is. Maybe it h=
as
> something to do with that?

You've got two HDMI codecs in your machine, hdaudioC1D0 on the AMD GPU and
hdaudioC0D2 in the Intel PCH. It's unclear to me which one is used for exte=
rnal
displays.


> Also, as requested:
> $ cat /sys/bus/pci/devices/0000:01:00.1/power/runtime_status
> active

My apologies, I meant runtime_enabled, however it does seem to be enabled,
otherwise the idle/suspend machinery wouldn't work. Thanks!


You are receiving this mail because:
  • You are the assignee for the bug.
= --15270779971.ccE3dCAc.1359-- --===============0760289604== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVsCg== --===============0760289604==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 106597] [vga_switcheroo] commit 07f4f97d7b4bf325d9f558c5b58230387e4e57e0 breaks dpm on Alienware 15R3 Date: Wed, 23 May 2018 23:12:58 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0470450393==" Return-path: Received: from culpepper.freedesktop.org (culpepper.freedesktop.org [131.252.210.165]) by gabe.freedesktop.org (Postfix) with ESMTP id A10D56E5A8 for ; Wed, 23 May 2018 23:12:58 +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 --===============0470450393== Content-Type: multipart/alternative; boundary="15271171781.2eEfB.17061" Content-Transfer-Encoding: 7bit --15271171781.2eEfB.17061 Date: Wed, 23 May 2018 23:12:58 +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=3D106597 taijian@posteo.de changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #139692|0 |1 is obsolete| | --- Comment #20 from taijian@posteo.de --- Created attachment 139723 --> https://bugs.freedesktop.org/attachment.cgi?id=3D139723&action=3Dedit dmesg with the debug symbols requested by Lukas, version 2 Here you go with another round of dmesg output. Also: $ cat /sys/bus/pci/devices/0000:01:00.1/power/runtime_enabled enabled I am fairly certain that the external ports on my machine are wired to the dPGU, however, neither of them are in use. --=20 You are receiving this mail because: You are the assignee for the bug.= --15271171781.2eEfB.17061 Date: Wed, 23 May 2018 23:12:58 +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
taijian@posteo.de changed bug 10659= 7
What Removed Added
Attachment #139692 is obsolete   1

Comme= nt # 20 on bug 10659= 7 from taijian@posteo.d= e
Created attachment 139723 [details]
dmesg with the debug symbols requested by Lukas, version 2

Here you go with another round of dmesg output. Also:

$ cat /sys/bus/pci/devices/0000:01:00.1/power/runtime_enabled
enabled


I am fairly certain that the external ports on my machine are wired to the
dPGU, however, neither of them are in use.


You are receiving this mail because:
  • You are the assignee for the bug.
= --15271171781.2eEfB.17061-- --===============0470450393== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVsCg== --===============0470450393==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 106597] [vga_switcheroo] commit 07f4f97d7b4bf325d9f558c5b58230387e4e57e0 breaks dpm on Alienware 15R3 Date: Thu, 24 May 2018 08:56:44 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0737411594==" Return-path: Received: from culpepper.freedesktop.org (culpepper.freedesktop.org [131.252.210.165]) by gabe.freedesktop.org (Postfix) with ESMTP id A27366E368 for ; Thu, 24 May 2018 08:56:44 +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 --===============0737411594== Content-Type: multipart/alternative; boundary="15271522041.c66Ee.23839" Content-Transfer-Encoding: 7bit --15271522041.c66Ee.23839 Date: Thu, 24 May 2018 08:56:44 +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=3D106597 --- Comment #21 from Lukas Wunner --- Okay so the reason the HDA controller doesn't suspend is because the codec_powered bitmask is not null: snd_hda_intel 0000:01: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 lowest bit is set. In other words, the single codec on that HDA bus is considered powered on, so the HDA controller is prevented from suspending. Bits in the codec_powered bitmask are set or cleared using snd_hdac_codec_link_up() and snd_hdac_codec_link_down(), which are only cal= led during runtime suspend and resume of the codec. Looking at hda_codec_runtime_suspend(), we can see that the bit is only cle= ared conditionally: https://elixir.bootlin.com/linux/latest/source/sound/pci/hda/hda_codec.c#L2= 906 if (codec_has_clkstop(codec) && codec_has_epss(codec) && (state & AC_PWRST_CLK_STOP_OK)) snd_hdac_codec_link_down(&codec->core); The codec_has_clkstop() and codec_has_epss() macros just query bits in the power_caps bitmask. That bitmask can also be retrieved from sysfs, could you please post the output of: grep . /sys/bus/hdaudio/devices/hdaudioC1D0/widgets/*/power_caps I'll prepare another debug patch so that we get a better understanding why = the codec isn't powered down. We've either got a bug in the HDA code here or we're missing a quirk for th= is specific HDA controller. Sooner or later we'll have to pull in Takashi Iwai (hda maintainer) and/or AMD engineers responsible for the HDA portion of th= eir GPUs. Previously we just papered over such issues by forcing the HDA controller o= ff when the GPU runtime suspends, but since my commit 07f4f97d7b4b such bugs a= re now exposed as we deliberately keep the GPU awake as long as the HDA contro= ller is in use. Thanks for helping identify and tracking down this issue. --=20 You are receiving this mail because: You are the assignee for the bug.= --15271522041.c66Ee.23839 Date: Thu, 24 May 2018 08:56:44 +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 # 21 on bug 10659= 7 from Lukas Wunner
Okay so the reason the HDA controller doesn't suspend is becau=
se the
codec_powered bitmask is not null:

snd_hda_intel 0000:01: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 lowest bit is set. In other words, the single codec on that HDA bus is
considered powered on, so the HDA controller is prevented from suspending.

Bits in the codec_powered bitmask are set or cleared using
snd_hdac_codec_link_up() and snd_hdac_codec_link_down(), which are only cal=
led
during runtime suspend and resume of the codec.

Looking at hda_codec_runtime_suspend(), we can see that the bit is only cle=
ared
conditionally:

https://elixir.bootlin.com/linux/latest/source/sound/pci/hd=
a/hda_codec.c#L2906

        if (codec_has_clkstop(codec) && codec_has_epss(codec) &=
&
            (state & AC_PWRST_CLK_STOP_OK))
                snd_hdac_codec_link_down(&codec->core);

The codec_has_clkstop() and codec_has_epss() macros just query bits in the
power_caps bitmask. That bitmask can also be retrieved from sysfs, could you
please post the output of:
grep . /sys/bus/hdaudio/devices/hdaudioC1D0/widgets/*/power_caps

I'll prepare another debug patch so that we get a better understanding why =
the
codec isn't powered down.

We've either got a bug in the HDA code here or we're missing a quirk for th=
is
specific HDA controller. Sooner or later we'll have to pull in Takashi Iwai
(hda maintainer) and/or AMD engineers responsible for the HDA portion of th=
eir
GPUs.

Previously we just papered over such issues by forcing the HDA controller o=
ff
when the GPU runtime suspends, but since my commit 07f4f97d7b4b such bugs a=
re
now exposed as we deliberately keep the GPU awake as long as the HDA contro=
ller
is in use. Thanks for helping identify and tracking down this issue.


You are receiving this mail because:
  • You are the assignee for the bug.
= --15271522041.c66Ee.23839-- --===============0737411594== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVsCg== --===============0737411594==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 106597] [vga_switcheroo] commit 07f4f97d7b4bf325d9f558c5b58230387e4e57e0 breaks dpm on Alienware 15R3 Date: Thu, 24 May 2018 10:04:15 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0531315369==" 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 BF44389CD8 for ; Thu, 24 May 2018 10:04:15 +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 --===============0531315369== Content-Type: multipart/alternative; boundary="15271562550.54bd7643.23704" Content-Transfer-Encoding: 7bit --15271562550.54bd7643.23704 Date: Thu, 24 May 2018 10:04:15 +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=3D106597 Lukas Wunner changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #139688|0 |1 is obsolete| | --- Comment #23 from Lukas Wunner --- Created attachment 139735 --> https://bugs.freedesktop.org/attachment.cgi?id=3D139735&action=3Dedit drm-next-4.18-wip debug patch 3 Here's another debug patch to understand why the HDA codec refuses to power down. I've removed some of the earlier debug printks as they're no longer needed, so dmesg output should be shorter than before, still you may want to add log_buf_len=3D10M to your command line to avoid losing messages. --=20 You are receiving this mail because: You are the assignee for the bug.= --15271562550.54bd7643.23704 Date: Thu, 24 May 2018 10:04:15 +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 10659= 7
What Removed Added
Attachment #139688 is obsolete   1


You are receiving this mail because:
  • You are the assignee for the bug.
= --15271562550.54bd7643.23704-- --===============0531315369== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVsCg== --===============0531315369==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 106597] [vga_switcheroo] commit 07f4f97d7b4bf325d9f558c5b58230387e4e57e0 breaks dpm on Alienware 15R3 Date: Thu, 24 May 2018 10:01:00 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0682719357==" Return-path: Received: from culpepper.freedesktop.org (culpepper.freedesktop.org [131.252.210.165]) by gabe.freedesktop.org (Postfix) with ESMTP id 3AB6F6E368 for ; Thu, 24 May 2018 10:01:00 +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 --===============0682719357== Content-Type: multipart/alternative; boundary="15271560601.7865Bc202.22176" Content-Transfer-Encoding: 7bit --15271560601.7865Bc202.22176 Date: Thu, 24 May 2018 10:01:00 +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=3D106597 --- Comment #22 from taijian@posteo.de --- Hey, thank you guys for working on fixing this - I am kinda the one who sta= nds to benefit if this gets fixed, so... Also: $ grep . /sys/bus/hdaudio/devices/hdaudioC1D0/widgets/*/power_caps /sys/bus/hdaudio/devices/hdaudioC1D0/widgets/01/power_caps:0xc0000009 --=20 You are receiving this mail because: You are the assignee for the bug.= --15271560601.7865Bc202.22176 Date: Thu, 24 May 2018 10:01:00 +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 # 22 on bug 10659= 7 from taijian@posteo.d= e
Hey, thank you guys for working on fixing this - I am kinda th=
e one who stands
to benefit if this gets fixed, so...

Also:
$ grep . /sys/bus/hdaudio/devices/hdaudioC1D0/widgets/*/power_caps
/sys/bus/hdaudio/devices/hdaudioC1D0/widgets/01/power_caps:0xc0000009


You are receiving this mail because:
  • You are the assignee for the bug.
= --15271560601.7865Bc202.22176-- --===============0682719357== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVsCg== --===============0682719357==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 106597] [vga_switcheroo] commit 07f4f97d7b4bf325d9f558c5b58230387e4e57e0 breaks dpm on Alienware 15R3 Date: Thu, 24 May 2018 10:28:39 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0555223538==" Return-path: Received: from culpepper.freedesktop.org (culpepper.freedesktop.org [131.252.210.165]) by gabe.freedesktop.org (Postfix) with ESMTP id 8459F6E368 for ; Thu, 24 May 2018 10:28:39 +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 --===============0555223538== Content-Type: multipart/alternative; boundary="15271577191.5798dCa.485" Content-Transfer-Encoding: 7bit --15271577191.5798dCa.485 Date: Thu, 24 May 2018 10:28:39 +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=3D106597 taijian@posteo.de changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #139723|0 |1 is obsolete| | --- Comment #25 from taijian@posteo.de --- Created attachment 139736 --> https://bugs.freedesktop.org/attachment.cgi?id=3D139736&action=3Dedit dmesg with the debug symbols requested by Lukas, version 3 And another round of dmesg output. Enjoy! --=20 You are receiving this mail because: You are the assignee for the bug.= --15271577191.5798dCa.485 Date: Thu, 24 May 2018 10:28:39 +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 taijian@posteo.de changed bug 10659= 7
What Removed Added
Attachment #139723 is obsolete   1

Comme= nt # 25 on bug 10659= 7 from taijian@posteo.d= e
Created attachment 139736 [details]
dmesg with the debug symbols requested by Lukas, version 3

And another round of dmesg output. Enjoy!


You are receiving this mail because:
  • You are the assignee for the bug.
= --15271577191.5798dCa.485-- --===============0555223538== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVsCg== --===============0555223538==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 106597] [vga_switcheroo] commit 07f4f97d7b4bf325d9f558c5b58230387e4e57e0 breaks dpm on Alienware 15R3 Date: Thu, 24 May 2018 10:13:37 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1554425355==" 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 068686E01C for ; Thu, 24 May 2018 10:13:37 +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 --===============1554425355== Content-Type: multipart/alternative; boundary="15271568160.dD2FfA.27434" Content-Transfer-Encoding: 7bit --15271568160.dD2FfA.27434 Date: Thu, 24 May 2018 10:13:36 +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=3D106597 --- Comment #24 from Lukas Wunner --- (In reply to taijian from comment #22) > $ grep . /sys/bus/hdaudio/devices/hdaudioC1D0/widgets/*/power_caps > /sys/bus/hdaudio/devices/hdaudioC1D0/widgets/01/power_caps:0xc0000009 According to the HDA specification r1.0a, page 209 (https://www.intel.com/content/dam/www/public/us/en/documents/product-speci= fications/high-definition-audio-specification.pdf) this decodes as: EPSS supported CLKSTOP supported D3 supported D0 supported Hm, looks fine at first glance. I think I'll need dmesg output with the 3rd debug patch to understand what's going wrong. --=20 You are receiving this mail because: You are the assignee for the bug.= --15271568160.dD2FfA.27434 Date: Thu, 24 May 2018 10:13:36 +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 # 24 on bug 10659= 7 from Lukas Wunner
(In reply to taijian from comment #22)
> $ grep . /sys/bus/hdaudio/devices/hdaudioC1D0/wi=
dgets/*/power_caps
> /sys/bus/hdaudio/devices/hdaudioC1D0/widgets/01/power_caps:0xc0000009<=
/span >

According to the HDA specification r1.0a, page 209
(https://www.i=
ntel.com/content/dam/www/public/us/en/documents/product-specifications/high=
-definition-audio-specification.pdf)
this decodes as:

EPSS supported
CLKSTOP supported
D3 supported
D0 supported

Hm, looks fine at first glance. I think I'll need dmesg output with the 3rd
debug patch to understand what's going wrong.


You are receiving this mail because:
  • You are the assignee for the bug.
= --15271568160.dD2FfA.27434-- --===============1554425355== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVsCg== --===============1554425355==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 106597] [vga_switcheroo] commit 07f4f97d7b4bf325d9f558c5b58230387e4e57e0 breaks dpm on Alienware 15R3 Date: Thu, 24 May 2018 13:07:17 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0886327049==" Return-path: Received: from culpepper.freedesktop.org (culpepper.freedesktop.org [131.252.210.165]) by gabe.freedesktop.org (Postfix) with ESMTP id 7B20D6E63F for ; Thu, 24 May 2018 13:07:17 +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 --===============0886327049== Content-Type: multipart/alternative; boundary="15271672370.568b2.32111" Content-Transfer-Encoding: 7bit --15271672370.568b2.32111 Date: Thu, 24 May 2018 13:07:17 +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=3D106597 --- Comment #26 from Lukas Wunner --- So hda_call_codec_suspend() tries to set the codec's power state to D3 by calling hda_set_power_state(). The return value of that is the 32 bit respo= nse detailed on page 151 ff. of the HDA spec. hda_codec_runtime_suspend() then checks if the PS-ClkStopOk bit (bit 9) is set. Only then does it allow susp= end of the codec. That bit is not set. It's also not set for the other two codecs of your mac= hine (in the Intel HDA controller). And there's another oddity, the 32 bit response should contain the actual p= ower state in bits 7:4, but those bits are always cleared, for all codecs and regardless whether the codec was put into D0 or D3. In other words, the cod= ecs all remain in D0 even if we tell them to go to D3. Moreover, bits 0:3 of the response should contain the last power state set,= but those bits are always either set to D0 or D1. But according to the power capabilities of the AMD HDA controller, it only supports D0 and D3, not D1.= So this looks totally bogus. Let me test the debug patch on my own machine and check what the response l= ooks like there. --=20 You are receiving this mail because: You are the assignee for the bug.= --15271672370.568b2.32111 Date: Thu, 24 May 2018 13:07:17 +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 # 26 on bug 10659= 7 from Lukas Wunner
So hda_call_codec_suspend() tries to set the codec's power sta=
te to D3 by
calling hda_set_power_state(). The return value of that is the 32 bit respo=
nse
detailed on page 151 ff. of the HDA spec. hda_codec_runtime_suspend() then
checks if the PS-ClkStopOk bit (bit 9) is set. Only then does it allow susp=
end
of the codec.

That bit is not set. It's also not set for the other two codecs of your mac=
hine
(in the Intel HDA controller).

And there's another oddity, the 32 bit response should contain the actual p=
ower
state in bits 7:4, but those bits are always cleared, for all codecs and
regardless whether the codec was put into D0 or D3. In other words, the cod=
ecs
all remain in D0 even if we tell them to go to D3.

Moreover, bits 0:3 of the response should contain the last power state set,=
 but
those bits are always either set to D0 or D1. But according to the power
capabilities of the AMD HDA controller, it only supports D0 and D3, not D1.=
 So
this looks totally bogus.

Let me test the debug patch on my own machine and check what the response l=
ooks
like there.


You are receiving this mail because:
  • You are the assignee for the bug.
= --15271672370.568b2.32111-- --===============0886327049== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVsCg== --===============0886327049==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 106597] [vga_switcheroo] commit 07f4f97d7b4bf325d9f558c5b58230387e4e57e0 breaks dpm on Alienware 15R3 Date: Thu, 24 May 2018 15:34:05 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0918816653==" 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 4C3C46E703 for ; Thu, 24 May 2018 15:34: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 --===============0918816653== Content-Type: multipart/alternative; boundary="15271760450.9F4be43d.30457" Content-Transfer-Encoding: 7bit --15271760450.9F4be43d.30457 Date: Thu, 24 May 2018 15:34: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=3D106597 --- Comment #27 from Lukas Wunner --- Okay the real culprit seems to be commit 3b5b899ca67d ("ALSA: hda: Make use= of core codec functions to sync power state"): https://git.kernel.org/linus/3b5b899ca67d If you revert that, does the issue go away? I can see on my MacBook Pro that the return value is consistently 0x233 wit= hout this commit when setting the power state to D3 (which is the correct return value), and 0x1 with the commit. The commit went into 4.17. Given how late = we are in this cycle, I think a revert is in order. The commit breaks runtime suspend for any HDA controller. Why the hell wasn't this discovered before, this must have been in linux-next for > 4 months!? --=20 You are receiving this mail because: You are the assignee for the bug.= --15271760450.9F4be43d.30457 Date: Thu, 24 May 2018 15:34: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

Comme= nt # 27 on bug 10659= 7 from Lukas Wunner
Okay the real culprit seems to be commit 3b5b899ca67d ("A=
LSA: hda: Make use of
core codec functions to sync power state"):
https://git.kernel.or=
g/linus/3b5b899ca67d

If you revert that, does the issue go away?

I can see on my MacBook Pro that the return value is consistently 0x233 wit=
hout
this commit when setting the power state to D3 (which is the correct return
value), and 0x1 with the commit. The commit went into 4.17. Given how late =
we
are in this cycle, I think a revert is in order. The commit breaks runtime
suspend for any HDA controller. Why the hell wasn't this discovered before,
this must have been in linux-next for > 4 months!?


You are receiving this mail because:
  • You are the assignee for the bug.
= --15271760450.9F4be43d.30457-- --===============0918816653== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVsCg== --===============0918816653==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 106597] [vga_switcheroo] commit 07f4f97d7b4bf325d9f558c5b58230387e4e57e0 breaks dpm on Alienware 15R3 Date: Thu, 24 May 2018 15:43:36 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1331683677==" Return-path: Received: from culpepper.freedesktop.org (culpepper.freedesktop.org [131.252.210.165]) by gabe.freedesktop.org (Postfix) with ESMTP id 1C60A6E71F for ; Thu, 24 May 2018 15:43:36 +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 --===============1331683677== Content-Type: multipart/alternative; boundary="15271766160.AB51.1251" Content-Transfer-Encoding: 7bit --15271766160.AB51.1251 Date: Thu, 24 May 2018 15:43:36 +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=3D106597 --- Comment #28 from Lukas Wunner --- Maybe a revert isn't necessary, I think I've spotted the problem: +static inline bool snd_hda_sync_power_state(struct hda_codec *codec, ^^^^ ... should be unsigned int. --=20 You are receiving this mail because: You are the assignee for the bug.= --15271766160.AB51.1251 Date: Thu, 24 May 2018 15:43:36 +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 # 28 on bug 10659= 7 from Lukas Wunner
Maybe a revert isn't necessary, I think I've spotted the probl=
em:

+static inline bool snd_hda_sync_power_state(struct hda_codec *codec,
              ^^^^

... should be unsigned int.


You are receiving this mail because:
  • You are the assignee for the bug.
= --15271766160.AB51.1251-- --===============1331683677== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVsCg== --===============1331683677==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 106597] [vga_switcheroo] commit 07f4f97d7b4bf325d9f558c5b58230387e4e57e0 breaks dpm on Alienware 15R3 Date: Thu, 24 May 2018 16:15:49 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0111537974==" 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 2BCF76E637 for ; Thu, 24 May 2018 16:15: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 --===============0111537974== Content-Type: multipart/alternative; boundary="15271785490.cBE539A.14807" Content-Transfer-Encoding: 7bit --15271785490.cBE539A.14807 Date: Thu, 24 May 2018 16:15: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=3D106597 --- Comment #29 from taijian@posteo.de --- So a patch to try would look like: -static inline bool snd_hda_sync_power_state(struct hda_codec *codec, +static unsigned int snd_hda_sync_power_state(struct hda_codec *codec, ?? --=20 You are receiving this mail because: You are the assignee for the bug.= --15271785490.cBE539A.14807 Date: Thu, 24 May 2018 16:15: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

Comme= nt # 29 on bug 10659= 7 from taijian@posteo.d= e
So a patch to try would look like:

-static inline bool snd_hda_sync_power_state(struct hda_codec *codec,
+static unsigned int snd_hda_sync_power_state(struct hda_codec *codec,

??


You are receiving this mail because:
  • You are the assignee for the bug.
= --15271785490.cBE539A.14807-- --===============0111537974== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVsCg== --===============0111537974==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 106597] [vga_switcheroo] commit 07f4f97d7b4bf325d9f558c5b58230387e4e57e0 breaks dpm on Alienware 15R3 Date: Thu, 24 May 2018 16:40:08 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1078363759==" 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 8703B6E656 for ; Thu, 24 May 2018 16:40: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 --===============1078363759== Content-Type: multipart/alternative; boundary="15271800081.Fe24dba6f.24891" Content-Transfer-Encoding: 7bit --15271800081.Fe24dba6f.24891 Date: Thu, 24 May 2018 16:40: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=3D106597 --- Comment #30 from taijian@posteo.de --- Created attachment 139739 --> https://bugs.freedesktop.org/attachment.cgi?id=3D139739&action=3Dedit patch that seems to fix things for me OK, going with Lukas' discovery, I have rebuild my kernel from drm-next-4.18-wip, applying the attached patch, reversing the atpx quirk discussed earlier, and also applying the debug patch (dmesg comes in the ne= xt post).=20 And voil=C3=A0: It seems to be fixed, AFAIK! YAY! --=20 You are receiving this mail because: You are the assignee for the bug.= --15271800081.Fe24dba6f.24891 Date: Thu, 24 May 2018 16:40: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

Comme= nt # 30 on bug 10659= 7 from taijian@posteo.d= e
Created at=
tachment 139739 [details] [review]
patch that seems to fix things for me

OK, going with Lukas' discovery, I have rebuild my kernel from
drm-next-4.18-wip, applying the attached patch, reversing the atpx quirk
discussed earlier, and also applying the debug patch (dmesg comes in the ne=
xt
post).=20

And voil=C3=A0: It seems to be fixed, AFAIK! YAY!


You are receiving this mail because:
  • You are the assignee for the bug.
= --15271800081.Fe24dba6f.24891-- --===============1078363759== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVsCg== --===============1078363759==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 106597] [vga_switcheroo] commit 07f4f97d7b4bf325d9f558c5b58230387e4e57e0 breaks dpm on Alienware 15R3 Date: Thu, 24 May 2018 16:40:48 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0616323760==" 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 B133D6E5F9 for ; Thu, 24 May 2018 16:40: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 --===============0616323760== Content-Type: multipart/alternative; boundary="15271800481.d93B5.25029" Content-Transfer-Encoding: 7bit --15271800481.d93B5.25029 Date: Thu, 24 May 2018 16:40: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=3D106597 --- Comment #31 from taijian@posteo.de --- Created attachment 139740 --> https://bugs.freedesktop.org/attachment.cgi?id=3D139740&action=3Dedit the promised dmesg output with the patch --=20 You are receiving this mail because: You are the assignee for the bug.= --15271800481.d93B5.25029 Date: Thu, 24 May 2018 16:40: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

Comme= nt # 31 on bug 10659= 7 from taijian@posteo.d= e
Created attachment 139740 [details]
the promised dmesg output with the patch


You are receiving this mail because:
  • You are the assignee for the bug.
= --15271800481.d93B5.25029-- --===============0616323760== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVsCg== --===============0616323760==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 106597] [vga_switcheroo] commit 07f4f97d7b4bf325d9f558c5b58230387e4e57e0 breaks dpm on Alienware 15R3 Date: Thu, 24 May 2018 17:18:04 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0676770284==" Return-path: Received: from culpepper.freedesktop.org (culpepper.freedesktop.org [131.252.210.165]) by gabe.freedesktop.org (Postfix) with ESMTP id 6DD206E724 for ; Thu, 24 May 2018 17:18:04 +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 --===============0676770284== Content-Type: multipart/alternative; boundary="15271822840.1eaD93.6159" Content-Transfer-Encoding: 7bit --15271822840.1eaD93.6159 Date: Thu, 24 May 2018 17:18:04 +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=3D106597 --- Comment #32 from Alex Deucher --- (In reply to taijian from comment #30) > Created attachment 139739 [details] [review] > patch that seems to fix things for me >=20 > OK, going with Lukas' discovery, I have rebuild my kernel from > drm-next-4.18-wip, applying the attached patch, reversing the atpx quirk > discussed earlier, and also applying the debug patch (dmesg comes in the > next post).=20 >=20 > And voil=C3=A0: It seems to be fixed, AFAIK! YAY! Just to be clear, it works fine without the ATPX quirk if you apply the HDA fix? Should I revert the ATPX quirk? --=20 You are receiving this mail because: You are the assignee for the bug.= --15271822840.1eaD93.6159 Date: Thu, 24 May 2018 17:18:04 +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 # 32 on bug 10659= 7 from Alex Deucher
(In reply to taijian from comment #30)
> Created attachment 139739 [details] [review] [review]
> patch that seems to fix things for me
>=20
> OK, going with Lukas' discovery, I have rebuild my kernel from
> drm-next-4.18-wip, applying the attached patch, reversing the atpx qui=
rk
> discussed earlier, and also applying the debug patch (dmesg comes in t=
he
> next post).=20
>=20
> And voil=C3=A0: It seems to be fixed, AFAIK! YAY!

Just to be clear, it works fine without the ATPX quirk if you apply the HDA
fix?  Should I revert the ATPX quirk?


You are receiving this mail because:
  • You are the assignee for the bug.
= --15271822840.1eaD93.6159-- --===============0676770284== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVsCg== --===============0676770284==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 106597] [vga_switcheroo] commit 07f4f97d7b4bf325d9f558c5b58230387e4e57e0 breaks dpm on Alienware 15R3 Date: Thu, 24 May 2018 17:42:25 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1676215129==" 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 615DE6E78B for ; Thu, 24 May 2018 17:42: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 --===============1676215129== Content-Type: multipart/alternative; boundary="15271837450.5108.16226" Content-Transfer-Encoding: 7bit --15271837450.5108.16226 Date: Thu, 24 May 2018 17:42: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=3D106597 --- Comment #33 from taijian@posteo.de --- (In reply to Alex Deucher from comment #32) > (In reply to taijian from comment #30) > > Created attachment 139739 [details] [review] [review] > > patch that seems to fix things for me > >=20 > > OK, going with Lukas' discovery, I have rebuild my kernel from > > drm-next-4.18-wip, applying the attached patch, reversing the atpx quirk > > discussed earlier, and also applying the debug patch (dmesg comes in the > > next post).=20 > >=20 > > And voil=C3=A0: It seems to be fixed, AFAIK! YAY! >=20 > Just to be clear, it works fine without the ATPX quirk if you apply the H= DA > fix? Should I revert the ATPX quirk? Yes, as you suggested earlier in the thread, I reversed the atpx quirk patch when applying the hda fix, just to see if you were right that Lukas' vga_switcheroo work made that obsolete. And from my testing it does seem to= be obsolete, so if no one else is objecting, please feel free to revert it. --=20 You are receiving this mail because: You are the assignee for the bug.= --15271837450.5108.16226 Date: Thu, 24 May 2018 17:42: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

Comme= nt # 33 on bug 10659= 7 from taijian@posteo.d= e
(In reply to Alex Deucher from comment #32)
> (In reply to taijian from comment #30)
> > Created attac=
hment 139739 [details] [=
review] [review] [review]
> > patch that seems to fix things for me
> >=20
> > OK, going with Lukas' discovery, I have rebuild my kernel from
> > drm-next-4.18-wip, applying the attached patch, reversing the atp=
x quirk
> > discussed earlier, and also applying the debug patch (dmesg comes=
 in the
> > next post).=20
> >=20
> > And voil=C3=A0: It seems to be fixed, AFAIK! YAY!
>=20
> Just to be clear, it works fine without the ATPX quirk if you apply th=
e HDA
> fix?  Should I revert the ATPX quirk?

Yes, as you suggested earlier in the thread, I reversed the atpx quirk patch
when applying the hda fix, just to see if you were right that Lukas'
vga_switcheroo work made that obsolete. And from my testing it does seem to=
 be
obsolete, so if no one else is objecting, please feel free to revert it.
        


You are receiving this mail because:
  • You are the assignee for the bug.
= --15271837450.5108.16226-- --===============1676215129== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVsCg== --===============1676215129==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 106597] [vga_switcheroo] commit 07f4f97d7b4bf325d9f558c5b58230387e4e57e0 breaks dpm on Alienware 15R3 Date: Thu, 24 May 2018 21:08:28 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0411206437==" 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 75D896E77E for ; Thu, 24 May 2018 21:08:28 +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 --===============0411206437== Content-Type: multipart/alternative; boundary="15271961080.bacB53dAE.622" Content-Transfer-Encoding: 7bit --15271961080.bacB53dAE.622 Date: Thu, 24 May 2018 21:08:28 +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=3D106597 Lukas Wunner changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |FIXED Status|NEW |RESOLVED --- Comment #34 from Lukas Wunner --- Fixed with commit 009f8c90f571 ("ALSA: hda - Fix runtime PM") which is now queued for 4.17-rc7: https://git.kernel.org/tiwai/sound/c/009f8c90f571 --=20 You are receiving this mail because: You are the assignee for the bug.= --15271961080.bacB53dAE.622 Date: Thu, 24 May 2018 21:08:28 +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 10659= 7
What Removed Added
Resolution --- FIXED
Status NEW RESOLVED

Comme= nt # 34 on bug 10659= 7 from Lukas Wunner
Fixed with commit 009f8c90f571 ("ALSA: hda - Fix runtime =
PM") which is now
queued for 4.17-rc7:
https://git.k=
ernel.org/tiwai/sound/c/009f8c90f571


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