Skip to content
Snippets Groups Projects
Commit deab4e0b authored by Kamil Konieczny's avatar Kamil Konieczny
Browse files

i915/i915_suspend: run in subprocess to catch oom


Shrink subtest can end up with oom killing it. Create subprocess
and run it from there so it will at least get reported like:

dynamic child 0 pid:70254 died with signal 9, Killed
Subtest shrink: FAIL (23.906s)

dmesg reports:

[103335.337309] Out of memory: Killed process 70254 (i915_suspend)

Cc: Riana Tauro <riana.tauro@intel.com>
Cc: Anshuman Gupta <anshuman.gupta@intel.com>
Signed-off-by: default avatarKamil Konieczny <kamil.konieczny@linux.intel.com>
Reviewed-by: default avatarSai Gowtham Ch <sai.gowtham.ch@intel.com>
parent 71496b0d
No related branches found
No related tags found
No related merge requests found
Pipeline #815559 passed
......@@ -176,15 +176,22 @@ test_shrink(int fd, unsigned int mode)
void *mem;
gem_quiescent_gpu(fd);
igt_purge_vm_caches(fd);
mem = igt_get_total_pinnable_mem(&size);
igt_assert(mem != MAP_FAILED);
igt_multi_fork(child, 1) {
fd = gem_reopen_driver(fd);
igt_purge_vm_caches(fd);
igt_purge_vm_caches(fd);
igt_system_suspend_autoresume(mode, SUSPEND_TEST_NONE);
mem = igt_get_total_pinnable_mem(&size);
igt_assert(mem != MAP_FAILED);
munmap(mem, size);
igt_purge_vm_caches(fd);
igt_system_suspend_autoresume(mode, SUSPEND_TEST_NONE);
munmap(mem, size);
close(fd);
}
igt_waitchildren();
}
static void
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment