]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita9cd28e29d9cb61f5217b97684f7ad113ee5c680
tree1f5c9e82c88bad8eafb368b0021860301147d00a
parentae245449f53fe8028a6ada4eaccfdcfe2837f91c
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