drm/i915: Log HWS seqno consistently
authorTvrtko Ursulin <tvrtko.ursulin@intel.com>
Wed, 26 Sep 2018 14:50:33 +0000 (15:50 +0100)
committerTvrtko Ursulin <tvrtko.ursulin@intel.com>
Thu, 27 Sep 2018 10:27:13 +0000 (11:27 +0100)
We mix hexa- and decimal which is confusing when reading the logs. So make
the single odd one out instance decimal for consistency.

v2:
 * Do the intel_ringbuffer.c as well. (Chris Wilson)

Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: https://patchwork.freedesktop.org/patch/msgid/20180926145033.16318-1-tvrtko.ursulin@linux.intel.com
drivers/gpu/drm/i915/intel_lrc.c
drivers/gpu/drm/i915/intel_ringbuffer.c

index 4b28225320ff4a1ec1d82e6d757f872cd24e3134..ad93aa4b0a6eeafb86407fb6e48d94682680592d 100644 (file)
@@ -1904,7 +1904,7 @@ static void execlists_reset(struct intel_engine_cs *engine,
        unsigned long flags;
        u32 *regs;
 
-       GEM_TRACE("%s request global=%x, current=%d\n",
+       GEM_TRACE("%s request global=%d, current=%d\n",
                  engine->name, request ? request->global_seqno : 0,
                  intel_engine_get_seqno(engine));
 
index d0ef50bf930ad747abe7b4510521f8ad79923ba5..c092d5099ebf053e154eb2e6d57df6523a06a6d6 100644 (file)
@@ -574,7 +574,9 @@ static void skip_request(struct i915_request *rq)
 
 static void reset_ring(struct intel_engine_cs *engine, struct i915_request *rq)
 {
-       GEM_TRACE("%s seqno=%x\n", engine->name, rq ? rq->global_seqno : 0);
+       GEM_TRACE("%s request global=%d, current=%d\n",
+                 engine->name, rq ? rq->global_seqno : 0,
+                 intel_engine_get_seqno(engine));
 
        /*
         * Try to restore the logical GPU state to match the continuation