<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 --- - [sna] and [uxa] __kgem_bo_map__gtt: failed to retrieve GTT offset for handle=... : 5"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=63921">63921</a>
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>chris@chris-wilson.co.uk
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>[sna] and [uxa] __kgem_bo_map__gtt: failed to retrieve GTT offset for handle=... : 5
          </td>
        </tr>

        <tr>
          <th>QA Contact</th>
          <td>intel-gfx-bugs@lists.freedesktop.org
          </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>nicolashillegeer@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>Driver/intel
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>xorg
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=78473" name="attach_78473" title="X.org log for SNA crash">attachment 78473</a> <a href="attachment.cgi?id=78473&action=edit" title="X.org log for SNA crash">[details]</a></span>
X.org log for SNA crash

Even though the error mentioned above is SNA-only, a very similar one occurs
with UXA. Unfortunately I trashed my old Xorg log by rebooting twice but if I
test again with UXA I'll paste it too. I inspected the errno (5) and that
stands for input/output error, which is the same thing that was mentioned by
the UXA log, I recall.

I've been trying to play videos with vaapi-mplayer because I want to use it as
a media station that can run for at least a day. Usually the quality is top
notch and the CPU usage is very low, which motivates me more to try to get this
to work stably.

Unfortunately, due to the multitude of the packages and the fact that the
crashes happen seemingly at random (sometimes it takes an hour, sometimes 2
days), I can't test all permutations. I think I could use some help in
diagnosing it better. I started upgrading packages because I thought it would
alleviate the issue. I started out with all stock debian wheezy packages and
ended up with the current install with SNA after lots of compiling.

In my limited testing it appears that SNA crashes much sooner than UXA. The
last SNA run took about an hour to crash.

I've seen many crashes over different kernel versions and whatnot, and the
general idea that I get is that the card somehow runs out of memory or some
such, which is possible I guess since the movies are large and maybe something
in the chain does not release the VA surfaces...

If this is true it would seem that both UXA and SNA are leaking, but SNA at a
faster rate. Just some speculation here but maybe there could be (switchable)
support for VA surface expiration somewhere...

Should I perhaps cross-post to the libva bug-tracker as well?

Graphics card: Intel HD3000 (Sandy Bridge)

Distribution: debian wheezy
Kernel: 3.9-rc8 (latest as of this writing)
libdrm: 2.4.43 (compiled from debian git)
mesa: 8.0.5-4 (stock)
intel-vaapi-driver: 1.0.21.pre1 (I tried stock too, ofcourse)
libva: 1.1.2.pre1 (VA-API version 0.33.0)
intel-xorg-driver: 2.21.6

Anything else I could try?

Btw, I always check i915_error_state and I've never seen anything but this:

# cat /sys/kernel/debug/dri/0/i915_error_state 
cat: /sys/kernel/debug/dri/0/i915_error_state: Cannot allocate memory</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>