<html>
    <head>
      <base href="https://bugs.freedesktop.org/">
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [dc] Screen flickering under amdgpu-experimental [buggy auto power profile]"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=102646#c23">Comment # 23</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [dc] Screen flickering under amdgpu-experimental [buggy auto power profile]"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=102646">bug 102646</a>
              from <span class="vcard"><a class="email" href="mailto:harutyunyan.ruben@gmail.com" title="Ruben Harutyunyan <harutyunyan.ruben@gmail.com>"> <span class="fn">Ruben Harutyunyan</span></a>
</span></b>
        <pre>Hello!

I am having a similar (same?) issue on my RX580 (Asus STRIX TOC).
Seems to be an issue with MCLK switching.


Here is a video of it happening on the desktop:
<a href="https://www.youtube.com/edit?o=U&video_id=z28fFqNdjAY">https://www.youtube.com/edit?o=U&video_id=z28fFqNdjAY</a>
(there is also screen flickering that's not seen on camera, but it doesn't
happen too often in contrary to the horizontal lines)

OBS is unable to campture the glitches though:
<a href="https://www.youtube.com/edit?o=U&video_id=iMEnprhBKFQ">https://www.youtube.com/edit?o=U&video_id=iMEnprhBKFQ</a>

Notes: 
1) Most of the time glitches happen when something new gets rendered. 
2) Google Chrome/Chromium always glitch (to a lesser extent when only the start
page is open and nothing changes on the screen, opening Facebook guarantees
glitches).
3) Playing video in VLC doesn't cause any glitches (x264 encoded MKV).
4) It's really easy to reproduce by setting the power profile to low (which
fixes the issue) and then switching to high while looking at the screen. The
glitch will occur for a split second. Switching from high to low also causes
the issue.

Workarounds so far:
1) Recompiling the kernel with "smu7_vblank_too_short" forced to output true
(aka disabling MCLK switching) fixes the problem but locks the MCLK at 2Ghz and
causes coil whine and higher temps.
2) Setting the power profile to anything but "auto".
3) Disabling DC.

It's also worth noting that in my case "low" power profile works fine, but R9
390x users seem to need "high" power profile to fix it (from the
"smu7_vblank_too_short" thread:
<a class="bz_bug_link 
          bz_status_REOPENED "
   title="REOPENED - AMDGPU Tonga only does 2560x1440 at 120hz, switching to 144hz causes display errors, same thing used to happen with fglrx."
   href="show_bug.cgi?id=96868#c32">https://bugs.freedesktop.org/show_bug.cgi?id=96868#c32</a>).

I can test any patches/programs/cases if you need it.</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>