]> git.baikalelectronics.ru Git - 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)
commit806848dfbe4cbe9fa7e35267b00722996ab398e5
tree46c7ba2f992813bc80aeee8c476eac9816b6b93d
parent4771a939688b0354784e6c99b511f63909a6e4df
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