]> 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)
commit4c84c6b96d5e8882cba04c3d6b27d74f96a9023b
tree56448b8fb8a38bf7fe41c73a773a3c5ba1554755
parent56dda70b954dfbd245a74000b2ab5b7dc6400917
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