[Intel-gfx] [PATCH] drm/i915: Include the DRIVER_DATE in the error state

Chris Wilson chris at chris-wilson.co.uk
Wed Aug 7 11:38:27 UTC 2019


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 at chris-wilson.co.uk>
---
 drivers/gpu/drm/i915/i915_gpu_error.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/gpu/drm/i915/i915_gpu_error.c b/drivers/gpu/drm/i915/i915_gpu_error.c
index 9eee99bdc514..78f431d527ce 100644
--- a/drivers/gpu/drm/i915/i915_gpu_error.c
+++ b/drivers/gpu/drm/i915/i915_gpu_error.c
@@ -687,6 +687,7 @@ static void __err_print_to_sgl(struct drm_i915_error_state_buf *m,
 		   init_utsname()->release,
 		   init_utsname()->machine);
 	ts = ktime_to_timespec64(error->time);
+	err_printf(m, "Driver: %s\n", DRIVER_DATE);
 	err_printf(m, "Time: %lld s %ld us\n",
 		   (s64)ts.tv_sec, ts.tv_nsec / NSEC_PER_USEC);
 	ts = ktime_to_timespec64(error->boottime);
-- 
2.23.0.rc1



More information about the Intel-gfx mailing list