<html>
    <head>
      <base href="https://bugs.freedesktop.org/" />
    </head>
    <body><span class="vcard"><a class="email" href="mailto:chris@chris-wilson.co.uk" title="Chris Wilson <chris@chris-wilson.co.uk>"> <span class="fn">Chris Wilson</span></a>
</span> changed
              <a class="bz_bug_link 
          bz_status_NEEDINFO "
   title="NEEDINFO - [IVB] intermittent return from blank shows non-rotated monitors glitch"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=89904">bug 89904</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;">Status</td>
           <td>NEW
           </td>
           <td>NEEDINFO
           </td>
         </tr></table>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEEDINFO "
   title="NEEDINFO - [IVB] intermittent return from blank shows non-rotated monitors glitch"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=89904#c5">Comment # 5</a>
              on <a class="bz_bug_link 
          bz_status_NEEDINFO "
   title="NEEDINFO - [IVB] intermittent return from blank shows non-rotated monitors glitch"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=89904">bug 89904</a>
              from <span class="vcard"><a class="email" href="mailto:chris@chris-wilson.co.uk" title="Chris Wilson <chris@chris-wilson.co.uk>"> <span class="fn">Chris Wilson</span></a>
</span></b>
        <pre>Ok, I noticed that it wasn't taking account of the rotation flag when choosing
the initial contents for the scanout when waking up - so it was copying the
frontbuffer without rotation onto the RandR shadow scanout before binding it to
the CRTC. We did promptly try to redisplay the outputs (~16ms later but that is
mostly due to the verbosity of the logging and CRTC enabling), but

[  2535.903] sna_mode_redisplay: shadow idle, skipping update

so that means the unrotated content would persist until redraw. I believe I
understand the problem correct (kudos for getting the right bit of the log!):

commit e74ff581449e92d7933da1b5df6680cb880fc454
Author: Chris Wilson <<a href="mailto:chris@chris-wilson.co.uk">chris@chris-wilson.co.uk</a>>
Date:   Mon Apr 6 13:58:35 2015 +0100

    sna: Force the TearFree redisplay when populating a rotated configuration

    We have to disable the "shadow idle; skipping" test if the CRTCs are
    showing stale content following a sna_crtc_attach().

    Reported-by: Chris Bainbridge <<a href="mailto:chris.bainbridge@gmail.com">chris.bainbridge@gmail.com</a>>
    References: <a class="bz_bug_link 
          bz_status_NEEDINFO "
   title="NEEDINFO - [IVB] intermittent return from blank shows non-rotated monitors glitch"
   href="show_bug.cgi?id=89904">https://bugs.freedesktop.org/show_bug.cgi?id=89904</a>
    Signed-off-by: Chris Wilson <<a href="mailto:chris@chris-wilson.co.uk">chris@chris-wilson.co.uk</a>></pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the QA Contact for the bug.</li>
      </ul>
    </body>
</html>