WARNING: possible recursive locking detected
[ 217.478437] ============================================
[ 217.483751] WARNING: possible recursive locking detected
[ 217.489067] 6.1.0-rc1+zeh-xe+ #859 Tainted: G U
[ 217.494990] --------------------------------------------
[ 217.500306] glxgears:gdrv0/2288 is trying to acquire lock:
[ 217.505797] ffff888125528a68 (reservation_ww_class_mutex){+.+.}-{3:3}, at: dma_buf_detach+0x2d/0xf0
[ 217.514838]
but task is already holding lock:
[ 217.520673] ffff888119733888 (reservation_ww_class_mutex){+.+.}-{3:3}, at: ttm_eu_reserve_buffers+0x312/0x520 [ttm]
[ 217.531125]
other info that might help us debug this:
[ 217.537658] Possible unsafe locking scenario:
[ 217.543579] CPU0
[ 217.546039] ----
[ 217.548500] lock(reservation_ww_class_mutex);
[ 217.553040] lock(reservation_ww_class_mutex);
[ 217.557581]
*** DEADLOCK ***
[ 217.563505] May be due to missing lock nesting notation
[ 217.570294] 4 locks held by glxgears:gdrv0/2288:
[ 217.574919] #0: ffff88812c6838c0 (&xef->vm.lock){+.+.}-{3:3}, at: xe_file_close+0x165/0x1f0 [xe]
[ 217.583797] #1: ffff8881197339c0 (&vm->lock){++++}-{3:3}, at: xe_vm_close_and_put+0x137/0x4e0 [xe]
[ 217.592878] #2: ffffc900027b7bf8 (reservation_ww_class_acquire){+.+.}-{0:0}, at: xe_vm_lock+0xb7/0xe0 [xe]
[ 217.602625] #3: ffff888119733888 (reservation_ww_class_mutex){+.+.}-{3:3}, at: ttm_eu_reserve_buffers+0x312/0x520 [ttm]
[ 217.613499]
stack backtrace:
[ 217.617862] CPU: 5 PID: 2288 Comm: glxgears:gdrv0 Tainted: G U 6.1.0-rc1+zeh-xe+ #859
[ 217.627076] Hardware name: Intel Corporation Tiger Lake Client Platform/TigerLake U DDR4 SODIMM RVP, BIOS TGLSFWI1.R00.3373.A00.2009091720 09/09/2020
[ 217.640440] Call Trace:
[ 217.642900] <TASK>
[ 217.645016] dump_stack_lvl+0x6a/0x9f
[ 217.648692] __lock_acquire.cold+0x182/0x322
[ 217.652974] lock_acquire+0xd1/0x2f0
[ 217.656565] ? dma_buf_detach+0x2d/0xf0
[ 217.660412] __ww_mutex_lock.constprop.0+0xc4/0x1030
[ 217.665385] ? dma_buf_detach+0x2d/0xf0
[ 217.669238] ? dma_buf_detach+0x2d/0xf0
[ 217.673088] ? ww_mutex_lock+0x33/0x90
[ 217.676847] ww_mutex_lock+0x33/0x90
[ 217.680432] dma_buf_detach+0x2d/0xf0
[ 217.684107] drm_prime_gem_destroy+0x26/0x30
[ 217.688390] xe_ttm_bo_destroy+0x15/0xa0 [xe]
[ 217.692770] xe_vm_close_and_put+0x45c/0x4e0 [xe]
[ 217.697534] xe_file_close+0x191/0x1f0 [xe]
[ 217.701770] drm_file_free+0x1ca/0x280
[ 217.705529] drm_release_noglobal+0x16/0x70
[ 217.709727] __fput+0x92/0x250
[ 217.712796] task_work_run+0x51/0x90
[ 217.716388] do_exit+0x353/0xbb0
[ 217.719633] do_group_exit+0x2e/0x90
[ 217.723222] get_signal+0xb7f/0xb80
[ 217.726722] arch_do_signal_or_restart+0x2b/0x740
[ 217.731434] ? do_futex+0x101/0x1a0
[ 217.734933] ? __x64_sys_futex+0x6e/0x1b0
[ 217.738954] exit_to_user_mode_prepare+0x12c/0x1b0
[ 217.743757] syscall_exit_to_user_mode+0x19/0x40
[ 217.748381] do_syscall_64+0x46/0x90
[ 217.751970] entry_SYSCALL_64_after_hwframe+0x63/0xcd
[ 217.757029] RIP: 0033:0x7f6f2a091197
[ 217.760615] Code: Unable to access opcode bytes at 0x7f6f2a09116d.
[ 217.766797] RSP: 002b:00007f6f155ffbe0 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca
[ 217.774361] RAX: fffffffffffffe00 RBX: 0000000000000000 RCX: 00007f6f2a091197
[ 217.781496] RDX: 0000000000000000 RSI: 0000000000000189 RDI: 000055ca6ce0ce40
[ 217.788632] RBP: 000055ca6ce0ce18 R08: 0000000000000000 R09: 00000000ffffffff
[ 217.795766] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
[ 217.802899] R13: 0000000000000000 R14: 0000000000000000 R15: 000055ca6ce0ce40
[ 217.810032] </TASK>