<html>
    <head>
      <base href="https://bugs.freedesktop.org/">
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [CI][BAT]igt@gem_persistent_relocs@forked-* - timeout - GEM_BUG_ON(i915_vma_is_active(vma))"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=112068#c5">Comment # 5</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [CI][BAT]igt@gem_persistent_relocs@forked-* - timeout - GEM_BUG_ON(i915_vma_is_active(vma))"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=112068">bug 112068</a>
              from <span class="vcard"><a class="email" href="mailto:prathap.kumar.valsan@intel.com" title="prathap.kumar.valsan@intel.com">prathap.kumar.valsan@intel.com</a>
</span></b>
        <pre>Based on  reading the code, it looks to me that there is a BUG in driver where
a single VMA is being added to the bound list more than once.

diff --git a/drivers/gpu/drm/i915/i915_vma.c b/drivers/gpu/drm/i915/i915_vma.c
index e90c4d0af8fd..dd930a3de013 100644
--- a/drivers/gpu/drm/i915/i915_vma.c
+++ b/drivers/gpu/drm/i915/i915_vma.c
@@ -921,7 +921,7 @@ int i915_vma_pin(struct i915_vma *vma, u64 size, u64
alignment, u64 flags)
        /* There should only be at most 2 active bindings (user, global) */
        GEM_BUG_ON(bound + I915_VMA_PAGES_ACTIVE < bound);
        atomic_add(I915_VMA_PAGES_ACTIVE, &vma->pages_count);
-       list_move_tail(&vma->vm_link, &vma->vm->bound_list);
+       list_del(&vma->vm_link);

        __i915_vma_pin(vma);
        GEM_BUG_ON(!i915_vma_is_pinned(vma));</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 QA Contact for the bug.</li>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>