[Intel-gfx] [PATCH 1/4] drm/i915: Lock out execlist tasklet while peeking inside for busy-stats

2018-02-13 Thread Tvrtko Ursulin
From: Chris Wilson In order to prevent a race condition where we may end up overaccounting the active state and leaving the busy-stats believing the GPU is 100% busy, lock out the tasklet while we reconstruct the busy state. There is no direct spinlock guard for the

[Intel-gfx] [PATCH 1/4] drm/i915: Lock out execlist tasklet while peeking inside for busy-stats

2018-02-13 Thread Tvrtko Ursulin
From: Chris Wilson In order to prevent a race condition where we may end up overaccounting the active state and leaving the busy-stats believing the GPU is 100% busy, lock out the tasklet while we reconstruct the busy state. There is no direct spinlock guard for the