[igt-dev] [PATCH i-g-t v3 22/22] HAX: change cpu mapping toward device one

Dominik Grzegorzek dominik.grzegorzek at intel.com
Fri Sep 18 10:58:56 UTC 2020


Please don't review!
Check if a mapping is the issue here, and if it is related to
this kernel bug: https://gitlab.freedesktop.org/drm/intel/-/issues/2328

Signed-off-by: Dominik Grzegorzek <dominik.grzegorzek at intel.com>
Cc: Zbigniew Kempczyński <zbigniew.kempczynski at intel.com>
Cc: Chris Wilson <chris at chris-wilson.co.uk>
---
 tests/i915/gem_pipe_control_store_loop.c | 2 +-
 tests/i915/gem_tiled_blits.c             | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/tests/i915/gem_pipe_control_store_loop.c b/tests/i915/gem_pipe_control_store_loop.c
index 548df76b..1cf8317f 100644
--- a/tests/i915/gem_pipe_control_store_loop.c
+++ b/tests/i915/gem_pipe_control_store_loop.c
@@ -145,7 +145,7 @@ store_pipe_control_loop(bool preuse_buffer, int timeout)
 
 		intel_bb_flush(ibb, ibb->ctx, 0);
 
-		intel_buf_cpu_map(target_buf, 1);
+		intel_buf_device_map(target_buf, 1);
 
 		buf = target_buf->ptr;
 		igt_assert(buf[0] == val);
diff --git a/tests/i915/gem_tiled_blits.c b/tests/i915/gem_tiled_blits.c
index 773b8d39..f36864b4 100644
--- a/tests/i915/gem_tiled_blits.c
+++ b/tests/i915/gem_tiled_blits.c
@@ -75,7 +75,7 @@ create_bo(struct buf_ops *bops, struct intel_bb *ibb, uint32_t x)
 				      I915_TILING_NONE, I915_COMPRESSION_NONE);
 
 	/* Fill the BO with dwords starting at start_val */
-	intel_buf_cpu_map(linear_buf, 1);
+	intel_buf_device_map(linear_buf, 1);
 	linear = linear_buf->ptr;
 	for (i = 0; i < 1024 * 1024 / 4; i++)
 		linear[i] = x++;
-- 
2.20.1



More information about the igt-dev mailing list