diff options
author | Chris Wilson <[email protected]> | 2018-02-13 09:57:44 +0000 |
---|---|---|
committer | Rodrigo Vivi <[email protected]> | 2018-02-13 16:55:55 -0800 |
commit | edb76b01ac1629bfe17158bea56fcc16bfb57854 (patch) | |
tree | 62d149e960539e0b3df202aca2a19a17a6b68573 /scripts/gdb | |
parent | 117172c8f9d40ba1de8cb35c6e614422faa03330 (diff) |
drm/i915: Lock out execlist tasklet while peeking inside for busy-stats
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 execlists->port[], so we need to
utilise tasklet_disable() as a synchronous barrier to prevent it, the
only writer to execlists->port[], from running at the same time as the
enable.
Fixes: 4900727d35bb ("drm/i915/pmu: Reconstruct active state on starting busy-stats")
Signed-off-by: Chris Wilson <[email protected]>
Cc: Tvrtko Ursulin <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Reviewed-by: Tvrtko Ursulin <[email protected]>
(cherry picked from commit 99e48bf98dd036090b480a12c39e8b971731247e)
Signed-off-by: Rodrigo Vivi <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'scripts/gdb')
0 files changed, 0 insertions, 0 deletions