drm/i915: Allow error capture of a pending request
[linux-2.6-microblaze.git] / drivers / gpu / drm / i915 / i915_gpu_error.c
index 225f1b1..904f21e 100644 (file)
@@ -1624,12 +1624,9 @@ capture_engine(struct intel_engine_cs *engine,
                return NULL;
 
        intel_engine_get_hung_entity(engine, &ce, &rq);
-       if (rq && !i915_request_started(rq)) {
+       if (rq && !i915_request_started(rq))
                drm_info(&engine->gt->i915->drm, "Got hung context on %s with active request %lld:%lld [0x%04X] not yet started\n",
                         engine->name, rq->fence.context, rq->fence.seqno, ce->guc_id.id);
-               i915_request_put(rq);
-               rq = NULL;
-       }
 
        if (rq) {
                capture = intel_engine_coredump_add_request(ee, rq, ATOMIC_MAYFAIL);