[Intel-gfx] [igt-dev] [PATCH igt 5/5] igt/gem_exec_fence: Exercise merging fences

Chris Wilson chris at chris-wilson.co.uk
Thu Mar 1 07:12:45 UTC 2018

Quoting Antonio Argenziano (2018-02-28 22:44:31)
> On 28/02/18 07:51, Chris Wilson wrote:
> > +     igt_assert(!gem_bo_busy(fd, obj.handle));
> > +     igt_assert_eq(sync_fence_status(all),
> > +                   flags & HANG ? -EIO : SYNC_FENCE_OK);
> Do you get -EIO also if only one engine hangs?

Yes. If the hang occurs on the fence (single request/engine, or many
requests/engines merged sync_file) we expect to be notified with -EIO.
That part of the contract is checked in gem_eio and should be checked in
gem_reset_stats (pretty much all that test should be doing, injecting a
hang on each ring, observing fence states and reset-stats for itself and
concurrent contexts).

More information about the Intel-gfx mailing list