Re: [Intel-gfx] [PATCH] drm/i915/gt: Mark up racy read of intel_ring.head

2020-04-08 Thread Mika Kuoppala
Chris Wilson writes: > The intel_ring.head is updated as the requests are retired, but is > sampled at any time as we submit requests. Furthermore, it tracks > RING_HEAD which is inherently asynchronous. > > [ 148.630314] BUG: KCSAN: data-race in execlists_dequeue [i915] / > i915_request_retire

[Intel-gfx] [PATCH] drm/i915/gt: Mark up racy read of intel_ring.head

2020-04-07 Thread Chris Wilson
The intel_ring.head is updated as the requests are retired, but is sampled at any time as we submit requests. Furthermore, it tracks RING_HEAD which is inherently asynchronous. [ 148.630314] BUG: KCSAN: data-race in execlists_dequeue [i915] / i915_request_retire [i915] [ 148.630349] [ 148.6303