[Intel-gfx] [PATCH 7/7] drm/i915/selftests: Context SSEU reconfiguration tests

Chris Wilson chris at chris-wilson.co.uk
Fri Dec 14 13:04:06 UTC 2018


Quoting Tvrtko Ursulin (2018-12-14 12:34:49)
> diff --git a/drivers/gpu/drm/i915/i915_gem_context.c b/drivers/gpu/drm/i915/i915_gem_context.c
> index 78d449b6245e..fcb19b6f635e 100644
> --- a/drivers/gpu/drm/i915/i915_gem_context.c
> +++ b/drivers/gpu/drm/i915/i915_gem_context.c
> @@ -1042,24 +1042,23 @@ gen8_modify_rpcs_gpu(struct intel_context *ce,
>         return ret;
>  }
>  
> -static int
> -i915_gem_context_reconfigure_sseu(struct i915_gem_context *ctx,
> -                                 struct intel_engine_cs *engine,
> -                                 struct intel_sseu sseu)
> +#if !IS_ENABLED(CONFIG_DRM_I915_SELFTEST)
> +static
> +#endif
> +int
> +__i915_gem_context_reconfigure_sseu(struct i915_gem_context *ctx,
> +                                   struct intel_engine_cs *engine,
> +                                   struct intel_sseu sseu)
>  {
> diff --git a/drivers/gpu/drm/i915/selftests/i915_gem_context.c b/drivers/gpu/drm/i915/selftests/i915_gem_context.c
> index 7d82043aff10..2b4eb5d05915 100644
> --- a/drivers/gpu/drm/i915/selftests/i915_gem_context.c
> +++ b/drivers/gpu/drm/i915/selftests/i915_gem_context.c

selftests/i915_gem_context.c a continuation of i915_gem_context.c so it
has sneaky access to statics.

See the #include "selftests/i915_gem_context.c" at the end.
-Chris


More information about the Intel-gfx mailing list