drm/i915: Include the DRIVER_DATE in the error state
authorChris Wilson <chris@chris-wilson.co.uk>
Wed, 7 Aug 2019 11:38:27 +0000 (12:38 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Wed, 7 Aug 2019 13:30:59 +0000 (14:30 +0100)
For forklifted frankenkernels, the reported kernel version has no
bearing on the actual driver version. Include our own driver date that
is updated every time we tag drm-intel-next.

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

index ad5f7bee6852ef944e83a2157b08622d33fc8dfa..86333cd561946e63df049746dd177cbb94e13146 100644 (file)
@@ -686,6 +686,7 @@ static void __err_print_to_sgl(struct drm_i915_error_state_buf *m,
        err_printf(m, "Kernel: %s %s\n",
                   init_utsname()->release,
                   init_utsname()->machine);
+       err_printf(m, "Driver: %s\n", DRIVER_DATE);
        ts = ktime_to_timespec64(error->time);
        err_printf(m, "Time: %lld s %ld us\n",
                   (s64)ts.tv_sec, ts.tv_nsec / NSEC_PER_USEC);