]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Flush the existing fence before GGTT read/write
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 23 Aug 2019 15:39:44 +0000 (16:39 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 23 Aug 2019 18:44:21 +0000 (19:44 +0100)
commit7a0bc037294811cc27f1744ea442ce6bcd6cbe50
treea3580542341a2e26833cc2336710354cc9dc185d
parent2bf708ea480bea7191abd0b40ad41e7a17be9ed7
drm/i915: Flush the existing fence before GGTT read/write

Our fence management is lazy, very lazy. If the user marks an object as
untiled, we do not immediately flush the fence but merely mark it as
dirty. On the next use we have to remember to check and remove the fence,
by which time we hope it is idle and we do not have to wait.

v2: Throw away the old fence on the next ggtt_pin.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=111468
Fixes: 4ab755538322 ("drm/i915: Replace i915_vma_put_fence()")
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/20190823153944.20630-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_gem.c