BLB ELK GDG ILK: All tests - dmesg-warn - is trying to acquire lock at: i915_vma_unbind but task is already holding lock at: unmap_vmas
<4> [170.045235] ======================================================
<4> [170.045248] softirqs last enabled at (509618): [<ffffffff8ae00395>] __do_softirq+0x395/0x49e
<4> [170.045251] softirqs last disabled at (509609): [<ffffffff8a0c1ada>] irq_exit+0xba/0xc0
<4> [170.045253] WARNING: possible circular locking dependency detected
<4> [170.045255] 5.7.0-rc4-gc0be14b9502e54-drmtip_495+ #1 Tainted: G U
<4> [170.045270] ------------------------------------------------------
<4> [170.045274] gem_userptr_bli/1097 is trying to acquire lock:
<4> [170.045278] ffff8cd727429d80 (&vm->mutex){+.+.}-{3:3}, at: i915_vma_unbind+0xa6/0x120 [i915]
<4> [170.045423]
but task is already holding lock:
<4> [170.045427] ffffffff8b4727c0 (mmu_notifier_invalidate_range_start){+.+.}-{0:0}, at: unmap_vmas+0x0/0x150
<4> [170.045436]
GDG: igt@gem_partial_pwrite_pread@write-snoop - dmesg-warn - trying to acquire lock at: unmap_mapping_pages but task is already holding lock at: i915_vma_unbind
<4> [325.947513] ======================================================
<4> [325.947520] WARNING: possible circular locking dependency detected
<4> [325.947528] 5.7.0-rc3-gd9cb80101890e2-drmtip_491+ #1 Tainted: G U
<4> [325.947535] ------------------------------------------------------
<4> [325.947541] gem_partial_pwr/1566 is trying to acquire lock:
<4> [325.947548] ffff9c60b9deeff8 (&mapping->i_mmap_rwsem){++++}-{3:3}, at: unmap_mapping_pages+0x48/0x130
<4> [325.947564]
but task is already holding lock:
<4> [325.947569] ffff9c60b4e09d80 (&vm->mutex){+.+.}-{3:3}, at: i915_vma_unbind+0xa6/0x120 [i915]
<4> [325.947739]
which lock already depends on the new lock.
<4> [325.947746]
the existing dependency chain (in reverse order) is:
<4> [325.947752]
-> #2 (&vm->mutex){+.+.}-{3:3}:
<4> [325.947764] __mutex_lock+0x9a/0x9c0
GDG PNV: igt@gem_userptr_blits@coherency-sync - dmesg-warn - is trying to acquire lock i915_vma_unbind but task is already holding lock at: try_to_unmap_one
<4> [175.055143] ======================================================
<4> [175.055150] WARNING: possible circular locking dependency detected
<4> [175.055158] 5.7.0-rc3-gd9cb80101890e2-drmtip_491+ #1 Tainted: G U
<4> [175.055165] ------------------------------------------------------
<4> [175.055171] khugepaged/21 is trying to acquire lock:
<4> [175.055177] ffff945d6ca89d80 (&vm->mutex){+.+.}-{3:3}, at: i915_vma_unbind+0xa6/0x120 [i915]
<4> [175.055388]
but task is already holding lock:
<4> [175.055393] ffffffff944727c0 (mmu_notifier_invalidate_range_start){+.+.}-{0:0}, at: try_to_unmap_one+0xff/0xbd0
<4> [175.055410]
which lock already depends on the new lock.
<4> [175.055417]
the existing dependency chain (in reverse order) is:
<4> [175.055423]
Edited by Chris Wilson