OSDN Git Service

drm/i915/gem: Limit the blitter sizes to ensure low preemption latency
authorChris Wilson <chris@chris-wilson.co.uk>
Mon, 28 Oct 2019 20:30:12 +0000 (20:30 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Mon, 28 Oct 2019 20:40:50 +0000 (20:40 +0000)
commit953d57eba5192aab638f2d102e0ee7af0c7b970c
tree631edf65a2cdba298c199693c00ffc21522c575c
parent19c17b763f0598baa72210dd3e5235ca243f0b6c
drm/i915/gem: Limit the blitter sizes to ensure low preemption latency

Currently we insert a arbitration point every 128MiB during a blitter
copy. At 8GiB/s, this is around 30ms. This is a little on the large side
if we need to inject a high priority work, so reduced it down to 8MiB or
roughly 1ms.

v2: Don't forget both fill/copy.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Matthew Auld <matthew.auld@intel.com>
Reviewed-by: Matthew Auld <matthew.auld@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20191028203012.14566-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/gem/i915_gem_object_blt.c