drm/i915/selftests: try to rein in alloc_smoke
authorMatthew Auld <matthew.auld@intel.com>
Thu, 5 Mar 2020 20:47:11 +0000 (20:47 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 6 Mar 2020 14:33:15 +0000 (14:33 +0000)
commit1fe3818d17c9a75355989d5dc833db5ab0ee0c24
tree56448b8fb8a38bf7fe41c73a773a3c5ba1554755
parentf4b1b92f411ea491954de9f803d693d943deb39c
drm/i915/selftests: try to rein in alloc_smoke

Depending on RNG we might try to fill an 8G region for every possible
order, using the smallest possible chunk size of 4K, which seems to be
very slow. Try to remedy the situation by adding an overall timeout for
the test, while also selecting each order level in a random fashion.

Closes: https://gitlab.freedesktop.org/drm/intel/issues/1310
Signed-off-by: Matthew Auld <matthew.auld@intel.com>
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: https://patchwork.freedesktop.org/patch/msgid/20200305204711.217783-2-matthew.auld@intel.com
drivers/gpu/drm/i915/selftests/i915_buddy.c