]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitdcbdb1ef81809b7967ad2e4073a598915de3e370
tree56448b8fb8a38bf7fe41c73a773a3c5ba1554755
parent60ca71befebeaf261cc0736793b07ed1bdef1473
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