mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-23 02:43:03 +07:00
637ee29eff
An unlikely ABBA deadlock in debugfs that no one has reported.
[ 284.922349] ======================================================
[ 284.922355] [ INFO: possible circular locking dependency detected ]
[ 284.922361] 4.8.0-rc2+ #430 Tainted: G W
[ 284.922366] -------------------------------------------------------
[ 284.922371] cat/1197 is trying to acquire lock:
[ 284.922376] (&dev->filelist_mutex){+.+...}, at: [<ffffffffa0055ba2>] i915_ppgtt_info+0x82/0x390 [i915]
[ 284.922423]
[ 284.922423] but task is already holding lock:
[ 284.922429] (&dev->struct_mutex){+.+.+.}, at: [<ffffffffa0055b55>] i915_ppgtt_info+0x35/0x390 [i915]
[ 284.922465]
[ 284.922465] which lock already depends on the new lock.
[ 284.922465]
[ 284.922471]
[ 284.922471] the existing dependency chain (in reverse order) is:
[ 284.922477]
-> #1 (&dev->struct_mutex){+.+.+.}:
[ 284.922493] [<ffffffff81087710>] lock_acquire+0x60/0x80
[ 284.922505] [<ffffffff8143e96f>] mutex_lock_nested+0x5f/0x360
[ 284.922520] [<ffffffffa004f877>] print_context_stats+0x37/0xf0 [i915]
[ 284.922549] [<ffffffffa00535f5>] i915_gem_object_info+0x265/0x490 [i915]
[ 284.922581] [<ffffffff81144491>] seq_read+0xe1/0x3b0
[ 284.922592] [<ffffffff811f77b3>] full_proxy_read+0x83/0xb0
[ 284.922604] [<ffffffff8111ba03>] __vfs_read+0x23/0x110
[ 284.922616] [<ffffffff8111c9b9>] vfs_read+0x89/0x110
[ 284.922626] [<ffffffff8111dbf4>] SyS_read+0x44/0xa0
[ 284.922636] [<ffffffff81442be9>] entry_SYSCALL_64_fastpath+0x1c/0xac
[ 284.922648]
-> #0 (&dev->filelist_mutex){+.+...}:
[ 284.922667] [<ffffffff810871fc>] __lock_acquire+0x10fc/0x1270
[ 284.922678] [<ffffffff81087710>] lock_acquire+0x60/0x80
[ 284.922689] [<ffffffff8143e96f>] mutex_lock_nested+0x5f/0x360
[ 284.922701] [<ffffffffa0055ba2>] i915_ppgtt_info+0x82/0x390 [i915]
[ 284.922729] [<ffffffff81144491>] seq_read+0xe1/0x3b0
[ 284.922739] [<ffffffff811f77b3>] full_proxy_read+0x83/0xb0
[ 284.922750] [<ffffffff8111ba03>] __vfs_read+0x23/0x110
[ 284.922761] [<ffffffff8111c9b9>] vfs_read+0x89/0x110
[ 284.922771] [<ffffffff8111dbf4>] SyS_read+0x44/0xa0
[ 284.922781] [<ffffffff81442be9>] entry_SYSCALL_64_fastpath+0x1c/0xac
[ 284.922793]
[ 284.922793] other info that might help us debug this:
[ 284.922793]
[ 284.922809] Possible unsafe locking scenario:
[ 284.922809]
[ 284.922818] CPU0 CPU1
[ 284.922825] ---- ----
[ 284.922831] lock(&dev->struct_mutex);
[ 284.922842] lock(&dev->filelist_mutex);
[ 284.922854] lock(&dev->struct_mutex);
[ 284.922865] lock(&dev->filelist_mutex);
[ 284.922875]
[ 284.922875] *** DEADLOCK ***
[ 284.922875]
[ 284.922888] 3 locks held by cat/1197:
[ 284.922895] #0: (debugfs_srcu){......}, at: [<ffffffff811f7730>] full_proxy_read+0x0/0xb0
[ 284.922919] #1: (&p->lock){+.+.+.}, at: [<ffffffff811443e8>] seq_read+0x38/0x3b0
[ 284.922942] #2: (&dev->struct_mutex){+.+.+.}, at: [<ffffffffa0055b55>] i915_ppgtt_info+0x35/0x390 [i915]
[ 284.922983]
Fixes:
|
||
---|---|---|
.. | ||
amd | ||
arc | ||
arm | ||
armada | ||
ast | ||
atmel-hlcdc | ||
bochs | ||
bridge | ||
cirrus | ||
etnaviv | ||
exynos | ||
fsl-dcu | ||
gma500 | ||
hisilicon | ||
i2c | ||
i810 | ||
i915 | ||
imx | ||
mediatek | ||
mga | ||
mgag200 | ||
msm | ||
nouveau | ||
omapdrm | ||
panel | ||
qxl | ||
r128 | ||
radeon | ||
rcar-du | ||
rockchip | ||
savage | ||
shmobile | ||
sis | ||
sti | ||
sun4i | ||
tdfx | ||
tegra | ||
tilcdc | ||
ttm | ||
udl | ||
vc4 | ||
vgem | ||
via | ||
virtio | ||
vmwgfx | ||
ati_pcigart.c | ||
drm_agpsupport.c | ||
drm_atomic_helper.c | ||
drm_atomic.c | ||
drm_auth.c | ||
drm_blend.c | ||
drm_bridge.c | ||
drm_bufs.c | ||
drm_cache.c | ||
drm_context.c | ||
drm_crtc_helper.c | ||
drm_crtc_internal.h | ||
drm_crtc.c | ||
drm_debugfs.c | ||
drm_dma.c | ||
drm_dp_aux_dev.c | ||
drm_dp_dual_mode_helper.c | ||
drm_dp_helper.c | ||
drm_dp_mst_topology.c | ||
drm_drv.c | ||
drm_edid_load.c | ||
drm_edid.c | ||
drm_encoder_slave.c | ||
drm_fb_cma_helper.c | ||
drm_fb_helper.c | ||
drm_flip_work.c | ||
drm_fops.c | ||
drm_fourcc.c | ||
drm_gem_cma_helper.c | ||
drm_gem.c | ||
drm_global.c | ||
drm_hashtab.c | ||
drm_info.c | ||
drm_internal.h | ||
drm_ioc32.c | ||
drm_ioctl.c | ||
drm_irq.c | ||
drm_kms_helper_common.c | ||
drm_legacy.h | ||
drm_lock.c | ||
drm_memory.c | ||
drm_mipi_dsi.c | ||
drm_mm.c | ||
drm_modes.c | ||
drm_modeset_lock.c | ||
drm_of.c | ||
drm_panel.c | ||
drm_pci.c | ||
drm_plane_helper.c | ||
drm_platform.c | ||
drm_prime.c | ||
drm_probe_helper.c | ||
drm_rect.c | ||
drm_scatter.c | ||
drm_simple_kms_helper.c | ||
drm_sysfs.c | ||
drm_trace_points.c | ||
drm_trace.h | ||
drm_vm.c | ||
drm_vma_manager.c | ||
Kconfig | ||
Makefile |