From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 102468] RX470 powerplay issues on hybrid laptop system (dGPU does not power down) Date: Tue, 29 Aug 2017 16:48:10 +0000 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1052200901==" 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 563C76E3AD for ; Tue, 29 Aug 2017 16:48:13 +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 --===============1052200901== Content-Type: multipart/alternative; boundary="15040252930.D13A.22621"; charset="UTF-8" --15040252930.D13A.22621 Date: Tue, 29 Aug 2017 16:48:13 +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=3D102468 Bug ID: 102468 Summary: RX470 powerplay issues on hybrid laptop system (dGPU does not power down) Product: DRI Version: unspecified Hardware: x86-64 (AMD64) OS: Linux (All) Status: NEW Severity: normal Priority: medium Component: DRM/AMDgpu Assignee: dri-devel@lists.freedesktop.org Reporter: taijian@posteo.de Created attachment 133866 --> https://bugs.freedesktop.org/attachment.cgi?id=3D133866&action=3Dedit relevant dmesg output I have an Alienware 15R3 laptop with hybrid Intel (HD 630) / AMD (RX470) graphics. I run Arch Linux, up to date as of 2017-08-29. My issue is that when booting the laptop with a 'normal' kernel command lin= e, the dGPU *never* turns off, even when it is not normally needed in desktop operations. This is confirmed by running powertop, which reports a power dr= ain of ~36 W even under basically zero load. This is accompanied by various [powerplay] error messages in dmesg. As a side effect, the CPU is blocked f= rom going to power states below pc2. If I blacklist amdgpu in the kcl and then force the dGPU to off with acpi_c= all, the reported power consumption in powertop drops to ~12 W, with a correspon= ding increase in battery time. The CPU is now able to reach pc3. Booting into Windows 10 also gives me the same battery time as blacklisting amdgpu in Linux, but also the expected 'on-demand-switching' of the dGPU th= at I expect from such a setup. This is just to confirm that this is not a hardwa= re issue - it is definitely possible to dynamically switch the dGPU on or off = from the OS level, the implementation is just botched in amdgpu. --=20 You are receiving this mail because: You are the assignee for the bug.= --15040252930.D13A.22621 Date: Tue, 29 Aug 2017 16:48:13 +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 102468
Summary RX470 powerplay issues on hybrid laptop system (dGPU does not= power down)
Product DRI
Version unspecified
Hardware x86-64 (AMD64)
OS Linux (All)
Status NEW
Severity normal
Priority medium
Component DRM/AMDgpu
Assignee dri-devel@lists.freedesktop.org
Reporter taijian@posteo.de

Created attachment 133866<=
/a> [details]
relevant dmesg output

I have an Alienware 15R3 laptop with hybrid Intel (HD 630) / AMD (RX470)
graphics. I run Arch Linux, up to date as of 2017-08-29.

My issue is that when booting the laptop with a 'normal' kernel command lin=
e,
the dGPU *never* turns off, even when it is not normally needed in desktop
operations. This is confirmed by running powertop, which reports a power dr=
ain
of ~36 W even under basically zero load. This is accompanied by various
[powerplay] error messages in dmesg. As a side effect, the CPU is blocked f=
rom
going to power states below pc2.

If I blacklist amdgpu in the kcl and then force the dGPU to off with acpi_c=
all,
the reported power consumption in powertop drops to ~12 W, with a correspon=
ding
increase in battery time. The CPU is now able to reach pc3.

Booting into Windows 10 also gives me the same battery time as blacklisting
amdgpu in Linux, but also the expected 'on-demand-switching' of the dGPU th=
at I
expect from such a setup. This is just to confirm that this is not a hardwa=
re
issue - it is definitely possible to dynamically switch the dGPU on or off =
from
the OS level, the implementation is just botched in amdgpu.


You are receiving this mail because:
  • You are the assignee for the bug.
