[igt-dev] [i-g-t] test/i915/gem_exec_reloc: Drop reloc support for gen12+

Tejas Upadhyay tejaskumarx.surendrakumar.upadhyay at intel.com
Mon Mar 15 11:02:18 UTC 2021


i915 kernel driver is dropping reloc support gen12+. This change
will drop reloc support in gem_exec_reloc in IGT.

Ref : https://patchwork.kernel.org/project/dri-devel/patch/20210311162606.1045592-1-jason@jlekstrand.net/

Cc: Maarten Lankhorst<maarten.lankhorst at intel.com>
Signed-off-by: Tejas Upadhyay <tejaskumarx.surendrakumar.upadhyay at intel.com>
---
 tests/i915/gem_exec_reloc.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/tests/i915/gem_exec_reloc.c b/tests/i915/gem_exec_reloc.c
index 8d52960b..4c24f178 100644
--- a/tests/i915/gem_exec_reloc.c
+++ b/tests/i915/gem_exec_reloc.c
@@ -1478,6 +1478,8 @@ igt_main
 	igt_fixture {
 		fd = drm_open_driver_master(DRIVER_INTEL);
 		igt_require_gem(fd);
+		/* Don't use relocations on gen12+ */
+		igt_require(intel_gen(intel_get_drm_devid(fd)) < 12);
 	}
 
 	for (f = flags; f->name; f++) {
-- 
2.30.0



More information about the igt-dev mailing list