drm/i915: Consolidate reset-request debug message
authorChris Wilson <chris@chris-wilson.co.uk>
Tue, 12 Mar 2019 11:11:45 +0000 (11:11 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Tue, 12 Mar 2019 12:49:29 +0000 (12:49 +0000)
Move the pair of messages to the common callsite where it makes sense to
include a bit more information about which request is being reset.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Mika Kuoppala <mika.kuoppala@intel.com>
Reviewed-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190312111146.10662-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_reset.c
drivers/gpu/drm/i915/intel_lrc.c
drivers/gpu/drm/i915/intel_ringbuffer.c

index 3fbaa72a9eac25a77f5eae13aa5e8af8870f28ba..3c08e08837d03d4c856145d3184a0c00269a4b72 100644 (file)
@@ -98,6 +98,12 @@ static void context_mark_innocent(struct i915_gem_context *ctx)
 
 void i915_reset_request(struct i915_request *rq, bool guilty)
 {
+       GEM_TRACE("%s rq=%llx:%lld, guilty? %s\n",
+                 rq->engine->name,
+                 rq->fence.context,
+                 rq->fence.seqno,
+                 yesno(guilty));
+
        lockdep_assert_held(&rq->engine->timeline.lock);
        GEM_BUG_ON(i915_request_completed(rq));
 
index 748352d513d64f3c26dc27ab263cc04322479e57..dc3de09c75863395bd1212b8b72760bcb4b9fb3b 100644 (file)
@@ -1957,7 +1957,6 @@ static void execlists_reset(struct intel_engine_cs *engine, bool stalled)
        /* Following the reset, we need to reload the CSB read/write pointers */
        reset_csb_pointers(&engine->execlists);
 
-       GEM_TRACE("%s stalled? %s\n", engine->name, yesno(stalled));
        if (!rq)
                goto out_unlock;
 
index cc4fcd89b845bf456fe2691b2af0b197f9640b92..f26f5cc1584c949616282c9bff0382932de05502 100644 (file)
@@ -757,8 +757,6 @@ static void reset_ring(struct intel_engine_cs *engine, bool stalled)
                }
        }
 
-       GEM_TRACE("%s stalled? %s\n", engine->name, yesno(stalled));
-
        /*
         * The guilty request will get skipped on a hung engine.
         *