Skip to content

Commit

Permalink
drm/i915/selftests: Skip mixed page exhaustion if only small pages av…
Browse files Browse the repository at this point in the history
…ailable

If we only have 4k pages, we can't mix together different combinations
of hugepages to see if the world burns. However, as the loops did
nothing, we never set err to 0 and reported ENODEV aborting the test.
Teach the test to skip instead.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Matthew Auld <matthew.william.auld@gmail.com>
Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20171107110559.6098-1-chris@chris-wilson.co.uk
Reviewed-by: Matthew Auld <matthew.william.auld@gmail.com>
  • Loading branch information
Chris Wilson committed Nov 7, 2017
1 parent 1a1f128 commit f6d0304
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/gpu/drm/i915/selftests/huge_pages.c
Original file line number Diff line number Diff line change
Expand Up @@ -1159,6 +1159,9 @@ static int igt_ppgtt_exhaust_huge(void *arg)
int n, i;
int err = -ENODEV;

if (supported == I915_GTT_PAGE_SIZE_4K)
return 0;

/*
* Sanity check creating objects with a varying mix of page sizes --
* ensuring that our writes lands in the right place.
Expand Down

0 comments on commit f6d0304

Please sign in to comment.