From ef51988ab287c86c2a324271eebf85a68979ac46 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Thu, 15 May 2014 13:23:44 +0100 Subject: [PATCH] igt/gem_bad_reloc: Restrict negative reloc tests to IVB+ The bug doesn't seem to occur on SNB, so we can skip the workaround and hence we do not expect the kernel to prevent invalid relocated offsets. Signed-off-by: Chris Wilson --- tests/gem_bad_reloc.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/gem_bad_reloc.c b/tests/gem_bad_reloc.c index 63bde6c..a2427c0 100644 --- a/tests/gem_bad_reloc.c +++ b/tests/gem_bad_reloc.c @@ -57,6 +57,8 @@ static int negative_reloc(int fd, unsigned flags) uint32_t buf[1024] = {MI_BATCH_BUFFER_END}; int i; + igt_require(intel_gen(intel_get_drm_devid(fd)) >= 7); + memset(&gem_exec, 0, sizeof(gem_exec)); gem_exec.handle = gem_create(fd, 4096); gem_write(fd, gem_exec.handle, 0, buf, 8); -- 2.7.4