Commit f6d03042 authored by Chris Wilson's avatar Chris Wilson

drm/i915/selftests: Skip mixed page exhaustion if only small pages available

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: default avatarChris 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.ukReviewed-by: default avatarMatthew Auld <matthew.william.auld@gmail.com>
parent 1a1f1287
...@@ -1159,6 +1159,9 @@ static int igt_ppgtt_exhaust_huge(void *arg) ...@@ -1159,6 +1159,9 @@ static int igt_ppgtt_exhaust_huge(void *arg)
int n, i; int n, i;
int err = -ENODEV; int err = -ENODEV;
if (supported == I915_GTT_PAGE_SIZE_4K)
return 0;
/* /*
* Sanity check creating objects with a varying mix of page sizes -- * Sanity check creating objects with a varying mix of page sizes --
* ensuring that our writes lands in the right place. * ensuring that our writes lands in the right place.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment