]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/selftests: Try to recycle context allocations
authorChris Wilson <chris@chris-wilson.co.uk>
Tue, 27 Aug 2019 16:17:26 +0000 (17:17 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Wed, 28 Aug 2019 07:32:02 +0000 (08:32 +0100)
commit4cd6069f23bdf41c089b57c886e9349089b8e53a
tree96949f995c37aaeb6f7a48fe0297cb29c1af2ff6
parent7022fa8dd0fb4ff7ac2dc7b9a8ad9248fffea93d
drm/i915/selftests: Try to recycle context allocations

igt_ctx_exec allocates a new context for each iteration, keeping them
all allocated until the end. Instead, release the local ctx reference at
the end of each iteration, allowing ourselves to reap those if under
mempressure.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Matthew Auld <matthew.auld@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190827161726.3640-2-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/gem/selftests/i915_gem_context.c