<html>
    <head>
      <base href="https://bugs.freedesktop.org/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - Recover from missing DRM completion events"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=83884">83884</a>
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>wayland-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Recover from missing DRM completion events
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>enhancement
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux (All)
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>ppaalanen@gmail.com
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>weston
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>Wayland
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Add a watchdog to the DRM backend that will recover Weston, if the DRM page
flip events stop coming.

Weston relies on those events, and will normally not repaint until the previous
update has been acked. However, on buggy DRM drivers, and now that we are
getting closer to the universal planes and atomic mode setting and page
flipping framework, it is quite likely that some drivers are sometimes buggy.
Recovering from buggy drivers while still clearly signalling the failure should
help developers in testing their drivers.

How to recover?
Some options:
- gracefully quit Weston with an error
- fall back to immediate, timer throttled display updates (drmModeSetCrtc /
drmModePageFlip without events) and hope it works

Need to take care to not cause the watchdog to trigger during e.g. VT-switched
away, or during high load.</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>