Re: [Intel-gfx] [PATCH] drm/i915: Clear lost context-switch interrupts across reset

2017-08-09 Thread Chris Wilson
Quoting Dong, Chuanxiao (2017-08-09 01:26:00) > > -Original Message- > > From: Thierry, Michel > > Sent: Tuesday, August 8, 2017 1:40 AM > > To: Chris Wilson ; intel-gfx@lists.freedesktop.org > > Cc: Dong, Chuanxiao ; Ursulin, Tvrtko > >

Re: [Intel-gfx] [PATCH] drm/i915: Clear lost context-switch interrupts across reset

2017-08-08 Thread Dong, Chuanxiao
> -Original Message- > From: Thierry, Michel > Sent: Tuesday, August 8, 2017 1:40 AM > To: Chris Wilson ; intel-gfx@lists.freedesktop.org > Cc: Dong, Chuanxiao ; Ursulin, Tvrtko > ; Winiarski, Michal

Re: [Intel-gfx] [PATCH] drm/i915: Clear lost context-switch interrupts across reset

2017-08-07 Thread Michel Thierry
On 8/7/2017 5:19 AM, Chris Wilson wrote: During a global reset, we disable the irq. As we disable the irq, the hardware may be raising a GT interrupt that we then ignore, leaving it pending in the GTIIR. After the reset, we then re-enable the irq, triggering the pending interrupt. However, that

[Intel-gfx] [PATCH] drm/i915: Clear lost context-switch interrupts across reset

2017-08-07 Thread Chris Wilson
During a global reset, we disable the irq. As we disable the irq, the hardware may be raising a GT interrupt that we then ignore, leaving it pending in the GTIIR. After the reset, we then re-enable the irq, triggering the pending interrupt. However, that interrupt was for the stale state from