[Intel-gfx] [PATCH 1/2] drm/i915/selftests: Provide a mock GPU reset routine

Chris Wilson chris at chris-wilson.co.uk
Fri Sep 27 21:09:42 UTC 2019


Quoting Chris Wilson (2019-09-27 20:14:42)
> -static reset_func intel_get_gpu_reset(struct drm_i915_private *i915)
> +static reset_func intel_get_gpu_reset(const struct intel_gt *gt)
>  {
> -       if (INTEL_GEN(i915) >= 8)
> +       struct drm_i915_private *i915 = gt->i915;
> +
> +       if (is_mock_gt(gt))

Actually this highlights an issue with using gt->awake == -1 as our
indicator.

Hmm. I wonder...
-Chris


More information about the Intel-gfx mailing list