Chris Wilson <chris@xxxxxxxxxxxxxxxxxx> writes: > After reading the event status from the CSB, write back 0 (an invalid > value) so we can detect if the HW should signal a new event without > writing the event in the future. > > References: https://bugs.freedesktop.org/show_bug.cgi?id=108315 > Signed-off-by: Chris Wilson <chris@xxxxxxxxxxxxxxxxxx> > Cc: Mika Kuoppala <mika.kuoppala@xxxxxxxxxxxxxxx> > --- > drivers/gpu/drm/i915/intel_lrc.c | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/drivers/gpu/drm/i915/intel_lrc.c b/drivers/gpu/drm/i915/intel_lrc.c > index 22b57b8926fc..126efe20d2d6 100644 > --- a/drivers/gpu/drm/i915/intel_lrc.c > +++ b/drivers/gpu/drm/i915/intel_lrc.c > @@ -910,6 +910,9 @@ static void process_csb(struct intel_engine_cs *engine) > execlists->active); > > status = buf[2 * head]; > + GEM_BUG_ON(!status); Assuming we still have a timing issue in here, how about we poll a little until status != 0 and then continue with warning? We could recover by finding the 'bit late' status, instead of oopsing out. > + GEM_DEBUG_EXEC(WRITE_ONCE(*(u32 *)(buf + 2 * head), 0)); What I am afraid here is that we change the timing and cache dynamics for our debug builds so that we bury the pesky thing. Perhaps I am wandering too far but lets consider for the csb loop: read head,tail; rmb(); for_each_csb() { 64 bit read 64 bit write to zero it, unconditionally act_on_it() } Too heavy? Thanks, Mika > + > if (status & (GEN8_CTX_STATUS_IDLE_ACTIVE | > GEN8_CTX_STATUS_PREEMPTED)) > execlists_set_active(execlists, > -- > 2.19.1 _______________________________________________ Intel-gfx mailing list Intel-gfx@xxxxxxxxxxxxxxxxxxxxx https://lists.freedesktop.org/mailman/listinfo/intel-gfx