[Intel-gfx] [PATCH] drm/i915: Record default HW state in the GPU error state

Joonas Lahtinen joonas.lahtinen at linux.intel.com
Mon Nov 27 12:02:03 UTC 2017


On Sun, 2017-11-26 at 22:09 +0000, Chris Wilson wrote:
> It may be of interest to both compare the active HW context against the
> default (or NULL) context, to see what has been changed and if either are
> corrupt.
> 
> Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>
> Cc: Mika Kuoppala <mika.kuoppala at linux.intel.com>

<SNIP>

> @@ -1414,6 +1417,23 @@ static void request_record_user_bo(struct drm_i915_gem_request *request,
>  	ee->user_bo_count = count;
>  }
>  
> +static struct drm_i915_error_object *
> +capture_object(struct drm_i915_private *dev_priv,
> +	       struct drm_i915_gem_object *obj)
> +{
> +	if (obj && i915_gem_object_has_pages(obj)) {
> +		struct i915_vma vma = {

fake_vma to put emphasis this is a trick?

Reviewed-by: Joonas Lahtinen <joonas.lahtinen at linux.intel.com>

Regards, Joonas
-- 
Joonas Lahtinen
Open Source Technology Center
Intel Corporation


More information about the Intel-gfx mailing list