[Intel-gfx] [PATCH] drm/i915/selftests: exercise_ggtt may have nothing to do

Chris Wilson chris at chris-wilson.co.uk
Thu Nov 16 15:48:48 UTC 2017


Quoting Chris Wilson (2017-11-15 15:25:58)
> When operating on the live_ggtt we have to find a usuable hole for our
> test. It is possible for there to be no hole we can use, so initialise
> the err to 0 for the early exit.
> 
> Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>
> ---
>  drivers/gpu/drm/i915/selftests/i915_gem_gtt.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/gpu/drm/i915/selftests/i915_gem_gtt.c b/drivers/gpu/drm/i915/selftests/i915_gem_gtt.c
> index d9560d8a6cc8..3dcf886a2802 100644
> --- a/drivers/gpu/drm/i915/selftests/i915_gem_gtt.c
> +++ b/drivers/gpu/drm/i915/selftests/i915_gem_gtt.c
> @@ -958,7 +958,7 @@ static int exercise_ggtt(struct drm_i915_private *i915,
>         u64 hole_start, hole_end, last = 0;
>         struct drm_mm_node *node;
>         IGT_TIMEOUT(end_time);
> -       int err = -ENODEV;
> +       int err = 0;
>  
>         mutex_lock(&i915->drm.struct_mutex);
>  restart:

Pushed with a flyby irc review from Joonas, thanks.
-Chris


More information about the Intel-gfx mailing list