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

Mika Kuoppala mika.kuoppala at linux.intel.com
Wed Aug 7 13:25:54 UTC 2019


Chris Wilson <chris at chris-wilson.co.uk> writes:

> 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>

Reviewed-by: Mika Kuoppala <mika.kuoppala at linux.intel.com>

> ---
>  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
>
> _______________________________________________
> Intel-gfx mailing list
> Intel-gfx at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/intel-gfx


More information about the Intel-gfx mailing list