[igt-dev] [PATCH i-g-t] tests/i915/gem_exec_reloc: Added gem_require_mappable_ggtt to check mappable aperture
Arjun Melkaveri
arjun.melkaveri at intel.com
Mon Nov 30 01:44:46 UTC 2020
Added gem_require_mappable_ggtt to check mappable aperture.
This is to avoid any test crash that might happen
if mappable aperture is not avilable.
Cc: Chris Wilson <chris at chris-wilson.co.uk>
Cc: Tvrtko Ursulin <tvrtko.ursulin at intel.com>
Signed-off-by: Arjun Melkaveri <arjun.melkaveri at intel.com>
---
tests/i915/gem_exec_reloc.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/tests/i915/gem_exec_reloc.c b/tests/i915/gem_exec_reloc.c
index 8dcb24a6..596b1157 100644
--- a/tests/i915/gem_exec_reloc.c
+++ b/tests/i915/gem_exec_reloc.c
@@ -1217,6 +1217,7 @@ igt_main
if (!(f->flags & NORELOC)) {
igt_subtest_f("%srange%s",
f->basic ? "basic-" : "", f->name) {
+ gem_require_mappable_ggtt(fd);
igt_while_interruptible(f->flags & INTERRUPTIBLE)
basic_range(fd, f->flags);
}
@@ -1264,6 +1265,7 @@ igt_main
}
igt_subtest_with_dynamic("basic-spin") {
+
__for_each_physical_engine(fd, e) {
igt_dynamic_f("%s", e->name)
active_spin(fd, e->flags);
@@ -1278,6 +1280,7 @@ igt_main
}
igt_subtest_with_dynamic("basic-many-active") {
+ gem_require_mappable_ggtt(fd);
__for_each_physical_engine(fd, e) {
igt_dynamic_f("%s", e->name)
many_active(fd, e->flags);
--
2.25.1
More information about the igt-dev
mailing list