<html>
    <head>
      <base href="https://bugs.freedesktop.org/">
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - WARN_ON(i915_gem_object_has_pinned_pages(obj))"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=104341#c3">Comment # 3</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - WARN_ON(i915_gem_object_has_pinned_pages(obj))"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=104341">bug 104341</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>(In reply to Adric Blake from <a href="show_bug.cgi?id=104341#c2">comment #2</a>)
<span class="quote">> Created <span class=""><a href="attachment.cgi?id=136307" name="attach_136307" title="bo->refcnt error details and related logs">attachment 136307</a> <a href="attachment.cgi?id=136307&action=edit" title="bo->refcnt error details and related logs">[details]</a></span>
> bo->refcnt error details and related logs

> Not a capture of that warning (sorry!), but Xorg crashed with what might be
> a relevant assert, so attaching that and my boot log so far in case it's
> related.

> [  4941.443] (EE) assert_bo_retired:325 assertion 'bo->refcnt' failed</span >

No, that's just the buffer cache tripping over itself. The refcnt check was
there to optimistically prevent accidental use-after-free, but it also is being
triggered on one path having just pulled the buffer out of the free cache.

commit 708255cbca83dbafe9154c39bd4553b0b81f09cf (HEAD, upstream/master)
Author: Chris Wilson <<a href="mailto:chris@chris-wilson.co.uk">chris@chris-wilson.co.uk</a>>
Date:   Wed Dec 20 08:46:43 2017 +0000

    sna: Drop redundant sync of an inactive snoop cache

    Having requested an inactive snooped buffer, we know that it is
    already flushed and do not need to flush it again. With debugging
    enabled, we hit an assert while flushing that the buffer has a refcout,
    which at this present time of being plucked from the snoop cache it does
    not.

    Reported-by: Adric Blake <<a href="mailto:promarbler14@gmail.com">promarbler14@gmail.com</a>>
    References: <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - WARN_ON(i915_gem_object_has_pinned_pages(obj))"
   href="show_bug.cgi?id=104341#c2">https://bugs.freedesktop.org/show_bug.cgi?id=104341#c2</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>
          <li>You are on the CC list for the bug.</li>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>