]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Print error state times relative to capture
authorMika Kuoppala <mika.kuoppala@linux.intel.com>
Mon, 30 Apr 2018 07:52:59 +0000 (10:52 +0300)
committerMika Kuoppala <mika.kuoppala@linux.intel.com>
Wed, 2 May 2018 08:04:47 +0000 (11:04 +0300)
commitc5236451ec7645cd29dd80c9de0b78ade2428ec6
tree83dae7f876eedea2175ba209374c167cb48cd196
parent7f1e690f5bc95b7cbea42379c985c56da2659d6d
drm/i915: Print error state times relative to capture

Using plain jiffies in error state output makes the output
time differences relative to the current system time. This
is wrong as it makes output time differences dependent
of when the error state is printed rather than when it is
captured.

Store capture jiffies into error state and use it
when outputting the state to fix time differences output.

v2: use engine timestamp as epoch, output formatting (Chris)
v3: pass epoch to print_engine/request (Chris)

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