[PATCH i-g-t v7 30/33] tests/api_intel_bb: Don't assume bb address for relocs. To be squashed.

Zbigniew Kempczyński zbigniew.kempczynski at intel.com
Mon Oct 19 11:31:40 UTC 2020


We cannot assume kernel will give us same address for recreated bb.

Signed-off-by: Zbigniew Kempczyński <zbigniew.kempczynski at intel.com>
---
 tests/i915/api_intel_bb.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/tests/i915/api_intel_bb.c b/tests/i915/api_intel_bb.c
index 8a84ec0d..e1b8e0eb 100644
--- a/tests/i915/api_intel_bb.c
+++ b/tests/i915/api_intel_bb.c
@@ -747,7 +747,11 @@ static void blit(struct buf_ops *bops,
 	igt_debug("src2 presumed offset: 0x%"PRIx64"\n", poff2_src);
 	igt_debug("dst2 presumed offset: 0x%"PRIx64"\n", poff2_dst);
 
-	igt_assert(poff_bb == poff2_bb);
+	/*
+	 * In intel_bb reset path we recreate bb handle so we cannot assume
+	 * we will have same address for relocations. We can enforce it
+	 * when we use allocator and softpin. */
+	igt_assert(do_relocs || poff_bb == poff2_bb);
 	igt_assert(poff_src == poff2_src);
 	igt_assert(poff_dst == poff2_dst);
 
-- 
2.26.0



More information about the Intel-gfx-trybot mailing list