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==--