igt@pm_rpm@* - dmesg-warn - WARNING: possible circular locking dependency detected
https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7708/shard-iclb2/igt@i915_pm_rpm@gem-execbuf.html
<6> [255.914333] [IGT] i915_pm_rpm: starting subtest gem-execbuf
<4> [255.915640]
<4> [255.915645] ======================================================
<4> [255.915647] WARNING: possible circular locking dependency detected
<4> [255.915650] 5.5.0-rc5-CI-CI_DRM_7708+ #1 Tainted: G U
<4> [255.915652] ------------------------------------------------------
<4> [255.915654] i915_pm_rpm/1370 is trying to acquire lock:
<4> [255.915656] ffffffff82663fa0 (fs_reclaim){+.+.}, at: fs_reclaim_acquire.part.117+0x0/0x30
<4> [255.915665]
but task is already holding lock:
<4> [255.915667] ffff88848a389580 (&vm->mutex){+.+.}, at: i915_vma_pin+0xf3/0x11c0 [i915]
<4> [255.915781]
which lock already depends on the new lock.
<4> [255.915783]
the existing dependency chain (in reverse order) is:
<4> [255.915785]
-> #1 (&vm->mutex){+.+.}:
<4> [255.915874] i915_gem_shrinker_taints_mutex+0xa0/0xd0 [i915]
<4> [255.915941] i915_address_space_init+0xa9/0x170 [i915]
<4> [255.916004] i915_ggtt_init_hw+0x2b/0x120 [i915]
<4> [255.916054] i915_driver_probe+0xbe9/0x1620 [i915]
<4> [255.916111] i915_pci_probe+0x43/0x1c0 [i915]
<4> [255.916116] pci_device_probe+0x9e/0x120
<4> [255.916121] really_probe+0xea/0x420
<4> [255.916124] driver_probe_device+0x10b/0x120
<4> [255.916128] device_driver_attach+0x4a/0x50
<4> [255.916131] __driver_attach+0x97/0x130
<4> [255.916134] bus_for_each_dev+0x74/0xc0
<4> [255.916137] bus_add_driver+0x142/0x220
<4> [255.916140] driver_register+0x56/0xf0
<4> [255.916143] 0xffffffffa092306c
<4> [255.916146] do_one_initcall+0x58/0x300
<4> [255.916150] do_init_module+0x56/0x1f2
<4> [255.916154] load_module+0x243e/0x29f0
<4> [255.916157] __do_sys_finit_module+0xe9/0x110
<4> [255.916160] do_syscall_64+0x4f/0x220
<4> [255.916164] entry_SYSCALL_64_after_hwframe+0x49/0xbe
<4> [255.916166]
-> #0 (fs_reclaim){+.+.}:
<4> [255.916171] __lock_acquire+0x1328/0x15d0
<4> [255.916173] lock_acquire+0xa7/0x1c0
<4> [255.916176] fs_reclaim_acquire.part.117+0x24/0x30
<4> [255.916180] __kmalloc+0x48/0x320
<4> [255.916183] acpi_ns_internalize_name+0x44/0x9b
<4> [255.916187] acpi_ns_get_node_unlocked+0x6b/0xd3
<4> [255.916189] acpi_ns_get_node+0x3b/0x50
<4> [255.916192] acpi_get_handle+0x8a/0xb4
<4> [255.916197] acpi_has_method+0x1c/0x40
<4> [255.916201] acpi_pci_set_power_state+0x40/0xe0
<4> [255.916204] pci_platform_power_transition+0x3e/0x90
<4> [255.916206] pci_power_up+0xb/0x40
<4> [255.916209] pci_set_power_state+0xe3/0x140
<4> [255.916212] pci_restore_standard_config+0x22/0x40
<4> [255.916215] pci_pm_runtime_resume+0x2c/0x90
<4> [255.916219] __rpm_callback+0xb1/0x110
<4> [255.916222] rpm_callback+0x1a/0x70
<4> [255.916224] rpm_resume+0x50e/0x790
<4> [255.916227] __pm_runtime_resume+0x42/0x80
<4> [255.916286] __intel_runtime_pm_get+0x15/0x60 [i915]
<4> [255.916352] ggtt_bind_vma+0x44/0xa0 [i915]
<4> [255.916440] i915_vma_bind+0x22b/0x4f0 [i915]
<4> [255.916546] i915_vma_pin+0x1f6/0x11c0 [i915]
<4> [255.916619] intel_ring_pin+0x6e/0x2c0 [i915]
<4> [255.916682] __intel_context_active+0x7c/0x1e0 [i915]
<4> [255.916764] i915_active_acquire+0x4b/0xd0 [i915]
<4> [255.916828] __intel_context_do_pin+0x53/0x1d0 [i915]
<4> [255.916905] i915_gem_do_execbuffer+0x14e7/0x2510 [i915]
<4> [255.916981] i915_gem_execbuffer2_ioctl+0x11f/0x470 [i915]
<4> [255.916986] drm_ioctl_kernel+0xa7/0xf0
<4> [255.916989] drm_ioctl+0x2e1/0x390
<4> [255.916992] do_vfs_ioctl+0x9c/0x730
<4> [255.916994] ksys_ioctl+0x35/0x60
<4> [255.916997] __x64_sys_ioctl+0x11/0x20
<4> [255.916999] do_syscall_64+0x4f/0x220
<4> [255.917003] entry_SYSCALL_64_after_hwframe+0x49/0xbe
<4> [255.917004]
other info that might help us debug this:
<4> [255.917006] Possible unsafe locking scenario:
<4> [255.917008] CPU0 CPU1
<4> [255.917009] ---- ----
<4> [255.917011] lock(&vm->mutex);
<4> [255.917013] lock(fs_reclaim);
<4> [255.917015] lock(&vm->mutex);
<4> [255.917017] lock(fs_reclaim);
<4> [255.917019]
*** DEADLOCK ***
<4> [255.917022] 3 locks held by i915_pm_rpm/1370:
<4> [255.917023] #0: ffff888454b0b128 (&ce->pin_mutex){+.+.}, at: __intel_context_do_pin+0x2f/0x1d0 [i915]
<4> [255.917105] #1: ffff888454b0b1b0 (i915_active#2){+.+.}, at: i915_active_acquire+0x2b/0xd0 [i915]
<4> [255.917193] #2: ffff88848a389580 (&vm->mutex){+.+.}, at: i915_vma_pin+0xf3/0x11c0 [i915]
<4> [255.917281]
stack backtrace:
<4> [255.917285] CPU: 1 PID: 1370 Comm: i915_pm_rpm Tainted: G U 5.5.0-rc5-CI-CI_DRM_7708+ #1
<4> [255.917287] Hardware name: Intel Corporation Ice Lake Client Platform/IceLake U DDR4 SODIMM PD RVP, BIOS ICLSFWR1.R00.3234.A01.1906141750 06/14/2019
<4> [255.917289] Call Trace:
<4> [255.917296] dump_stack+0x71/0x9b
<4> [255.917300] check_noncircular+0x19b/0x1c0
<4> [255.917305] ? __lock_acquire+0x1328/0x15d0
<4> [255.917308] __lock_acquire+0x1328/0x15d0
<4> [255.917312] lock_acquire+0xa7/0x1c0
<4> [255.917316] ? show_mem_node_skip.part.94+0x20/0x20
<4> [255.917321] ? acpi_ns_internalize_name+0x44/0x9b
<4> [255.917324] fs_reclaim_acquire.part.117+0x24/0x30
<4> [255.917327] ? show_mem_node_skip.part.94+0x20/0x20
<4> [255.917330] __kmalloc+0x48/0x320
<4> [255.917334] acpi_ns_internalize_name+0x44/0x9b
<4> [255.917338] ? find_held_lock+0x2d/0x90
<4> [255.917342] acpi_ns_get_node_unlocked+0x6b/0xd3
<4> [255.917345] ? _raw_spin_unlock_irqrestore+0x47/0x60
<4> [255.917348] ? _raw_spin_unlock_irqrestore+0x47/0x60
<4> [255.917351] ? lockdep_hardirqs_on+0xe3/0x1c0
<4> [255.917353] ? _raw_spin_unlock_irqrestore+0x34/0x60
<4> [255.917357] ? down_timeout+0x2c/0x50
<4> [255.917360] ? acpi_ns_get_node+0x3b/0x50
<4> [255.917363] acpi_ns_get_node+0x3b/0x50
<4> [255.917367] acpi_get_handle+0x8a/0xb4
<4> [255.917371] acpi_has_method+0x1c/0x40
<4> [255.917376] acpi_pci_set_power_state+0x40/0xe0
<4> [255.917379] pci_platform_power_transition+0x3e/0x90
<4> [255.917382] pci_power_up+0xb/0x40
<4> [255.917385] pci_set_power_state+0xe3/0x140
<4> [255.917388] ? pci_update_current_state+0x8e/0xb0
<4> [255.917392] pci_restore_standard_config+0x22/0x40
<4> [255.917395] pci_pm_runtime_resume+0x2c/0x90
<4> [255.917399] ? pci_pm_default_resume+0x20/0x20
<4> [255.917402] __rpm_callback+0xb1/0x110
<4> [255.917405] rpm_callback+0x1a/0x70
<4> [255.917408] ? pci_pm_default_resume+0x20/0x20
<4> [255.917411] rpm_resume+0x50e/0x790
<4> [255.917416] __pm_runtime_resume+0x42/0x80
<4> [255.917475] __intel_runtime_pm_get+0x15/0x60 [i915]
<4> [255.917549] ggtt_bind_vma+0x44/0xa0 [i915]
<4> [255.917635] i915_vma_bind+0x22b/0x4f0 [i915]
<4> [255.917719] i915_vma_pin+0x1f6/0x11c0 [i915]
<4> [255.917794] intel_ring_pin+0x6e/0x2c0 [i915]
<4> [255.917858] __intel_context_active+0x7c/0x1e0 [i915]
<4> [255.917939] i915_active_acquire+0x4b/0xd0 [i915]
<4> [255.918003] __intel_context_do_pin+0x53/0x1d0 [i915]
<4> [255.918079] i915_gem_do_execbuffer+0x14e7/0x2510 [i915]
<4> [255.918086] ? __lock_acquire+0x460/0x15d0
<4> [255.918163] i915_gem_execbuffer2_ioctl+0x11f/0x470 [i915]
<4> [255.918237] ? i915_gem_execbuffer_ioctl+0x300/0x300 [i915]
<4> [255.918241] drm_ioctl_kernel+0xa7/0xf0
<4> [255.918246] drm_ioctl+0x2e1/0x390
<4> [255.918318] ? i915_gem_execbuffer_ioctl+0x300/0x300 [i915]
<4> [255.918323] ? __lock_acquire+0x460/0x15d0
<4> [255.918327] do_vfs_ioctl+0x9c/0x730
<4> [255.918330] ? find_held_lock+0x2d/0x90
<4> [255.918335] ? __task_pid_nr_ns+0xbc/0x1f0
<4> [255.918338] ksys_ioctl+0x35/0x60
<4> [255.918342] __x64_sys_ioctl+0x11/0x20
<4> [255.918344] do_syscall_64+0x4f/0x220
<4> [255.918348] entry_SYSCALL_64_after_hwframe+0x49/0xbe
<4> [255.918351] RIP: 0033:0x7f95605215d7
<4> [255.918355] Code: b3 66 90 48 8b 05 b1 48 2d 00 64 c7 00 26 00 00 00 48 c7 c0 ff ff ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 b8 10 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d 81 48 2d 00 f7 d8 64 89 01 48
<4> [255.918358] RSP: 002b:00007ffc465f9488 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
<4> [255.918361] RAX: ffffffffffffffda RBX: 0000000000000005 RCX: 00007f95605215d7
<4> [255.918363] RDX: 00007ffc465f9510 RSI: 0000000040406469 RDI: 0000000000000005
<4> [255.918365] RBP: 00007ffc465f9510 R08: 0000000000000000 R09: 0000000000000022
<4> [255.918367] R10: 0000000000000056 R11: 0000000000000246 R12: 0000000040406469
<4> [255.918369] R13: 0000000000000005 R14: 0000000000000000 R15: 0000000000000000