drm/i915: Tidy batch pool logic
authorChris Wilson <chris@chris-wilson.co.uk>
Tue, 7 Apr 2015 15:20:35 +0000 (16:20 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 10 Apr 2015 06:56:04 +0000 (08:56 +0200)
commitde4e783a3f86f63b03303b463cd7ef885e14b476
tree1f5c9e82c88bad8eafb368b0021860301147d00a
parented9ddd25b2055d29e2106da2a6340e2614d71e86
drm/i915: Tidy batch pool logic

Move the madvise logic out of the execbuffer main path into the
relatively rare allocation path, making the execbuffer manipulation less
fragile.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_cmd_parser.c
drivers/gpu/drm/i915/i915_gem_batch_pool.c
drivers/gpu/drm/i915/i915_gem_execbuffer.c