Re: [PATCH 2/2] drm/i915: Force an aliasing_ppgtt test for context execution

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Feb 09, 2017 at 10:02:49AM +0000, Chris Wilson wrote:
> Ensure that we minimally exercise the aliasing_ppgtt, even on a
> full-ppgtt, by allocating one and similarly creating a context to use
> it.
> 
> Signed-off-by: Chris Wilson <chris@xxxxxxxxxxxxxxxxxx>
> ---
>  drivers/gpu/drm/i915/selftests/i915_gem_context.c | 27 ++++++++++++++++++++---
>  1 file changed, 24 insertions(+), 3 deletions(-)
> 
> diff --git a/drivers/gpu/drm/i915/selftests/i915_gem_context.c b/drivers/gpu/drm/i915/selftests/i915_gem_context.c
> index 00257949e195..6d3eca8c0c09 100644
> --- a/drivers/gpu/drm/i915/selftests/i915_gem_context.c
> +++ b/drivers/gpu/drm/i915/selftests/i915_gem_context.c
> @@ -325,6 +325,7 @@ static int igt_ctx_exec(void *arg)
>  	IGT_TIMEOUT(end_time);
>  	LIST_HEAD(objects);
>  	unsigned int count, dw;
> +	bool first = true;
>  	int err;
>  
>  	/* Create a few different contexts (with different mm) and write
> @@ -344,9 +345,16 @@ static int igt_ctx_exec(void *arg)
>  	while (!time_after(jiffies, end_time)) {
>  		struct intel_engine_cs *engine;
>  		struct i915_gem_context *ctx;
> +		struct drm_i915_file_private *fpriv;
>  		unsigned int id;
>  
> -		ctx = i915_gem_create_context(i915, file->driver_priv);
> +		fpriv = file->driver_priv;
> +		if (first) {
> +			fpriv = NULL;
> +			first = false;
> +		}
> +
> +		ctx = i915_gem_create_context(i915, fpriv);

Hmm, I need a couple more tricks here :|
-Chris

-- 
Chris Wilson, Intel Open Source Technology Centre
_______________________________________________
Intel-gfx mailing list
Intel-gfx@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/intel-gfx




[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]
  Powered by Linux