From: bugzilla-daemon@freedesktop.org Subject: [Bug 66963] Rv6xx dpm problems Date: Thu, 01 Sep 2016 20:52:37 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1381869042==" Return-path: Received: from culpepper.freedesktop.org (culpepper.freedesktop.org [131.252.210.165]) by gabe.freedesktop.org (Postfix) with ESMTP id 6767C6E314 for ; Thu, 1 Sep 2016 20:52: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 --===============1381869042== Content-Type: multipart/alternative; boundary="14727631574.B9f75Fc.22931"; charset="UTF-8" --14727631574.B9f75Fc.22931 Date: Thu, 1 Sep 2016 20:52:37 +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=3D66963 Zetok changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |zetok@openmailbox.org --- Comment #288 from Zetok --- Created attachment 126164 --> https://bugs.freedesktop.org/attachment.cgi?id=3D126164&action=3Dedit fixes GPU freeze by reverting 02376d8282b88f07d0716da6155094c8760b1a13 on 4.6.3, tested with r9 290 (In reply to Kajzer from comment #269) > Done : >=20 > git bisect start '--' 'drivers/gpu/drm/radeon' > # good: [19583ca584d6f574384e17fe7613dfaeadcdc4a6] Linux 3.16 > git bisect good 19583ca584d6f574384e17fe7613dfaeadcdc4a6 > # bad: [bfe01a5ba2490f299e1d2d5508cbbbadd897bbe9] Linux 3.17 > git bisect bad bfe01a5ba2490f299e1d2d5508cbbbadd897bbe9 > # bad: [03f62abd112d5150b6ce8957fa85d4f6e85e357f] drm/radeon: split PT se= tup > in more functions > git bisect bad 03f62abd112d5150b6ce8957fa85d4f6e85e357f > # bad: [391bfec33cd4e103274f197924d41ef648b849de] drm/radeon: remove visi= ble > vram size limit on bo allocation (v4) > git bisect bad 391bfec33cd4e103274f197924d41ef648b849de > # good: [da9976206c15178eeae1b4445c9266125bf35b0a] drm/radeon: enable > display scaling on all connectors (v2) > git bisect good da9976206c15178eeae1b4445c9266125bf35b0a > # good: [380670aebfca998bb67b9cf05fc7f28ebeac4b18] drm/radeon: Demote 'BO > allocation size too large' message to debug only > git bisect good 380670aebfca998bb67b9cf05fc7f28ebeac4b18 > # bad: [02376d8282b88f07d0716da6155094c8760b1a13] drm/radeon: Allow > write-combined CPU mappings of BOs in GTT (v2) > git bisect bad 02376d8282b88f07d0716da6155094c8760b1a13 > # good: [77497f2735ad6e29c55475e15e9790dbfa2c2ef8] drm/radeon: Pass GART > page flags to radeon_gart_set_page() explicitly > git bisect good 77497f2735ad6e29c55475e15e9790dbfa2c2ef8 > # first bad commit: [02376d8282b88f07d0716da6155094c8760b1a13] drm/radeon: > Allow write-combined CPU mappings of BOs in GTT (v2) >=20 > commit 02376d8282b88f07d0716da6155094c8760b1a13 > Author: Michel D=C3=A4nzer > Date: Thu Jul 17 19:01:08 2014 +0900 >=20 > drm/radeon: Allow write-combined CPU mappings of BOs in GTT (v2) >=20=20=20=20=20 > v2: fix rebase onto drm-fixes >=20=20=20=20=20 > Signed-off-by: Michel D=C3=A4nzer > Reviewed-by: Christian K=C3=B6nig > Signed-off-by: Alex Deucher Thank you for the great work with bisecting! My box has been having ~constant hangs while playing games on all the kerne= ls I've used with my new GPU, R9 290. The behavior seems to have gotten worse = over newer mesa/kernel versions, to the point where playing just a few minutes c= ould result in a "hard" system hang =E2=80=93=C2=A0black screen, no response to = `reisub`. Or it could "just" result in radeon driver crash=E2=80=A6 Well, from that it was = at least possible to reboot with `reisub`. Not that it was a nice thing. Anyway, the kernel on which it was reproducible usually within <30min of pl= ay (quite often <10 min of play) was 4.6.3. I've reverted 02376d8282b88f07d0716da6155094c8760b1a13 on checked out 4.6.3, copied my Gentoo kernel config, and to my surprise, my resolving of revert conflicts not only compiled, but booted, and after a few (>5) hours of play= ing, I can say that I'm fairly sure that revert makes hangs disappear. Of course I'll be further "testing", but that's it for me today. Slight note regarding performance =E2=80=93 I've noticed that when playing = with patch reverted there sometimes occur slight microstutters =E2=80=93=C2=A0i.e. top= s 0.2-0.3s long, barely noticeable, and not a problem, given that they were happening rarely, and box finally was not freezing into oblivion when playing games. Anyway; there are 2 problems I have with GPU =E2=80=93 one is that resuming= DPM fails which causes slight (10s) freeze, and the other that the reverted patch introduced, is freeze/crashing once resuming DPM fails. Crashing/freeze is = gone after revert, but the resuming DPM still fails. Given that freeze/crash is = gone I don't really care though. I'm attaching the patch that reverts 02376d8282b88f07d0716da6155094c8760b1a= 13 for 4.6.3. I'll also attach the dmsg output without commit reverted, where it crashed(= ?), and dmsg output with commit reverted where resuming DPM still fails, but the freeze/crash is gone. Note that I don't know C, and I have no idea what reverting the patch actua= lly does (aside from fixing stuff for me). Btw, (In reply to bugs.freedesktop.org from comment #287) > The following commands from comment #239 seems to have corrected the issue > on my Raden HD3650 Mobility: >=20 > >> echo high > /sys/class/drm/card0/device/power_dpm_force_performance_le= vel > >> echo performance > /sys/class/drm/card0/device/power_dpm_state >=20 > This seems to be equivalent to the patch in comment #244. Any chance of > getting this patch into the kernel? >=20 > If anyone is willing to write a fix, as opposed to a workaround, for this > issue, I would be happy to test it on my device. Yeah, no, that didn't help a bit. --=20 You are receiving this mail because: You are the assignee for the bug.= --14727631574.B9f75Fc.22931 Date: Thu, 1 Sep 2016 20:52:37 +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 Zetok changed bug 66963<= /a>
What Removed Added
CC   zetok@openmailbox.org

