<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 --- - Launching weston fails with error "radeon 0000:01:00.0: forbidden register 0x00008040 at 558""
   href="https://bugs.freedesktop.org/show_bug.cgi?id=59945">59945</a>
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>dri-devel@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Launching weston fails with error "radeon 0000:01:00.0: forbidden register 0x00008040 at 558"
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

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

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

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

        <tr>
          <th>Hardware</th>
          <td>x86-64 (AMD64)
          </td>
        </tr>

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

        <tr>
          <th>Version</th>
          <td>XOrg CVS
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>DRM/Radeon
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>DRI
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=73742" name="attach_73742" title="patch">attachment 73742</a> <a href="attachment.cgi?id=73742&action=edit" title="patch">[details]</a></span>
patch

When i looked up register 0x00008040 i saw that it was defined as WAIT_UNTIL. 

The function that prints that error is 'evergreen_cs_check_reg' in
evergreen_cs.c. Since the WAIT_UNTIL is not present in reg_srcs/cayman (i have
a radeon 6950) the cayman_reg_safe_bm test fail and since WAIT_UNTIL is not
present in any of the switch cases it hits the default case.

But WAIT_UNTIL was present in reg_srcs/evergreen, so i copied the WAIT_UNTIL
line from evergreen to cayman. I also copied the rest of the WAIT_UNTIL_POLL*
because they seemed related.

This fixed the issue for me but i do not know if this is the proper fix.

Tested on kernel 3.8.0-rc5 and wayland/weston master and mesa master.</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>