]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/dmabuf: add paranoid flush-on-acquire
authorMatthew Auld <matthew.auld@intel.com>
Mon, 18 Oct 2021 17:45:03 +0000 (18:45 +0100)
committerMatthew Auld <matthew.auld@intel.com>
Wed, 20 Oct 2021 15:50:20 +0000 (16:50 +0100)
commit968b7d96eb73fb5e86c32cb251b0f2b31bc07120
treed5df711647fa572be5cbe288f3f30bb958ecfb0e
parent68eab9f16f619111d9c2689443da56088841e0a9
drm/i915/dmabuf: add paranoid flush-on-acquire

As pointed out by Thomas, we likely need to flush the pages here if the
GPU can read the page contents directly from main memory. Underneath we
don't know what the sg_table is pointing to, so just add a
wbinvd_on_all_cpus() here, for now.

Reported-by: Thomas Hellström <thomas.hellstrom@linux.intel.com>
Signed-off-by: Matthew Auld <matthew.auld@intel.com>
Cc: Thomas Hellström <thomas.hellstrom@linux.intel.com>
Reviewed-by: Thomas Hellström <thomas.hellstrom@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20211018174508.2137279-4-matthew.auld@intel.com
drivers/gpu/drm/i915/gem/i915_gem_dmabuf.c