diff options
author | Chris Wilson <[email protected]> | 2020-01-09 08:51:42 +0000 |
---|---|---|
committer | Chris Wilson <[email protected]> | 2020-01-09 12:50:26 +0000 |
commit | feed5c7be22c25e9c777c821bcf955a13cf010ab (patch) | |
tree | b5ae1cafdef8160c2790ce8a49c08783b64cc67f /drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | |
parent | 921f0c47f22891c90e2eb8f8612a083669c5d1ca (diff) |
drm/i915: Pin the context as we work on it
Since we now allow the intel_context_unpin() to run unserialised, we
risk our operations under the intel_context_lock_pinned() being run as
the context is unpinned (and thus invalidating our state). We can
atomically acquire the pin, testing to see if it is pinned in the
process, thus ensuring that the state remains consistent during the
course of the whole operation.
Fixes: 841350223816 ("drm/i915/gt: Drop mutex serialisation between context pin/unpin")
Signed-off-by: Chris Wilson <[email protected]>
Cc: Tvrtko Ursulin <[email protected]>
Reviewed-by: Mika Kuoppala <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_object.c')
0 files changed, 0 insertions, 0 deletions