<html>
<head>
<base href="https://bugs.freedesktop.org/">
</head>
<body><span class="vcard"><a class="email" href="mailto:zetok@openmailbox.org" title="Zetok <zetok@openmailbox.org>"> <span class="fn">Zetok</span></a>
</span> changed
<a class="bz_bug_link
bz_status_NEW "
title="NEW - Rv6xx dpm problems"
href="https://bugs.freedesktop.org/show_bug.cgi?id=66963">bug 66963</a>
<br>
<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>What</th>
<th>Removed</th>
<th>Added</th>
</tr>
<tr>
<td style="text-align:right;">CC</td>
<td>
</td>
<td>zetok@openmailbox.org
</td>
</tr></table>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - Rv6xx dpm problems"
href="https://bugs.freedesktop.org/show_bug.cgi?id=66963#c288">Comment # 288</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - Rv6xx dpm problems"
href="https://bugs.freedesktop.org/show_bug.cgi?id=66963">bug 66963</a>
from <span class="vcard"><a class="email" href="mailto:zetok@openmailbox.org" title="Zetok <zetok@openmailbox.org>"> <span class="fn">Zetok</span></a>
</span></b>
<pre>Created <span class=""><a href="attachment.cgi?id=126164" name="attach_126164" title="fixes GPU freeze by reverting 02376d8282b88f07d0716da6155094c8760b1a13 on 4.6.3, tested with r9 290">attachment 126164</a> <a href="attachment.cgi?id=126164&action=edit" title="fixes GPU freeze by reverting 02376d8282b88f07d0716da6155094c8760b1a13 on 4.6.3, tested with r9 290">[details]</a></span> <a href='page.cgi?id=splinter.html&bug=66963&attachment=126164'>[review]</a>
fixes GPU freeze by reverting 02376d8282b88f07d0716da6155094c8760b1a13 on
4.6.3, tested with r9 290
(In reply to Kajzer from <a href="show_bug.cgi?id=66963#c269">comment #269</a>)
<span class="quote">> Done :
>
> 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 visible
> 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)
>
> commit 02376d8282b88f07d0716da6155094c8760b1a13
> Author: Michel Dänzer <<a href="mailto:michel.daenzer@amd.com">michel.daenzer@amd.com</a>>
> Date: Thu Jul 17 19:01:08 2014 +0900
>
> drm/radeon: Allow write-combined CPU mappings of BOs in GTT (v2)
>
> v2: fix rebase onto drm-fixes
>
> Signed-off-by: Michel Dänzer <<a href="mailto:michel.daenzer@amd.com">michel.daenzer@amd.com</a>>
> Reviewed-by: Christian König <<a href="mailto:christian.koenig@amd.com">christian.koenig@amd.com</a>>
> Signed-off-by: Alex Deucher <<a href="mailto:alexander.deucher@amd.com">alexander.deucher@amd.com</a>></span >
Thank you for the great work with bisecting!
My box has been having ~constant hangs while playing games on all the kernels
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 could
result in a "hard" system hang – black screen, no response to `reisub`. Or it
could "just" result in radeon driver crash… 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 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 playing,
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 – I've noticed that when playing with patch
reverted there sometimes occur slight microstutters – i.e. tops 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 – 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 02376d8282b88f07d0716da6155094c8760b1a13
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 actually
does (aside from fixing stuff for me).
Btw,
(In reply to bugs.freedesktop.org from <a href="show_bug.cgi?id=66963#c287">comment #287</a>)
<span class="quote">> The following commands from <a href="show_bug.cgi?id=66963#c239">comment #239</a> seems to have corrected the issue
> on my Raden HD3650 Mobility:
>
> >> echo high > /sys/class/drm/card0/device/power_dpm_force_performance_level
> >> echo performance > /sys/class/drm/card0/device/power_dpm_state
>
> This seems to be equivalent to the patch in <a href="show_bug.cgi?id=66963#c244">comment #244</a>. Any chance of
> getting this patch into the kernel?
>
> 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.</span >
Yeah, no, that didn't help a bit.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>