summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2016-10-22 10:46:41 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2016-10-22 10:47:07 +0100
commit93437cba7fc87755dd27b4acdc021107301fbe8c (patch)
tree57a99dbc7cd01b685cc5118a7611c8600d241a2a /tests
parent79de3ddc1564d414a49e5d179fb3bf5577955e8e (diff)
igt/gem_mmap_gtt: Document the "expected" behaviour
References: https://bugs.freedesktop.org/show_bug.cgi?id=9431 Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'tests')
-rw-r--r--tests/gem_mmap_gtt.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/gem_mmap_gtt.c b/tests/gem_mmap_gtt.c
index 60034df3..cb79aeca 100644
--- a/tests/gem_mmap_gtt.c
+++ b/tests/gem_mmap_gtt.c
@@ -321,6 +321,10 @@ test_coherency(int fd)
cpu = gem_mmap__cpu(fd, handle, 0, OBJECT_SIZE, PROT_READ | PROT_WRITE);
set_domain_gtt(fd, handle);
+ /* On byt/bsw/bxt this detects an interesting behaviour where the
+ * CPU cannot flush the iobar and so the read may bypass the write.
+ * https://bugs.freedesktop.org/show_bug.cgi?id=94314
+ */
for (i = 0; i < OBJECT_SIZE / 64; i++) {
int x = 16*i + (i%16);
gtt[x] = i;