From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 107045] [4.18rc2] RX470 dGPU on hybrid laptop freezes screen after use Date: Thu, 16 Aug 2018 07:05:54 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0511564894==" Return-path: Received: from culpepper.freedesktop.org (culpepper.freedesktop.org [131.252.210.165]) by gabe.freedesktop.org (Postfix) with ESMTP id 318106E17E for ; Thu, 16 Aug 2018 07:05: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 --===============0511564894== Content-Type: multipart/alternative; boundary="15344031542.BbCE1976.27869" Content-Transfer-Encoding: 7bit --15344031542.BbCE1976.27869 Date: Thu, 16 Aug 2018 07:05: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=3D107045 --- Comment #18 from taijian@posteo.de --- (In reply to Andrey Grodzovsky from comment #17) > (In reply to taijian from comment #15) > > Created attachment 140733 [details] > > dmesg output 4.18rc5 + drm-fixes-2018-07-20 > >=20 > > OK, so I have some new, probably interesting dmesg output with the late= st > > mainline build. > >=20 > > What's happening here is that the system boots up, then my background > > display brightness service goes to work (see here: > > https://github.com/FedeDP/Clight and here: > > https://github.com/FedeDP/Clightd) and tries to adjust screen brightnes= s. > > This leads to a number of=20 > >=20 > > RIP: 0010:dm_dp_aux_transfer+0xa5/0xb0 [amdgpu] > >=20 > > trace calls and then the system freeezes completely. And I mean complet= ely, > > as in not even sysrq + REISUB does anything. Does this help in any way? >=20 > So i tried with kernel 4.18 rc.1 from here - > https://cgit.freedesktop.org/~agd5f/linux/log/?h=3Damd-staging-drm-next >=20 > and 2 cards=20 >=20 > Provider 0: id: 0x81 cap: 0x9, Source Output, Sink Offload crtcs: 5 outpu= ts: > 3 associated providers: 1 name:AMD Radeon (TM) RX 460 Graphics @ > pci:0000:0b:00.0 > Provider 1: id: 0x49 cap: 0x6, Sink Output, Source Offload crtcs: 6 outpu= ts: > 4 associated providers: 1 name:AMD Radeon (TM) RX 480 Graphics @ > pci:0000:08:00.0 >=20 > Where RX 460 is the default and RX 480 is the secondary. I ran both glxge= ars > and glxinfo multiple time with DRI_PRIME=3D1 and haven't observed any iss= ues. >=20 > From the log I see GPU pci config reset print - where does it come from ? > Did you trigger PCI reset for the device manually or did it happen once = you > tried to run any application with DRI_PRIME=3D1 ? Which device is 0000:01= :00.0 > - primary or secondary ? Disclaimer: I'm on vacation and away from my computer right now, so going f= rom memory.=20 0000:01:00.0 is probably the RX 470. And the PCI resets happen automatically when invoking an application via DRI_PRIME=3D1,no manual action necessary. --=20 You are receiving this mail because: You are the assignee for the bug.= --15344031542.BbCE1976.27869 Date: Thu, 16 Aug 2018 07:05: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

Comme= nt # 18 on bug 10704= 5 from taijian@posteo.d= e
(In reply to Andrey Grodzovsky from comment #17)
> (In reply to taijian from comment #15)
> > Created attachment 140733 [details]
> > dmesg output 4.18rc5 + drm-fixes-2018-07-20
> >=20
> > OK, so I have some new, probably interesting dmesg output with th=
e latest
> > mainline build.
> >=20
> > What's happening here is that the system boots up, then my backgr=
ound
> > display brightness service goes to work (see here:
> > https://github.com/F=
edeDP/Clight and here:
> > https://github.com/=
FedeDP/Clightd) and tries to adjust screen brightness.
> > This leads to a number of=20
> >=20
> >   RIP: 0010:dm_dp_aux_transfer+0xa5/0xb0 [amdgpu]
> >=20
> > trace calls and then the system freeezes completely. And I mean c=
ompletely,
> > as in not even sysrq + REISUB does anything. Does this help in an=
y way?
>=20
> So i tried with kernel 4.18 rc.1 from here -
> https://cgit.freedesktop.org/~agd5f/linux/log/?h=3Damd-stagin=
g-drm-next
>=20
> and 2 cards=20
>=20
> Provider 0: id: 0x81 cap: 0x9, Source Output, Sink Offload crtcs: 5 ou=
tputs:
> 3 associated providers: 1 name:AMD Radeon (TM) RX 460 Graphics @
> pci:0000:0b:00.0
> Provider 1: id: 0x49 cap: 0x6, Sink Output, Source Offload crtcs: 6 ou=
tputs:
> 4 associated providers: 1 name:AMD Radeon (TM) RX 480 Graphics @
> pci:0000:08:00.0
>=20
> Where RX 460 is the default and RX 480 is the secondary. I ran both gl=
xgears
> and glxinfo multiple time with DRI_PRIME=3D1 and haven't observed any =
issues.
>=20
> From the log I see GPU pci config reset print - where does it come fro=
m ?
> Did you trigger PCI reset for the device  manually or did it happen on=
ce you
> tried to run any application with DRI_PRIME=3D1 ? Which device is 0000=
:01:00.0
> - primary or secondary ?

Disclaimer: I'm on vacation and away from my computer right now, so going f=
rom
memory.=20

0000:01:00.0 is probably the RX 470. And the PCI resets happen automatically
when invoking an application via DRI_PRIME=3D1,no manual action necessary.<=
/pre>
        


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