diff options
author | Maarten Lankhorst <[email protected]> | 2021-03-23 16:50:52 +0100 |
---|---|---|
committer | Daniel Vetter <[email protected]> | 2021-03-24 17:59:37 +0100 |
commit | 5b0a78ec0b5738046ab170e67cc28491cbee3f3f (patch) | |
tree | ea4a8045daffb3301e2b55284d2fea24740bda86 /drivers/gpu/drm/i915/selftests/i915_request.c | |
parent | fd995a3cc432da2d18c28c2731f41da9b751897b (diff) |
drm/i915: Move gt_revoke() slightly
We get a lockdep splat when the reset mutex is held, because it can be
taken from fence_wait. This conflicts with the mmu notifier we have,
because we recurse between reset mutex and mmap lock -> mmu notifier.
Remove this recursion by calling revoke_mmaps before taking the lock.
The reset code still needs fixing, as taking mmap locks during reset
is not allowed.
Signed-off-by: Maarten Lankhorst <[email protected]>
Reviewed-by: Thomas Hellström <[email protected]>
[danvet: Add FIXME.]
Signed-off-by: Daniel Vetter <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'drivers/gpu/drm/i915/selftests/i915_request.c')
0 files changed, 0 insertions, 0 deletions