From d63e72f0ad281f295b058a572741b995a5a0f64a Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Thu, 28 Jan 2016 17:02:11 +0000 Subject: [PATCH] igt/gem_cs_tlb: Increase BB start alignment to 64bytes Ironlake requires 64byte alignment for its MI_BATCH_BUFFER_START. Signed-off-by: Chris Wilson --- tests/gem_cs_tlb.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/gem_cs_tlb.c b/tests/gem_cs_tlb.c index bb507d82..0e629926 100644 --- a/tests/gem_cs_tlb.c +++ b/tests/gem_cs_tlb.c @@ -124,12 +124,12 @@ static void run_on_ring(int fd, unsigned ring_id, const char *ring_name) execobj.flags = EXEC_OBJECT_PINNED; sprintf(buf, "Testing %s cs tlb coherency: ", ring_name); - for (i = 0; i < BATCH_SIZE/8; i++) { - igt_progress(buf, i, BATCH_SIZE/8); + for (i = 0; i < BATCH_SIZE/64; i++) { + igt_progress(buf, i, BATCH_SIZE/64); execobj.handle = obj[i&1].handle; - obj[i&1].batch[i*2] = MI_BATCH_BUFFER_END; - execbuf.batch_start_offset = i*8; + obj[i&1].batch[i*64/4] = MI_BATCH_BUFFER_END; + execbuf.batch_start_offset = i*64; gem_execbuf(fd, &execbuf); }