summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/i915_gem.c
diff options
context:
space:
mode:
authorChris Wilson2017-02-13 18:15:32 +0100
committerChris Wilson2017-02-13 21:45:45 +0100
commit170594502cf591fd0789d7e5239937b1a87af4c6 (patch)
tree77757a21dd505037cace248c180f0d79f7c09d00 /drivers/gpu/drm/i915/i915_gem.c
parentdrm/i915: Test exhaustion of the mmap space (diff)
downloadkernel-qcow2-linux-170594502cf591fd0789d7e5239937b1a87af4c6.tar.gz
kernel-qcow2-linux-170594502cf591fd0789d7e5239937b1a87af4c6.tar.xz
kernel-qcow2-linux-170594502cf591fd0789d7e5239937b1a87af4c6.zip
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
Diffstat (limited to 'drivers/gpu/drm/i915/i915_gem.c')
-rw-r--r--drivers/gpu/drm/i915/i915_gem.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/i915_gem.c b/drivers/gpu/drm/i915/i915_gem.c
index ec455f47958a..82489ed10373 100644
--- a/drivers/gpu/drm/i915/i915_gem.c
+++ b/drivers/gpu/drm/i915/i915_gem.c
@@ -5026,4 +5026,5 @@ i915_gem_object_get_dma_address(struct drm_i915_gem_object *obj,
#include "selftests/mock_gem_device.c"
#include "selftests/huge_gem_object.c"
#include "selftests/i915_gem_object.c"
+#include "selftests/i915_gem_coherency.c"
#endif