<html>
    <head>
      <base href="https://bugs.freedesktop.org/">
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - `vblank_mode=0 DRI_PRIME=1 glxgears` will introduce GPU lock up on Intel Graphics [8086:5917] + AMD Graphics [1002:6665] (rev c3)"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=103370#c40">Comment # 40</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - `vblank_mode=0 DRI_PRIME=1 glxgears` will introduce GPU lock up on Intel Graphics [8086:5917] + AMD Graphics [1002:6665] (rev c3)"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=103370">bug 103370</a>
              from <span class="vcard"><a class="email" href="mailto:fourdollars@gmail.com" title="Shih-Yuan Lee <fourdollars@gmail.com>"> <span class="fn">Shih-Yuan Lee</span></a>
</span></b>
        <pre>Created <span class=""><a href="attachment.cgi?id=135662" name="attach_135662" title="dmesg">attachment 135662</a> <a href="attachment.cgi?id=135662&action=edit" title="dmesg">[details]</a></span>
dmesg

(In reply to Alex Deucher from <a href="show_bug.cgi?id=103370#c38">comment #38</a>)
<span class="quote">> Created <span class=""><a href="attachment.cgi?id=135647" name="attach_135647" title="workaround for radeon">attachment 135647</a> <a href="attachment.cgi?id=135647&action=edit" title="workaround for radeon">[details]</a></span> <a href='page.cgi?id=splinter.html&bug=103370&attachment=135647'>[review]</a> [review]
> workaround for radeon

> workarounds for radeon and amdgpu to fix the issue.</span >

I applied this patch on top of Ubuntu-4.4.0-101.124 Linux kernel and it seems
to fix the issue in the beginning.
But it has some problem later on.

$ seq 20 | while read i; do echo Loop $i; DRI_PRIME=1 glxgears -info|head -n 5;
done                                                                            
Loop 1
radeon: Failed to allocate virtual address for buffer:
radeon:    size      : 65536 bytes
radeon:    alignment : 4096 bytes
radeon:    domains   : 4
radeon:    va        : 0x0000000000800000
radeon: Failed to deallocate virtual address for buffer:
radeon:    size      : 65536 bytes
radeon:    va        : 0x800000
radeon: Failed to allocate virtual address for buffer:
radeon:    size      : 65536 bytes
radeon:    alignment : 4096 bytes
radeon:    domains   : 4
radeon:    va        : 0x0000000000800000
radeon: Failed to deallocate virtual address for buffer:
radeon:    size      : 65536 bytes
radeon:    va        : 0x800000
radeonsi: Failed to create a context.
Loop 2
...</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>