]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Retire oldest completed request before allocating next
authorChris Wilson <chris@chris-wilson.co.uk>
Wed, 20 Jul 2016 08:21:09 +0000 (09:21 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Wed, 20 Jul 2016 08:29:53 +0000 (09:29 +0100)
commit0987dac19465ebab90832ae1b858491b52592165
tree696a3be9872caa8e2b7366390a202ff733f3f01c
parent60e2933103824e37b2d56a741c8945f1310d93a7
drm/i915: Retire oldest completed request before allocating next

In order to keep the memory allocated for requests reasonably tight, try
to reuse the oldest request (so long as it is completed and has no
external references) for the next allocation.

v2: Throw in a comment to hopefully make sure no one mistakes the
optimistic retirement of the oldest request for simply stealing it.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Mika Kuoppala <mika.kuoppala@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1469002875-2335-2-git-send-email-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_gem_request.c