diff options
author | Chris Wilson <[email protected]> | 2019-10-09 11:09:54 +0100 |
---|---|---|
committer | Rodrigo Vivi <[email protected]> | 2019-10-09 14:39:30 -0700 |
commit | 749085a2131f7e328dd33635eb3d37b519f451f9 (patch) | |
tree | 6c79d26a978e6cf59984224aebc03a3f89d6aae0 /lib/memory-notifier-error-inject.c | |
parent | 68184eb7b09640ac84aeefe31923d70d1fa07292 (diff) |
drm/i915/execlists: Protect peeking at execlists->active
Now that we dropped the engine->active.lock serialisation from around
process_csb(), direct submission can run concurrently to the interrupt
handler. As such execlists->active may be advanced as we dequeue,
dropping the reference to the request. We need to employ our RCU request
protection to ensure that the request is not freed too early.
Fixes: df403069029d ("drm/i915/execlists: Lift process_csb() out of the irq-off spinlock")
Signed-off-by: Chris Wilson <[email protected]>
Cc: Mika Kuoppala <[email protected]>
Cc: Tvrtko Ursulin <[email protected]>
Reviewed-by: Tvrtko Ursulin <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
(cherry picked from commit c949ae431467764277cdd88d7c26ff963a9db40a)
Signed-off-by: Rodrigo Vivi <[email protected]>
Diffstat (limited to 'lib/memory-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions