<html>
<head>
<base href="https://bugs.freedesktop.org/">
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - gem cancel_userptr warning"
href="https://bugs.freedesktop.org/show_bug.cgi?id=97343#c5">Comment # 5</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - gem cancel_userptr warning"
href="https://bugs.freedesktop.org/show_bug.cgi?id=97343">bug 97343</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>A bit more information about the unbind fail perhaps?
diff --git a/drivers/gpu/drm/i915/i915_gem.c b/drivers/gpu/drm/i915/i915_gem.c
index fdd7c0a12127..2138e5eea31d 100644
--- a/drivers/gpu/drm/i915/i915_gem.c
+++ b/drivers/gpu/drm/i915/i915_gem.c
@@ -2773,7 +2773,9 @@ int i915_vma_unbind(struct i915_vma *vma)
GEM_BUG_ON(i915_vma_is_active(vma));
}
- if (i915_vma_is_pinned(vma))
+ if (WARN(i915_vma_is_pinned(vma),
+ "vma is still pinned [%d], flags=%x\n",
+ i915_vma_pin_count(vma), vma->flags))
return -EBUSY;
if (!drm_mm_node_allocated(&vma->node))</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
<li>You are the assignee for the bug.</li>
<li>You are the QA Contact for the bug.</li>
</ul>
</body>
</html>