[igt-dev] [PATCH i-g-t v4] tests/perf_pmu: Handle CPU hotplug failures better

Chris Wilson chris at chris-wilson.co.uk
Fri Mar 2 11:42:48 UTC 2018


Quoting Tvrtko Ursulin (2018-03-02 11:39:12)
> +/**
> + * igt_fatal_error: Stop test execution on fatal errors
> + *
> + * Stop test execution or optionally, if the IGT_REBOOT_ON_FATAL_ERROR
> + * environment variable is set, reboot the machine.
> + *
> + * Since out test runner (piglit) does support fatal test exit codes, we
> + * implement the default behaviour by waiting endlessly.
> + */
> +void  __attribute__((noreturn)) igt_fatal_error(void)
> +{
> +       if (igt_check_boolean_env_var("IGT_REBOOT_ON_FATAL_ERROR", false)) {
> +               igt_warn("FATAL ERROR - REBOOTING");

+ "\n"

> +               igt_sysrq_reboot();
> +       } else {
> +               igt_warn("FATAL ERROR");

+ "\n"

igt_emergency() ? Would help with mapping kmsg into igt loglevels :)
-Chris


More information about the igt-dev mailing list