]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Split batch pool into size buckets
authorChris Wilson <chris@chris-wilson.co.uk>
Tue, 7 Apr 2015 15:20:38 +0000 (16:20 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 10 Apr 2015 06:56:05 +0000 (08:56 +0200)
commitd745a1e92283309c5cd57580babcb3f4358f78b1
tree1ede623cf5826398288ef4a28b9f8f4798c884e9
parent0d7c7ce1801716b55fe7dc57d8cd0b6ae2984160
drm/i915: Split batch pool into size buckets

Now with the trimmed memcpy before the command parser, we try to
allocate many different sizes of batches, predominantly one or two
pages. We can therefore speed up searching for a good sized batch by
keeping the objects of buckets of roughly the same size.

v2: Add a comment about bucket sizes

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_debugfs.c
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/i915_gem.c
drivers/gpu/drm/i915/i915_gem_batch_pool.c
drivers/gpu/drm/i915/i915_gem_batch_pool.h