[PATCH i-g-t 2/3] tests/i915/gem_softpin: Place all batches at offset 0
Andrzej Turko
andrzej.turko at linux.intel.com
Mon Jul 5 11:17:30 UTC 2021
Place all batches at an offset, which is surely valid.
This is to debug the cause of execbuf returning ENOSPC.
Signed-off-by: Andrzej Turko <andrzej.turko at linux.intel.com>
---
tests/i915/gem_softpin.c | 13 +------------
1 file changed, 1 insertion(+), 12 deletions(-)
diff --git a/tests/i915/gem_softpin.c b/tests/i915/gem_softpin.c
index 0af1c4476..3d8b83494 100644
--- a/tests/i915/gem_softpin.c
+++ b/tests/i915/gem_softpin.c
@@ -913,18 +913,7 @@ static void submit(int fd, int gen,
j = 0;
for (unsigned i = 0; i < count; i++) {
obj.handle = batches[i].handle;
- obj.offset = __intel_allocator_alloc(ahnd, obj.handle,
- BATCH_SIZE,
- BATCH_ALIGNMENT,
- ALLOC_STRATEGY_HIGH_TO_LOW);
- for (; obj.offset == -1; j = (j+1) % count) {
- if (i != j)
- intel_allocator_free(ahnd, batches[j].handle);
- obj.offset = __intel_allocator_alloc(ahnd, obj.handle,
- BATCH_SIZE,
- BATCH_ALIGNMENT,
- ALLOC_STRATEGY_HIGH_TO_LOW);
- }
+ obj.offset = 0;
address = obj.offset + BATCH_SIZE - eb->batch_start_offset - 8;
n = 0;
batch[n] = MI_STORE_DWORD_IMM | (gen < 6 ? 1 << 22 : 0);
--
2.25.1
More information about the Intel-gfx-trybot
mailing list