From b081257d749b536de857952037ad3d9bbe40ddad Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Fri, 5 Feb 2016 15:33:23 +0000 Subject: [PATCH] igt/gem_exec_alignment: Mark batch buffer as also requiring 48B If we completely fill the lower 4G of address space with our alignment objects, then we also need to mark the batch as requiring high-address. Though the kernel should be reordering in this case... Signed-off-by: Chris Wilson --- tests/gem_exec_alignment.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/gem_exec_alignment.c b/tests/gem_exec_alignment.c index d975846e..95494f74 100644 --- a/tests/gem_exec_alignment.c +++ b/tests/gem_exec_alignment.c @@ -103,6 +103,8 @@ static void many(int fd) execobj[i].flags = 1<<3; /* EXEC_OBJECT_SUPPORTS_48B_ADDRESS */ } execobj[i].handle = gem_create(fd, 4096); + if ((gtt_size-1) >> 32) + execobj[i].flags = 1<<3; /* EXEC_OBJECT_SUPPORTS_48B_ADDRESS */ gem_write(fd, execobj[i].handle, 0, &bbe, sizeof(bbe)); memset(&execbuf, 0, sizeof(execbuf));