[Intel-gfx] [PATCH] drm/i915/selftests: Force a failed engine reset

Chris Wilson chris at chris-wilson.co.uk
Tue Jan 12 20:43:52 UTC 2021


Quoting Mika Kuoppala (2021-01-12 17:07:13)
> > +                     if (count & 1) {
> > +                             err = intel_engine_reset(engine, NULL);
> > +                             if (err) {
> > +                                     GEM_TRACE_ERR("intel_engine_reset(%s) failed, err:%d\n",
> > +                                                   engine->name, err);
> > +                                     GEM_TRACE_DUMP();
> > +                                     break;
> > +                             }
> > +                     } else {
> > +                             force_reset_timeout(engine);
> > +                             err = intel_engine_reset(engine, NULL);
> 
> We dont promote to global here if the engine one fails?
> 
> If not, what mechanism then guarantees the request completion.

We are testing that a failed engine reset (due to the request
preparation timing out) does not affect the status of inflight work.
-Chris


More information about the Intel-gfx mailing list