diff mbox series

[i-g-t,2/2] test/i915/gem_exec_await: prefer gem_mmap__device_coherent

Message ID 20220221140342.2487679-2-matthew.auld@intel.com (mailing list archive)
State New, archived
Headers show
Series [i-g-t,1/2] test/i915/gem_ctx_shared: prefer gem_mmap__device_coherent | expand

Commit Message

Matthew Auld Feb. 21, 2022, 2:03 p.m. UTC
Make it play nice on at least DG1.

Signed-off-by: Matthew Auld <matthew.auld@intel.com>
Cc: Thomas Hellström <thomas.hellstrom@linux.intel.com>
---
 tests/i915/gem_exec_await.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/tests/i915/gem_exec_await.c b/tests/i915/gem_exec_await.c
index bf8eb682..fe176595 100644
--- a/tests/i915/gem_exec_await.c
+++ b/tests/i915/gem_exec_await.c
@@ -126,8 +126,8 @@  static void wide(int fd, const intel_ctx_t *ctx, int ring_size,
 		if (ahnd)
 			exec[e].exec[0].flags = EXEC_OBJECT_PINNED;
 
-		exec[e].cmd = gem_mmap__wc(fd, exec[e].exec[0].handle,
-					   0, 4096, PROT_WRITE);
+		exec[e].cmd = gem_mmap__device_coherent(fd, exec[e].exec[0].handle,
+							0, 4096, PROT_WRITE);
 
 		gem_set_domain(fd, exec[e].exec[0].handle,
 			       I915_GEM_DOMAIN_WC, I915_GEM_DOMAIN_WC);