Commit cdf0ea82 authored by Chris Wilson's avatar Chris Wilson 🤔

igt/gem_cpu_reloc: Terminate the bad batch

gen2 will read the batch up until it reaches the end as defined by the
MI_BATCH_BUFFER_END command. Play nice and make sure that it does end on a
MI_BB_END.
Signed-off-by: Chris Wilson's avatarChris Wilson <chris@chris-wilson.co.uk>
parent be6bb4ce
......@@ -200,6 +200,7 @@ igt_simple_main
bad = gem_create(fd, 4096);
gem_write(fd, bad, 0, hang, sizeof(hang));
gem_write(fd, bad, 4096-sizeof(end), end, sizeof(end));
/* launch the newly created batch */
copy(fd, handles[i], noop, bad);
......@@ -215,6 +216,7 @@ igt_simple_main
bad = gem_create(fd, 4096);
gem_write(fd, bad, 0, hang, sizeof(hang));
gem_write(fd, bad, 4096-sizeof(end), end, sizeof(end));
/* launch the newly created batch */
copy(fd, handles[count-i-1], noop, bad);
......@@ -230,6 +232,7 @@ igt_simple_main
bad = gem_create(fd, 4096);
gem_write(fd, bad, 0, hang, sizeof(hang));
gem_write(fd, bad, 4096-sizeof(end), end, sizeof(end));
/* launch the newly created batch */
gem_set_domain(fd, handles[i],
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment