From ec872b7dc1fe68d153aaceaf74d55865719a76da Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Fri, 2 Mar 2018 11:55:36 +0000 Subject: tests/perf_pmu: Handle CPU hotplug failures better CPU hotplug, especially CPU0, can be flaky on commodity hardware. To improve test reliability and reponse times when testing larger runs we need to handle those cases better. Handle failures to off-line a CPU by immediately skipping the test, and failures to on-line a CPU by immediately rebooting the machine. This patch includes igt_sysrq_reboot implementation from Chris Wilson. v2: Halt by default, reboot if env variable IGT_REBOOT_ON_FATAL_ERROR is set. (Petri Latvala) v3: Add missign docs and update stale comment. (Petri Latvala) v4: Use pause instead of sleep. (Chris Wilson) v5: Newlines! (Chris Wilson) Signed-off-by: Tvrtko Ursulin Cc: Chris Wilson Cc: Petri Latvala Cc: Tomi Sarvela Reviewed-by: Petri Latvala --- lib/meson.build | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/meson.build') diff --git a/lib/meson.build b/lib/meson.build index a9e53689..b3b8b14a 100644 --- a/lib/meson.build +++ b/lib/meson.build @@ -14,6 +14,7 @@ lib_sources = [ 'igt_stats.c', 'igt_syncobj.c', 'igt_sysfs.c', + 'igt_sysrq.c', 'igt_vgem.c', 'igt_x86.c', 'instdone.c', -- cgit v1.2.3