[Intel-gfx] [PATCH i-g-t v2] tests/perf_pmu: Handle CPU hotplug failures better

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


Quoting Petri Latvala (2018-03-02 11:12:19)
> On Wed, Feb 28, 2018 at 10:05:55AM +0000, Tvrtko Ursulin wrote:
> > +/**
> > + * igt_fatal_error:
> > + *
> > + * 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");
> > +             igt_sysrq_reboot();
> > +     } else {
> > +             igt_warn("FATAL ERROR");
> > +             for (;;)
> > +                     sleep(60);

s/sleep/pause/
-Chris


More information about the Intel-gfx mailing list