Comme= nt # 288 on bug 66963<= /a> from Zetok
Created attachment 1261=
64 [details] [review]
fixes GPU freeze by reverting 02376d8282b88f07d0716da6155094c8760b1a13 on
4.6.3, tested with r9 290

(In reply to Kajzer from comment #=
269)
> Done :
>=20
> git bisect start '--' 'drivers/gpu/drm/radeon'
> # good: [19583ca584d6f574384e17fe7613dfaeadcdc4a6] Linux 3.16
> git bisect good 19583ca584d6f574384e17fe7613dfaeadcdc4a6
> # bad: [bfe01a5ba2490f299e1d2d5508cbbbadd897bbe9] Linux 3.17
> git bisect bad bfe01a5ba2490f299e1d2d5508cbbbadd897bbe9
> # bad: [03f62abd112d5150b6ce8957fa85d4f6e85e357f] drm/radeon: split PT=
 setup
> in more functions
> git bisect bad 03f62abd112d5150b6ce8957fa85d4f6e85e357f
> # bad: [391bfec33cd4e103274f197924d41ef648b849de] drm/radeon: remove v=
isible
> vram size limit on bo allocation (v4)
> git bisect bad 391bfec33cd4e103274f197924d41ef648b849de
> # good: [da9976206c15178eeae1b4445c9266125bf35b0a] drm/radeon: enable
> display scaling on all connectors (v2)
> git bisect good da9976206c15178eeae1b4445c9266125bf35b0a
> # good: [380670aebfca998bb67b9cf05fc7f28ebeac4b18] drm/radeon: Demote =
'BO
> allocation size too large' message to debug only
> git bisect good 380670aebfca998bb67b9cf05fc7f28ebeac4b18
> # bad: [02376d8282b88f07d0716da6155094c8760b1a13] drm/radeon: Allow
> write-combined CPU mappings of BOs in GTT (v2)
> git bisect bad 02376d8282b88f07d0716da6155094c8760b1a13
> # good: [77497f2735ad6e29c55475e15e9790dbfa2c2ef8] drm/radeon: Pass GA=
RT
> page flags to radeon_gart_set_page() explicitly
> git bisect good 77497f2735ad6e29c55475e15e9790dbfa2c2ef8
> # first bad commit: [02376d8282b88f07d0716da6155094c8760b1a13] drm/rad=
eon:
> Allow write-combined CPU mappings of BOs in GTT (v2)
>=20
> commit 02376d8282b88f07d0716da6155094c8760b1a13
> Author: Michel D=C3=A4nzer <michel.daenzer@amd.com>
> Date:   Thu Jul 17 19:01:08 2014 +0900
>=20
>     drm/radeon: Allow write-combined CPU mappings of BOs in GTT (v2)
>=20=20=20=20=20
>     v2: fix rebase onto drm-fixes
>=20=20=20=20=20
>     Signed-off-by: Michel D=C3=A4nzer <michel.daenzer@amd.com>
>     Reviewed-by: Christian K=C3=B6nig <christian.koenig@amd.com>
>     Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