= --15040252930.D13A.22621-- --===============1052200901== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVsCg== --===============1052200901==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 102468] RX470 powerplay issues on hybrid laptop system (dGPU does not power down) Date: Tue, 29 Aug 2017 16:51:48 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0887245533==" 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 5543E6E404 for ; Tue, 29 Aug 2017 16:51: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 --===============0887245533== Content-Type: multipart/alternative; boundary="15040255080.feEB9f5b4.22985"; charset="UTF-8" --15040255080.feEB9f5b4.22985 Date: Tue, 29 Aug 2017 16:51: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=3D102468 --- Comment #1 from Alex Deucher --- (In reply to taijian from comment #0) > If I blacklist amdgpu in the kcl and then force the dGPU to off with > acpi_call, the reported power consumption in powertop drops to ~12 W, wit= h a > corresponding increase in battery time. The CPU is now able to reach pc3. What acpi call did you use? --=20 You are receiving this mail because: You are the assignee for the bug.= --15040255080.feEB9f5b4.22985 Date: Tue, 29 Aug 2017 16:51:48 +0000 MIME-Version: 1.0 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.freedesktop.org/ Auto-Submitted: auto-generated

Commen= t # 1 on bug 10246= 8 from Alex Deucher
(In reply to taijian from comment #0)
> If I blacklist amdgpu in the kcl and then force =
the dGPU to off with
> acpi_call, the reported power consumption in powertop drops to ~12 W, =
with a
> corresponding increase in battery time. The CPU is now able to reach p=
c3.

What acpi call did you use?


You are receiving this mail because:
  • You are the assignee for the bug.
= --15040255080.feEB9f5b4.22985-- --===============0887245533== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVsCg== --===============0887245533==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 102468] RX470 powerplay issues on hybrid laptop system (dGPU does not power down) Date: Tue, 29 Aug 2017 18:21:54 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1384450663==" Return-path: Received: from culpepper.freedesktop.org (culpepper.freedesktop.org [131.252.210.165]) by gabe.freedesktop.org (Postfix) with ESMTP id 2E27689E15 for ; Tue, 29 Aug 2017 18:21:54 +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 --===============1384450663== Content-Type: multipart/alternative; boundary="15040309140.ecbD.7467"; charset="UTF-8" --15040309140.ecbD.7467 Date: Tue, 29 Aug 2017 18:21:54 +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=3D102468 --- Comment #2 from taijian@posteo.de --- I followed the recommendations of this page: https://wiki.archlinux.org/index.php/Hybrid_graphics The call working on my system is: echo "\\_SB.PCI0.PEG0.PEGP._OFF" > /proc/acpi/call If I use this command on a system that does not have amdgpu blacklisted, however, this will lead to unstable system behaviour and a certain crash wi= thin ~5 min. --=20 You are receiving this mail because: You are the assignee for the bug.= --15040309140.ecbD.7467 Date: Tue, 29 Aug 2017 18:21:54 +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 10246= 8 from taijian@posteo.d= e
I followed the recommendations of this page:
https://wi=
ki.archlinux.org/index.php/Hybrid_graphics

The call working on my system is: echo "\\_SB.PCI0.PEG0.PEGP._OFF"=
; >
/proc/acpi/call

If I use this command on a system that does not have amdgpu blacklisted,
however, this will lead to unstable system behaviour and a certain crash wi=
thin
~5 min.


You are receiving this mail because:
  • You are the assignee for the bug.
