]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Preallocate enough space for the average request
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 28 Apr 2016 08:56:49 +0000 (09:56 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Thu, 28 Apr 2016 11:17:32 +0000 (12:17 +0100)
commit0615594a12c1e4d473159cf348f7bb41f348545f
tree56b8f081f8c0dd4f4e49d90d59930fd0b7c66e84
parent3a142f52d8e20a03c9c632eccdb2e7e16ebaf858
drm/i915: Preallocate enough space for the average request

Rather than being interrupted when we run out of space halfway through
the request, and having to restart from the beginning (and returning to
userspace), flush a little more free space when we prepare the request.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Tvrtko Ursulin <tvrtko.ursulin@linux.intel.com>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1461833819-3991-15-git-send-email-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/intel_lrc.c
drivers/gpu/drm/i915/intel_ringbuffer.c