summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2017-03-22 18:30:57 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2017-03-22 18:32:07 +0000
commitb1fa6c81a59862510a0fbbb9af758ae60ca1f459 (patch)
treed7b075562d31ff50705095911ecc27a1b60e89f2 /tests
parent83884e97e18739e3588c6467a210838099d42073 (diff)
igt/gem_exec_reloc: Double memory requirements
Worst case is that the kernel has to copy the entire incoming reloc[], so double the memory requirements. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'tests')
-rw-r--r--tests/gem_exec_reloc.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/gem_exec_reloc.c b/tests/gem_exec_reloc.c
index 152f606a..f3da7d0a 100644
--- a/tests/gem_exec_reloc.c
+++ b/tests/gem_exec_reloc.c
@@ -110,7 +110,10 @@ static void from_mmap(int fd, uint64_t size, enum mode mode)
uint64_t max, i;
int retry = 2;
- intel_require_memory(1, size, CHECK_RAM);
+ /* Worst case is that the kernel has to copy the entire incoming
+ * reloc[], so double the memory requirements.
+ */
+ intel_require_memory(2, size, CHECK_RAM);
memset(&obj, 0, sizeof(obj));
obj.handle = gem_create(fd, 4096);