]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/selftests: Free the backing store between iterations
authorChris Wilson <chris@chris-wilson.co.uk>
Tue, 17 Jul 2018 08:23:34 +0000 (09:23 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Tue, 17 Jul 2018 09:28:03 +0000 (10:28 +0100)
commit34ed5f3020804ea10b1356de52b8b48e1f951c33
tree0be1cd8f0195aa17135fcd1130560f90df73eab2
parente7ad056270574e9d0cdea9c7589cce177028b81b
drm/i915/selftests: Free the backing store between iterations

In the huge pages tests, we may have lots of objects being trapped on
the freelist as we hold the struct_mutex allowing the free worker no
opportunity to recover the backing store. We also have stricter
requirements and the desire for large contiguous pages, further
increasing the allocation pressure. To reduce the chance of running out
of memory, we could either drop the mutex and flush the free worker, or
we could release the backing store directly. We do the latter in this
patch for simplicity.

References: https://bugs.freedesktop.org/show_bug.cgi?id=107254
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Matthew Auld <matthew.william.auld@gmail.com>
Reviewed-by: Matthew Auld <matthew.william.auld@gmail.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180717082334.18774-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/selftests/huge_pages.c