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

Even though userptr objects are always coherent with the GPU, with no
way for userspace to change this with the set_caching ioctl, even on
non-LLC platforms, there is still the 'Bypass LCC' mocs setting, which
might permit reading the contents of main memory directly.

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-5-matthew.auld@intel.com
drivers/gpu/drm/i915/gem/i915_gem_userptr.c