https://intel-gfx-ci.01.org/tree/drm-tip/drmtip_363/fi-kbl-x1275/igt@prime_busy@hang-blt.html <6> [1223.476050] [IGT] prime_busy: starting subtest hang-blt <4> [1228.606649] ------------[ cut here ]------------ <2> [1228.606652] kernel BUG at drivers/dma-buf/dma-buf.c:99! <4> [1228.606673] invalid opcode: 0000 [#1] PREEMPT SMP PTI <4> [1228.606680] CPU: 2 PID: 2532 Comm: prime_busy Tainted: G U 5.3.0-rc7-ga1769d05ffa7-drmtip_363+ #1 <4> [1228.606690] Hardware name: Intel Corporation S1200SP/S1200SP, BIOS S1200SP.86B.03.01.0026.092720170729 09/27/2017 <4> [1228.606701] RIP: 0010:dma_buf_release+0xd8/0xf0 <4> [1228.606707] Code: 00 00 e8 eb 7d ab ff 48 89 df e8 23 f3 b8 ff 31 c0 5b c3 48 8b 93 d0 00 00 00 48 8b 83 d8 00 00 00 48 89 42 08 48 89 10 eb 96 <0f> 0b e8 d1 4d 00 00 eb c8 0f 0b b8 ea ff ff ff c3 0f 1f 80 00 00 <4> [1228.606723] RSP: 0018:ffffb2a1c076bce8 EFLAGS: 00010202 <4> [1228.606729] RAX: ffffffff8f6b2700 RBX: ffff96a0e43cea08 RCX: 0000000000000000 <4> [1228.606736] RDX: 0000000000000004 RSI: ffff96a0d604adc0 RDI: ffff96a0dbb9ce08 <4> [1228.606743] RBP: 0000000000080005 R08: 0000000000000000 R09: 0000000000000000 <4> [1228.606750] R10: 0000000000000010 R11: 0000000000000000 R12: ffff96a0dbb9ce08 <4> [1228.606757] R13: ffff96a0ea5f8e20 R14: ffff96a0da32e228 R15: ffff96a0dbb9ce08 <4> [1228.606765] FS: 00007f74e8479e40(0000) GS:ffff96a0eb500000(0000) knlGS:0000000000000000 <4> [1228.606773] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 <4> [1228.606779] CR2: 00007f7602d3e57f CR3: 0000000265bf6006 CR4: 00000000003606e0 <4> [1228.606786] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 <4> [1228.606793] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 <4> [1228.606800] Call Trace: <4> [1228.606806] __fput+0xc2/0x250 <4> [1228.606812] task_work_run+0x82/0xb0 <4> [1228.606818] do_exit+0x35b/0xdb0 <4> [1228.606824] ? get_signal+0xf6/0xcb0 <4> [1228.606830] do_group_exit+0x34/0xb0 <4> [1228.606836] get_signal+0x14d/0xcb0 <4> [1228.606841] ? _raw_spin_unlock_irqrestore+0x39/0x60 <4> [1228.606849] do_signal+0x2b/0x720 <4> [1228.606855] ? do_sys_open+0x13b/0x250 <4> [1228.606861] ? rcu_read_lock_sched_held+0x6f/0x80 <4> [1228.606868] ? do_sys_open+0x13b/0x250 <4> [1228.606874] exit_to_usermode_loop+0x89/0xa0 <4> [1228.606880] do_syscall_64+0x16d/0x1c0 <4> [1228.606885] entry_SYSCALL_64_after_hwframe+0x49/0xbe <4> [1228.606891] RIP: 0033:0x7f74e7906eb3 <4> [1228.606897] Code: Bad RIP value. <4> [1228.606901] RSP: 002b:00007fff86fed6d0 EFLAGS: 00000246 ORIG_RAX: 0000000000000101 <4> [1228.606910] RAX: 000000000000000a RBX: 0000000000000009 RCX: 00007f74e7906eb3 <4> [1228.606917] RDX: 0000000000000000 RSI: 00007f74e7e6cad8 RDI: 0000000000000009 <4> [1228.606923] RBP: 0000000000000006 R08: 0000000000000000 R09: 0000000000000000 <4> [1228.606930] R10: 0000000000000000 R11: 0000000000000246 R12: 00007f74e7e69aa0 <4> [1228.606937] R13: 00007fff86fee000 R14: 0000000000000078 R15: 00007f74e84a9000 <4> [1228.606947] Modules linked in: vgem i915 x86_pkg_temp_thermal coretemp crct10dif_pclmul crc32_pclmul ghash_clmulni_intel igb ptp pps_core mei_me prime_numbers mei acpi_power_meter <0> [1228.606967] Dumping ftrace buffer:
The CI Bug Log issue associated to this bug has been updated. ### New filters associated * KBL igt@prime_busy@hang-blt - incomplete - kernel BUG at drivers/dma-buf/dma-buf.c:99! - https://intel-gfx-ci.01.org/tree/drm-tip/drmtip_363/fi-kbl-x1275/igt@prime_busy@hang-blt.html
commit 9b495a5887994a6d74d5c261d012083a92b94738 Author: Maarten Lankhorst <maarten.lankhorst@canonical.com> Date: Tue Jul 1 12:57:43 2014 +0200 dma-buf: add poll support, v3 ... @@ -52,6 +53,16 @@ static int dma_buf_release(struct inode *inode, struct file * file) BUG_ON(dmabuf->vmapping_counter); + /* + * Any fences that a dma-buf poll can wait on should be signaled + * before releasing dma-buf. This is the responsibility of each + * driver that uses the reservation objects. + * + * If you hit this BUG() it means someone dropped their ref to the + * dma-buf while still having pending operation to the buffer. + */ + BUG_ON(dmabuf->cb_shared.active || dmabuf->cb_excl.active); which is quite odd as the exported dmabuf has no bearing on the native object and its fences.
Once in 1 month / 9 runs. Minor.
A CI Bug Log filter associated to this bug has been updated: {- KBL igt@prime_busy@hang-blt - incomplete - kernel BUG at drivers/dma-buf/dma-buf.c:99! -} {+ SKL KBL igt@prime_busy@hang-blt| igt@prime_vgem@sync-bsd - incomplete - kernel BUG at drivers/dma-buf/dma-buf.c:99! +} New failures caught by the filter: * https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7134/shard-skl3/igt@prime_vgem@sync-bsd.html
*** Bug 112121 has been marked as a duplicate of this bug. ***
The CI Bug Log issue associated to this bug has been updated. ### New filters associated * SKL: igt@prime_vgem@sync-bsd - incomplete - BUG: sleeping function called from invalid context at kernel/sched/completion.c:\d+ (No new failures associated)
The CI Bug Log issue associated to this bug has been updated. ### New filters associated * SKL KBL CFL TGL: Random tests - BUG: sleeping function called from invalid context at kernel/sched/completion.c:99 - https://intel-gfx-ci.01.org/tree/drm-tip/Trybot_5235/fi-kbl-guc/igt@i915_selftest@live_gt_pm.html - https://intel-gfx-ci.01.org/tree/drm-tip/Trybot_5238/fi-kbl-guc/igt@i915_selftest@live_gt_pm.html - https://intel-gfx-ci.01.org/tree/drm-tip/Trybot_5242/fi-kbl-guc/igt@i915_selftest@live_gt_pm.html - https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15072/fi-kbl-guc/igt@i915_selftest@live_gt_pm.html - https://intel-gfx-ci.01.org/tree/drm-tip/Trybot_5245/fi-kbl-guc/igt@i915_selftest@live_gt_pm.html - https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15078/fi-kbl-guc/igt@i915_selftest@live_gt_pm.html - https://intel-gfx-ci.01.org/tree/drm-tip/Trybot_5252/fi-cfl-guc/igt@i915_selftest@live_gt_pm.html - https://intel-gfx-ci.01.org/tree/drm-tip/Trybot_5252/fi-kbl-guc/igt@i915_selftest@live_gt_pm.html - https://intel-gfx-ci.01.org/tree/drm-tip/Trybot_5252/fi-skl-guc/igt@i915_selftest@live_gt_pm.html - https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7229/shard-tglb4/igt@prime_vgem@sync-blt.html - https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7242/fi-cfl-guc/igt@i915_selftest@live_gt_pm.html - https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7242/fi-kbl-guc/igt@i915_selftest@live_gt_pm.html - https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7242/fi-skl-guc/igt@i915_selftest@live_gt_pm.html - https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15106/fi-cfl-guc/igt@i915_selftest@live_gt_pm.html - https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15106/fi-kbl-guc/igt@i915_selftest@live_gt_pm.html - https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15106/fi-skl-guc/igt@i915_selftest@live_gt_pm.html - https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15107/fi-cfl-guc/igt@i915_selftest@live_gt_pm.html - https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15107/fi-kbl-guc/igt@i915_selftest@live_gt_pm.html - https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15107/fi-skl-guc/igt@i915_selftest@live_gt_pm.html - https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15110/fi-cfl-guc/igt@i915_selftest@live_gt_pm.html - https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15110/fi-kbl-guc/igt@i915_selftest@live_gt_pm.html - https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15110/fi-skl-guc/igt@i915_selftest@live_gt_pm.html - https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3643/fi-cfl-guc/igt@i915_selftest@live_gt_pm.html - https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3643/fi-kbl-guc/igt@i915_selftest@live_gt_pm.html - https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3643/fi-skl-guc/igt@i915_selftest@live_gt_pm.html - https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15112/fi-cfl-guc/igt@i915_selftest@live_gt_pm.html - https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15112/fi-kbl-guc/igt@i915_selftest@live_gt_pm.html - https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15112/fi-skl-guc/igt@i915_selftest@live_gt_pm.html - https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15113/fi-cfl-guc/igt@i915_selftest@live_gt_pm.html - https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15113/fi-kbl-guc/igt@i915_selftest@live_gt_pm.html - https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15113/fi-skl-guc/igt@i915_selftest@live_gt_pm.html - https://intel-gfx-ci.01.org/tree/drm-tip/Trybot_5255/fi-cfl-guc/igt@i915_selftest@live_gt_pm.html - https://intel-gfx-ci.01.org/tree/drm-tip/Trybot_5255/fi-kbl-guc/igt@i915_selftest@live_gt_pm.html - https://intel-gfx-ci.01.org/tree/drm-tip/Trybot_5255/fi-skl-guc/igt@i915_selftest@live_gt_pm.html
(In reply to CI Bug Log from comment #7) > The CI Bug Log issue associated to this bug has been updated. > > ### New filters associated > > * SKL KBL CFL TGL: Random tests - BUG: sleeping function called from invalid > context at kernel/sched/completion.c:99 > - > https://intel-gfx-ci.01.org/tree/drm-tip/Trybot_5235/fi-kbl-guc/ > igt@i915_selftest@live_gt_pm.html > - > https://intel-gfx-ci.01.org/tree/drm-tip/Trybot_5238/fi-kbl-guc/ > igt@i915_selftest@live_gt_pm.html > - > https://intel-gfx-ci.01.org/tree/drm-tip/Trybot_5242/fi-kbl-guc/ > igt@i915_selftest@live_gt_pm.html > - > https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15072/fi-kbl-guc/ > igt@i915_selftest@live_gt_pm.html > - > https://intel-gfx-ci.01.org/tree/drm-tip/Trybot_5245/fi-kbl-guc/ > igt@i915_selftest@live_gt_pm.html > - > https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15078/fi-kbl-guc/ > igt@i915_selftest@live_gt_pm.html > - > https://intel-gfx-ci.01.org/tree/drm-tip/Trybot_5252/fi-cfl-guc/ > igt@i915_selftest@live_gt_pm.html > - > https://intel-gfx-ci.01.org/tree/drm-tip/Trybot_5252/fi-kbl-guc/ > igt@i915_selftest@live_gt_pm.html > - > https://intel-gfx-ci.01.org/tree/drm-tip/Trybot_5252/fi-skl-guc/ > igt@i915_selftest@live_gt_pm.html > - > https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7229/shard-tglb4/ > igt@prime_vgem@sync-blt.html > - > https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7242/fi-cfl-guc/ > igt@i915_selftest@live_gt_pm.html > - > https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7242/fi-kbl-guc/ > igt@i915_selftest@live_gt_pm.html > - > https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7242/fi-skl-guc/ > igt@i915_selftest@live_gt_pm.html > - > https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15106/fi-cfl-guc/ > igt@i915_selftest@live_gt_pm.html > - > https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15106/fi-kbl-guc/ > igt@i915_selftest@live_gt_pm.html > - > https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15106/fi-skl-guc/ > igt@i915_selftest@live_gt_pm.html > - > https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15107/fi-cfl-guc/ > igt@i915_selftest@live_gt_pm.html > - > https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15107/fi-kbl-guc/ > igt@i915_selftest@live_gt_pm.html > - > https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15107/fi-skl-guc/ > igt@i915_selftest@live_gt_pm.html > - > https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15110/fi-cfl-guc/ > igt@i915_selftest@live_gt_pm.html > - > https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15110/fi-kbl-guc/ > igt@i915_selftest@live_gt_pm.html > - > https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15110/fi-skl-guc/ > igt@i915_selftest@live_gt_pm.html > - > https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3643/fi-cfl-guc/ > igt@i915_selftest@live_gt_pm.html > - > https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3643/fi-kbl-guc/ > igt@i915_selftest@live_gt_pm.html > - > https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3643/fi-skl-guc/ > igt@i915_selftest@live_gt_pm.html > - > https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15112/fi-cfl-guc/ > igt@i915_selftest@live_gt_pm.html > - > https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15112/fi-kbl-guc/ > igt@i915_selftest@live_gt_pm.html > - > https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15112/fi-skl-guc/ > igt@i915_selftest@live_gt_pm.html > - > https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15113/fi-cfl-guc/ > igt@i915_selftest@live_gt_pm.html > - > https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15113/fi-kbl-guc/ > igt@i915_selftest@live_gt_pm.html > - > https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15113/fi-skl-guc/ > igt@i915_selftest@live_gt_pm.html > - > https://intel-gfx-ci.01.org/tree/drm-tip/Trybot_5255/fi-cfl-guc/ > igt@i915_selftest@live_gt_pm.html > - > https://intel-gfx-ci.01.org/tree/drm-tip/Trybot_5255/fi-kbl-guc/ > igt@i915_selftest@live_gt_pm.html > - > https://intel-gfx-ci.01.org/tree/drm-tip/Trybot_5255/fi-skl-guc/ > igt@i915_selftest@live_gt_pm.html @Chris, correct me if these failures needs separate bug.
(In reply to Lakshmi from comment #8) > (In reply to CI Bug Log from comment #7) > > The CI Bug Log issue associated to this bug has been updated. > > @Chris, correct me if these failures needs separate bug. They were just guc exploding. Yes, they should not be here. The bug is gone.
The CI Bug Log issue associated to this bug has been updated. ### Removed filters * SKL KBL CFL TGL: Random tests - BUG: sleeping function called from invalid context at kernel/sched/completion.c:99 (added on 8 hours ago)
(In reply to Chris Wilson from comment #9) > (In reply to Lakshmi from comment #8) > > (In reply to CI Bug Log from comment #7) > > > The CI Bug Log issue associated to this bug has been updated. > > > > @Chris, correct me if these failures needs separate bug. > > They were just guc exploding. Yes, they should not be here. The bug is gone. Separate issue Bug 112211 is created and updated the filter.
A CI Bug Log filter associated to this bug has been updated: {- SKL: igt@prime_vgem@sync-bsd - incomplete - BUG: sleeping function called from invalid context at kernel/sched/completion.c:\d+ -} {+ SKL TGL: igt@prime_vgem@sync-bsd|igt@prime_vgem@sync-blt - incomplete - BUG: sleeping function called from invalid context at kernel/sched/completion.c:\d+ +} No new failures caught with the new filter
A CI Bug Log filter associated to this bug has been updated: {- SKL TGL: igt@prime_vgem@sync-bsd|igt@prime_vgem@sync-blt - incomplete - BUG: sleeping function called from invalid context at kernel/sched/completion.c:\d+ -} {+ SKL TGL: igt@prime_vgem@sync-bsd|igt@prime_vgem@sync-* - incomplete - BUG: sleeping function called from invalid context at kernel/sched/completion.c:\d+ +} New failures caught by the filter: * https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7257/shard-tglb6/igt@prime_vgem@sync-bsd2.html
A CI Bug Log filter associated to this bug has been updated: {- SKL TGL: igt@prime_vgem@sync-bsd|igt@prime_vgem@sync-* - incomplete - BUG: sleeping function called from invalid context at kernel/sched/completion.c:\d+ -} {+ SKL TGL: igt@prime_vgem@sync-bsd|igt@prime_vgem@sync-* - incomplete - RIP: 0010:dma_buf_release.* +} No new failures caught with the new filter
The CI Bug Log issue associated to this bug has been updated. ### New filters associated * TGL: igt@runner@aborted - fail - Previous test: prime_vgem (sync-blt) - https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5264/shard-tglb7/igt@runner@aborted.html
(In reply to Chris Wilson from comment #2) > + BUG_ON(dmabuf->cb_shared.active || dmabuf->cb_excl.active); > > which is quite odd as the exported dmabuf has no bearing on the native > object and its fences. Is it possible that this is occurring because of these patches: 67c97fb79a7f ("dma-buf: add reservation_object_fences helper") dd7a7d1ff2f1 ("drm/i915: use new reservation_object_fences helper") 0e1d8083bddb ("dma-buf: further relax reservation_object_add_shared_fence") 5d344f58da76 ("dma-buf: nuke reservation_object seq number") which was reverted by: dma-buf: Restore seqlock around dma_resv updates ? I am having difficulty placing these change.
A CI Bug Log filter associated to this bug has been updated: {- SKL TGL: igt@prime_vgem@sync-bsd|igt@prime_vgem@sync-* - incomplete - RIP: 0010:dma_buf_release.* -} {+ SKL TGL: igt@prime_vgem@sync-bsd|igt@prime_vgem@sync-* - incomplete - RIP: 0010:dma_buf_release.* +} New failures caught by the filter: * https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5290/shard-skl7/igt@prime_vgem@basic-sync-default.html
A CI Bug Log filter associated to this bug has been updated: {- SKL TGL: igt@prime_vgem@sync-bsd|igt@prime_vgem@sync-* - incomplete - RIP: 0010:dma_buf_release.* -} {+ SKL TGL: igt@prime_vgem@-* - incomplete - RIP: 0010:dma_buf_release.* +} No new failures caught with the new filter
A CI Bug Log filter associated to this bug has been updated: {- SKL TGL: igt@prime_vgem@-* - incomplete - RIP: 0010:dma_buf_release.* -} {+ APL SKL TGL: igt@prime_vgem@-* - incomplete - RIP: 0010:dma_buf_release.* +} No new failures caught with the new filter
A CI Bug Log filter associated to this bug has been updated: {- TGL: igt@runner@aborted - fail - Previous test: prime_vgem (sync-blt) -} {+ APL TGL: igt@runner@aborted - fail - Previous test: prime_vgem (sync-blt) +} New failures caught by the filter: * https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7360/shard-apl1/igt@runner@aborted.html
-- GitLab Migration Automatic Message -- This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/drm/intel/issues/409.
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.