diff options
author | Chris Wilson <[email protected]> | 2019-07-15 09:09:28 +0100 |
---|---|---|
committer | Jani Nikula <[email protected]> | 2019-07-29 15:49:54 +0300 |
commit | 982b1d002f16c2695871e005c4132060c836db56 (patch) | |
tree | c34fede876d0f26993c767e3945802d4bfeff717 /lib/mpi/mpi-internal.h | |
parent | 8f48de49795ca52f70c96558ccc6a0c174504779 (diff) |
drm/i915: Lock the engine while dumping the active request
We cannot let the request be retired and freed while we are trying to
dump it during error capture. It is not sufficient just to grab a
reference to the request, as during retirement we may free the ring
which we are also dumping. So take the engine lock to prevent retiring
and freeing of the request.
Reported-by: Alex Shumsky <[email protected]>
Fixes: 83c317832eb1 ("drm/i915: Dump the ringbuffer of the active request for debugging")
Signed-off-by: Chris Wilson <[email protected]>
Cc: Tvrtko Ursulin <[email protected]>
Cc: Joonas Lahtinen <[email protected]>
Cc: Alex Shumsky <[email protected]>
Reviewed-by: Tvrtko Ursulin <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
(cherry picked from commit cfe7288c276e359eebf057699fe86c2f8af14224)
Signed-off-by: Jani Nikula <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-internal.h')
0 files changed, 0 insertions, 0 deletions