]> 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)
commit7d78d641b5b19221d43bc74295ee0c6d3dd57928
tree1ede623cf5826398288ef4a28b9f8f4798c884e9
parent81a698e02b26c573f5eba92ba0d3ba15817e8827
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