Thank you for the great work with bisecting!

My box has been having ~constant hangs while playing games on all the kerne=
ls
I've used with my new GPU, R9 290. The behavior seems to have gotten worse =
over
newer mesa/kernel versions, to the point where playing just a few minutes c=
ould
result in a "hard" system hang =E2=80=93=C2=A0black screen, no re=
sponse to `reisub`. Or it
could "just" result in radeon driver crash=E2=80=A6 Well, from th=
at it was at least
possible to reboot with `reisub`. Not that it was a nice thing.

Anyway, the kernel on which it was reproducible usually within <30min of=
 play
(quite often <10 min of play) was 4.6.3.

I've reverted 02376d8282b88f07d0716da6155094c8760b1a13 on checked out 4.6.3,
copied my Gentoo kernel config, and to my surprise, my resolving of revert
conflicts not only compiled, but booted, and after a few (>5) hours of p=
laying,
I can say that I'm fairly sure that revert makes hangs disappear. Of course
I'll be further "testing", but that's it for me today.

Slight note regarding performance =E2=80=93 I've noticed that when playing =
with patch
reverted there sometimes occur slight microstutters =E2=80=93=C2=A0i.e. top=
s 0.2-0.3s long,
barely noticeable, and not a problem, given that they were happening rarely,
and box finally was not freezing into oblivion when playing games.


Anyway; there are 2 problems I have with GPU =E2=80=93 one is that resuming=
 DPM fails
which causes slight (10s) freeze, and the other that the reverted patch
introduced, is freeze/crashing once resuming DPM fails. Crashing/freeze is =
gone
after revert, but the resuming DPM still fails. Given that freeze/crash is =
gone
I don't really care though.

I'm attaching the patch that reverts 02376d8282b88f07d0716da6155094c8760b1a=
13
for 4.6.3.

I'll also attach the dmsg output without commit reverted, where it crashed(=
?),
and dmsg output with commit reverted where resuming DPM still fails, but the
freeze/crash is gone.

Note that I don't know C, and I have no idea what reverting the patch actua=
lly
does (aside from fixing stuff for me).



Btw,

(In reply to bugs.freedesktop.org from comment #287)
> The following commands from comment #239 seems to have corrected the issue
> on my Raden HD3650 Mobility:
>=20
> >> echo high > /sys/class/drm/card0/device/power_dpm_force_pe=
rformance_level
> >> echo performance > /sys/class/drm/card0/device/power_dpm_s=
tate
>=20
> This seems to be equivalent to the patch in comment #244. Any chance of
> getting this patch into the kernel?
>=20
> If anyone is willing to write a fix, as opposed to a workaround, for t=
his
> issue, I would be happy to test it on my device.

Yeah, no, that didn't help a bit.


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