<html>
    <head>
      <base href="https://bugs.freedesktop.org/">
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_REOPENED "
   title="REOPENED - [HSW]drv_selftest/mock_requests - ida_remove called for id=1 which is not allocated."
   href="https://bugs.freedesktop.org/show_bug.cgi?id=101627#c5">Comment # 5</a>
              on <a class="bz_bug_link 
          bz_status_REOPENED "
   title="REOPENED - [HSW]drv_selftest/mock_requests - ida_remove called for id=1 which is not allocated."
   href="https://bugs.freedesktop.org/show_bug.cgi?id=101627">bug 101627</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>Do we hit

diff --git a/drivers/gpu/drm/i915/selftests/mock_engine.c
b/drivers/gpu/drm/i915/selftests/mock_engine.c
index 5b18a2dc19a8..df2cc9132d90 100644
--- a/drivers/gpu/drm/i915/selftests/mock_engine.c
+++ b/drivers/gpu/drm/i915/selftests/mock_engine.c
@@ -195,7 +195,7 @@ void mock_engine_free(struct intel_engine_cs *engine)

        GEM_BUG_ON(timer_pending(&mock->hw_delay));

-       if (engine->last_retired_context)
+       if (WARN_ON(engine->last_retired_context))
                engine->context_unpin(engine, engine->last_retired_context);

        intel_engine_fini_breadcrumbs(engine);

?

That should have been done by the i915_gem_contexts_lost() following the device
flush.</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the assignee for the bug.</li>
          <li>You are on the CC list for the bug.</li>
          <li>You are the QA Contact for the bug.</li>
      </ul>
    </body>
</html>