[Intel-gfx] [PATCH 17/27] drm/i915/guc: Flush G2H work queue during reset

2021-08-25 Thread Matthew Brost
It isn't safe to scrub for missing G2H or continue with the reset until all G2H processing is complete. Flush the G2H work queue during reset to ensure it is done running. No need to call the IRQ handler directly either as the scrubbing code can deal with any missing G2H. Fixes: eb5e7da736f3 ("drm

Re: [Intel-gfx] [PATCH 17/27] drm/i915/guc: Flush G2H work queue during reset

2021-08-24 Thread Daniele Ceraolo Spurio
On 8/24/2021 8:44 AM, Matthew Brost wrote: On Fri, Aug 20, 2021 at 05:25:41PM -0700, Daniele Ceraolo Spurio wrote: On 8/18/2021 11:16 PM, Matthew Brost wrote: It isn't safe to scrub for missing G2H or continue with the reset until all G2H processing is complete. Flush the G2H work queue dur

Re: [Intel-gfx] [PATCH 17/27] drm/i915/guc: Flush G2H work queue during reset

2021-08-24 Thread Matthew Brost
On Fri, Aug 20, 2021 at 05:25:41PM -0700, Daniele Ceraolo Spurio wrote: > > > On 8/18/2021 11:16 PM, Matthew Brost wrote: > > It isn't safe to scrub for missing G2H or continue with the reset until > > all G2H processing is complete. Flush the G2H work queue during reset to > > ensure it is done

Re: [Intel-gfx] [PATCH 17/27] drm/i915/guc: Flush G2H work queue during reset

2021-08-20 Thread Daniele Ceraolo Spurio
On 8/18/2021 11:16 PM, Matthew Brost wrote: It isn't safe to scrub for missing G2H or continue with the reset until all G2H processing is complete. Flush the G2H work queue during reset to ensure it is done running. Might be worth moving this patch closer to "drm/i915/guc: Process all G2H m

[Intel-gfx] [PATCH 17/27] drm/i915/guc: Flush G2H work queue during reset

2021-08-18 Thread Matthew Brost
It isn't safe to scrub for missing G2H or continue with the reset until all G2H processing is complete. Flush the G2H work queue during reset to ensure it is done running. Fixes: eb5e7da736f3 ("drm/i915/guc: Reset implementation for new GuC interface") Signed-off-by: Matthew Brost --- .../gpu/dr