OSDN Git Service

drm/i915/gem: Flush all the reloc_gpu batch
authorChris Wilson <chris@chris-wilson.co.uk>
Mon, 6 Apr 2020 11:48:21 +0000 (12:48 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Mon, 6 Apr 2020 14:58:33 +0000 (15:58 +0100)
commit30c88a47f1abd5744908d3681f54dcf823fe2a12
treeac0866e56f2374e16653f1638f82b8bcaca320d2
parentb4df5405f3e67e408554c9fd837faa3789b2ac32
drm/i915/gem: Flush all the reloc_gpu batch

__i915_gem_object_flush_map() takes a byte range, so feed it the written
bytes and do not mistake the u32 index as bytes!

Fixes: a679f58d0510 ("drm/i915: Flush pages on acquisition")
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Matthew Auld <matthew.william.auld@gmail.com>
Cc: <stable@vger.kernel.org> # v5.2+
Reviewed-by: Matthew Auld <matthew.william.auld@gmail.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200406114821.10949-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/gem/i915_gem_execbuffer.c