Bug 111612 - [CI][DRMTIP] igt@prime_busy@hang-blt - incomplete - kernel BUG at drivers/dma-buf/dma-buf.c:99!
Summary: [CI][DRMTIP] igt@prime_busy@hang-blt - incomplete - kernel BUG at drivers/dm...
Status: NEW
Alias: None
Product: DRI
Classification: Unclassified
Component: DRM/Intel (show other bugs)
Version: DRI git
Hardware: Other All
: not set not set
Assignee: Intel GFX Bugs mailing list
QA Contact: Intel GFX Bugs mailing list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-09-09 11:22 UTC by Lakshmi
Modified: 2019-09-09 11:36 UTC (History)
1 user (show)

See Also:
i915 platform: KBL
i915 features: GEM/Other


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Lakshmi 2019-09-09 11:22:02 UTC
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:
Comment 1 CI Bug Log 2019-09-09 11:22:34 UTC
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
Comment 2 Chris Wilson 2019-09-09 11:36:32 UTC
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.


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.