= --15040309140.ecbD.7467-- --===============1384450663== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVsCg== --===============1384450663==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 102468] RX470 powerplay issues on hybrid laptop system (dGPU does not power down) Date: Mon, 04 Sep 2017 17:25:53 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0909021332==" 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 2AD216E421 for ; Mon, 4 Sep 2017 17:25:53 +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 --===============0909021332== Content-Type: multipart/alternative; boundary="15045459530.FDec496f.32459"; charset="UTF-8" --15045459530.FDec496f.32459 Date: Mon, 4 Sep 2017 17:25:53 +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=3D102468 --- Comment #3 from taijian@posteo.de --- Also, this might be related: https://bugzilla.kernel.org/show_bug.cgi?id=3D156341#c65 --=20 You are receiving this mail because: You are the assignee for the bug.= --15045459530.FDec496f.32459 Date: Mon, 4 Sep 2017 17:25:53 +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.
= --15045459530.FDec496f.32459-- --===============0909021332== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVsCg== --===============0909021332==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 102468] RX470 powerplay issues on hybrid laptop system (dGPU does not power down) Date: Thu, 28 Sep 2017 14:06:16 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1444503467==" Return-path: Received: from culpepper.freedesktop.org (culpepper.freedesktop.org [131.252.210.165]) by gabe.freedesktop.org (Postfix) with ESMTP id C13126E961 for ; Thu, 28 Sep 2017 14:06: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 --===============1444503467== Content-Type: multipart/alternative; boundary="15066075760.3C36.18004"; charset="UTF-8" --15066075760.3C36.18004 Date: Thu, 28 Sep 2017 14:06: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=3D102468 taijian@posteo.de changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #133866|0 |1 is obsolete| | --- Comment #4 from taijian@posteo.de --- Created attachment 134540 --> https://bugs.freedesktop.org/attachment.cgi?id=3D134540&action=3Dedit dmesg output with kernel 4.13.3 --=20 You are receiving this mail because: You are the assignee for the bug.= --15066075760.3C36.18004 Date: Thu, 28 Sep 2017 14:06: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 taijian@posteo.de changed bug 10246= 8
What Removed Added
Attachment #133866 is obsolete   1

Commen= t # 4 on bug 10246= 8 from taijian@posteo.d= e
Created attachme=
nt 134540 [details]
dmesg output with kernel 4.13.3


You are receiving this mail because:
  • You are the assignee for the bug.
= --15066075760.3C36.18004-- --===============1444503467== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVsCg== --===============1444503467==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 102468] RX470 powerplay issues on hybrid laptop system (dGPU does not power down) Date: Thu, 28 Sep 2017 17:57:01 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0073156275==" 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 854496E9BE for ; Thu, 28 Sep 2017 17:57:01 +0000 (UTC) In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" To: dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org --===============0073156275== Content-Type: multipart/alternative; boundary="15066214210.1646Fcc4.9767"; charset="UTF-8" --15066214210.1646Fcc4.9767 Date: Thu, 28 Sep 2017 17:57:01 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.freedesktop.org/ Auto-Submitted: auto-generated https://bugs.freedesktop.org/show_bug.cgi?id=3D102468 taijian@posteo.de changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |NOTOURBUG Status|NEW |RESOLVED --- Comment #5 from taijian@posteo.de --- OK, so I finally summoned to courage to decompile my laptop's DSDT and look= at that to debug my ACPI problems - turns out that "Linux" just gets plain sha= fted by the firmware. I rebootet with 'acpi_osi=3D!* acpi_osi=3D"Windows 2015"' = and the problem disappeared.=20 So, I'm sorry if I wasted anybody's time. I'll direct the rest of the power= play bugs to a different topic. --=20 You are receiving this mail because: You are the assignee for the bug.= --15066214210.1646Fcc4.9767 Date: Thu, 28 Sep 2017 17:57:01 +0000 MIME-Version: 1.0 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.freedesktop.org/ Auto-Submitted: auto-generated taijian@posteo.de changed bug 10246= 8
What Removed Added
Resolution --- NOTOURBUG
Status NEW RESOLVED

Commen= t # 5 on bug 10246= 8 from taijian@posteo.d= e
OK, so I finally summoned to courage to decompile my laptop's =
DSDT and look at
that to debug my ACPI problems - turns out that "Linux" just gets=
 plain shafted
by the firmware. I rebootet with 'acpi_osi=3D!* acpi_osi=3D"Windows 20=
15"' and the
problem disappeared.=20

So, I'm sorry if I wasted anybody's time. I'll direct the rest of the power=
play
bugs to a different topic.


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