<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 --- - [radeon BUG] Sleeping function called from invalid context"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=59219">59219</a>
          </td>
        </tr>

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

        <tr>
          <th>Summary</th>
          <td>[radeon BUG] Sleeping function called from invalid context
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>minor
          </td>
        </tr>

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

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

        <tr>
          <th>Reporter</th>
          <td>ebiggers3@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>unspecified
          </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=72816" name="attach_72816" title="dmesg output showing 2 instances of radeon BUG during resume">attachment 72816</a> <a href="attachment.cgi?id=72816&action=edit" title="dmesg output showing 2 instances of radeon BUG during resume">[details]</a></span>
dmesg output showing 2 instances of radeon BUG during resume

I am running linux-3.8-rc3 on AMD64 with various debugging options enabled,
including CONFIG_DEBUG_SLAB.  When resuming the system from suspend-to-memory,
I run into a warning and stacktrace regarding kmem_cache_alloc() being called
from an invalid context in ttm_bo_move_accel_cleanup().  dmesg output attached.
 Marked as minor because suspend still works properly (at least the times I've
tried it).

Based on the source code and object file it appears that the memory allocation
is actually the kzalloc() at the beginning of ttm_buffer_object_transfer().

Graphics card is:

01:05.0 VGA compatible controller: Advanced Micro Devices [AMD] nee ATI RS880M
[Mobility Radeon HD 4200 Series]</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>