[Intel-gfx] [PATCH 2/2] drm/i915/selftests: Exercise cross-process context isolation

Chris Wilson chris at chris-wilson.co.uk
Thu Jan 14 10:18:54 UTC 2021


Quoting Chris Wilson (2021-01-14 10:13:37)
> Quoting Chris Wilson (2021-01-14 09:26:39)
> > +       rq = record_registers(A, a, result[0], result[1], false, &sema);
> > +       if (IS_ERR(rq)) {
> > +               err = PTR_ERR(rq);
> > +               goto err_result1;
> > +       }
> > +
> > +       err = poison_registers(B, a, poison, false, &sema);
> 
> Hmm. Will want to add a synchronisation pointer before poisoning the
> registers, we want to make sure context A is active at the time.

Already waits for the poison in record_registers, between the first and
second reads!
-Chris


More information about the Intel-gfx mailing list