]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Flush extra hard after writing relocations through the GTT
authorChris Wilson <chris@chris-wilson.co.uk>
Tue, 30 Jul 2019 11:21:51 +0000 (12:21 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 2 Aug 2019 07:38:45 +0000 (08:38 +0100)
commitf7962f7f42401e1f2767d46a657b34d319a8bd35
tree48c1c5940b49864a83e88cadcf6a9582986ddf6f
parentb7fdcb5a50d34b98b160cd1f9bc47afe6af7c36b
drm/i915: Flush extra hard after writing relocations through the GTT

Recently discovered in commit 297769a005da ("drm/i915: Use maximum write
flush for pwrite_gtt") was that we needed to our full write barrier
before changing the GGTT PTE to ensure that our indirect writes through
the GTT landed before the PTE changed (and the writes end up in a
different page). That also applies to our GGTT relocation path.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: stable@vger.kernel.org
Reviewed-by: Prathap Kumar Valsan <prathap.kumar.valsan@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190730112151.5633-4-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/gem/i915_gem_execbuffer.c