]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Test coherency of and barriers between cache domains
authorChris Wilson <chris@chris-wilson.co.uk>
Mon, 13 Feb 2017 17:15:32 +0000 (17:15 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Mon, 13 Feb 2017 20:45:45 +0000 (20:45 +0000)
commitcd3a1b4925482b519580af9cbed026fb7bb35f0b
tree77757a21dd505037cace248c180f0d79f7c09d00
parent80d2af731c91daea229d3a7ba94b07c41136fcb1
drm/i915: Test coherency of and barriers between cache domains

Write into an object using WB, WC, GTT, and GPU paths and make sure that
our internal API is sufficient to ensure coherent reads and writes.

v2: Avoid invalid free upon allocation error

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Matthew Auld <matthew.auld@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20170213171558.20942-21-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_gem.c
drivers/gpu/drm/i915/i915_selftest.h
drivers/gpu/drm/i915/selftests/i915_gem_coherency.c [new file with mode: 0644]
drivers/gpu/drm/i915/selftests/i915_live_selftests.h