]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
drm/i915: Only force GGTT coherency w/a on required chipsets
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 20 Jul 2018 10:19:10 +0000 (11:19 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 20 Jul 2018 15:53:55 +0000 (16:53 +0100)
commit900ccf30f9e112b508a61b228bf014e3bea14bc4
tree46c7ba2f992813bc80aeee8c476eac9816b6b93d
parent35e900818e177d9ae34988d15461792582937924
drm/i915: Only force GGTT coherency w/a on required chipsets

Not all chipsets have an internal buffer delaying the visibility of
writes via the GGTT being visible by other physical paths, but we use a
very heavy workaround for all. We only need to apply that workarounds to
the chipsets we know suffer from the delay and the resulting coherency
issue.

Similarly, the same inconsistent coherency fouls up our ABI promise that
a write into a mmap_gtt is immediately visible to others. Since the HW
has made that a lie, let userspace know when that contract is broken.
(Not that userspace would want to use mmap_gtt on those chipsets for
other performance reasons...)

Testcase: igt/drv_selftest/live_coherency
Testcase: igt/gem_mmap_gtt/coherency
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=100587
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Reviewed-by: Tomasz Lis <tomasz.lis@intel.com>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180720101910.11153-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_drv.c
drivers/gpu/drm/i915/i915_gem.c
drivers/gpu/drm/i915/i915_pci.c
drivers/gpu/drm/i915/intel_device_info.h
include/uapi/drm/i915_drm.h