]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/selftests: Skip mixed page exhaustion if only small pages available
authorChris Wilson <chris@chris-wilson.co.uk>
Tue, 7 Nov 2017 11:05:59 +0000 (11:05 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Tue, 7 Nov 2017 17:50:33 +0000 (17:50 +0000)
commit7d4b64ca1825c6ad4d3364f4183be982b569b204
tree57022b0eaf06cb61d45161e3573b2c83ddd89558
parentefe98ce5a72037010d26ee1aa737a429c6dd2ed5
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: 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>
drivers/gpu/drm/i915/selftests/huge_pages.c