]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Avoid vmallocing a buffer for the relocations
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 14 Oct 2010 11:10:41 +0000 (12:10 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Tue, 19 Oct 2010 08:18:36 +0000 (09:18 +0100)
commita3bde67736a9fc0f4c5f27b56c6223859394ef19
tree1e9e3f948ca2f15a1c98c76f1307f87174fd7252
parent54e6e292767e12822a47ad19bd7150760bf69209
drm/i915: Avoid vmallocing a buffer for the relocations

... perform an access validation check up front instead and copy them in
on-demand, during i915_gem_object_pin_and_relocate(). As around 20% of
the CPU overhead may be spent inside vmalloc for the relocation entries
when submitting an execbuffer [for x11perf -aa10text], the savings are
considerable and result in around a 10% throughput increase [for glyphs].

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
drivers/gpu/drm/i915/i915_gem.c