<html>
<head>
<base href="https://bugs.freedesktop.org/">
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW - [i915] might_sleep() called from wrong context with GuC submission enabled"
href="https://bugs.freedesktop.org/show_bug.cgi?id=98571">98571</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>[i915] might_sleep() called from wrong context with GuC submission enabled
</td>
</tr>
<tr>
<th>Product</th>
<td>DRI
</td>
</tr>
<tr>
<th>Version</th>
<td>DRI git
</td>
</tr>
<tr>
<th>Hardware</th>
<td>x86-64 (AMD64)
</td>
</tr>
<tr>
<th>OS</th>
<td>Linux (All)
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>major
</td>
</tr>
<tr>
<th>Priority</th>
<td>medium
</td>
</tr>
<tr>
<th>Component</th>
<td>DRM/Intel
</td>
</tr>
<tr>
<th>Assignee</th>
<td>intel-gfx-bugs@lists.freedesktop.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>arkadiusz.hiler@intel.com
</td>
</tr>
<tr>
<th>QA Contact</th>
<td>intel-gfx-bugs@lists.freedesktop.org
</td>
</tr>
<tr>
<th>CC</th>
<td>intel-gfx-bugs@lists.freedesktop.org
</td>
</tr></table>
<p>
<div>
<pre>On 03 Nov 2016 drm-intel-nightly,
with i915.enable_guc_loading=1 i915.enable_guc_submission=1
Every couple dozens of seconds I get the following error:
[ 711.256431] BUG: sleeping function called from invalid context at
drivers/gpu/drm/i915/i915_gem.c:4991
[ 711.256446] in_atomic(): 1, irqs_disabled(): 1, pid: 1041, name: compiz
[ 711.256453] INFO: lockdep is turned off.
[ 711.256459] irq event stamp: 0
[ 711.256466] hardirqs last enabled at (0): [ 711.256472] [<
(null)>] (null)
[ 711.256478] hardirqs last disabled at (0): [ 711.256487]
[<ffffffff81097cbd>] copy_process.part.6+0x2cd/0x1fd0
[ 711.256493] softirqs last enabled at (0): [ 711.256500]
[<ffffffff81097cbd>] copy_process.part.6+0x2cd/0x1fd0
[ 711.256506] softirqs last disabled at (0): [ 711.256512] [<
(null)>] (null)
[ 711.256525] Preemption disabled at:[ 711.256557] [<ffffffffa0082961>]
__i915_add_request+0x181/0x3e0 [i915]
[ 711.256568] CPU: 1 PID: 1041 Comm: compiz Tainted: G U W
4.9.0-rc3nightly-031116+ #15
[ 711.256574] Hardware name: /NUC6i5SYB, BIOS
SYSKLi35.86A.0042.2016.0409.1246 04/09/2016
[ 711.256581] ffffc9000634b9a8 ffffffff8147f453 0000000000000000
ffff88082b5a8040
[ 711.256614] ffffc9000634b9e0 ffffffff810c7e94 ffffffffa0150c30
000000000000137f
[ 711.256640] 0000000000000000 ffff8808413a8000 ffff880844c93400
ffffc9000634ba08
[ 711.256669] Call Trace:
[ 711.256684] [<ffffffff8147f453>] dump_stack+0x86/0xc3
[ 711.256691] [<ffffffff810c7e94>] ___might_sleep+0x174/0x260
[ 711.256699] [<ffffffff810c7fca>] __might_sleep+0x4a/0x80
[ 711.256733] [<ffffffffa007f6e9>] i915_gem_object_get_sg+0x39/0x380 [i915]
[ 711.256767] [<ffffffffa00a0ace>] ? i915_guc_submit+0x3e/0x360 [i915]
[ 711.256798] [<ffffffffa0080292>] i915_gem_object_get_page+0x22/0x60 [i915]
[ 711.256829] [<ffffffffa00a0b71>] i915_guc_submit+0xe1/0x360 [i915]
[ 711.256859] [<ffffffffa0081ee1>] submit_notify+0xfd/0x17c [i915]
[ 711.256885] [<ffffffffa004365a>] __i915_sw_fence_complete+0xda/0x190 [i915]
[ 711.256906] [<ffffffffa0043727>] i915_sw_fence_complete+0x17/0x30 [i915]
[ 711.256924] [<ffffffffa0043aa2>] i915_sw_fence_commit+0x12/0x20 [i915]
[ 711.256948] [<ffffffffa008296d>] __i915_add_request+0x18d/0x3e0 [i915]
[ 711.256975] [<ffffffffa006b37f>]
i915_gem_do_execbuffer.isra.15+0xb5f/0x1a00 [i915]
[ 711.256985] [<ffffffff81865c0e>] ? mutex_unlock+0xe/0x10
[ 711.256994] [<ffffffff811dc753>] ? __might_fault+0x43/0xa0
[ 711.257025] [<ffffffffa006c602>] i915_gem_execbuffer2+0xc2/0x250 [i915]
[ 711.257035] [<ffffffff815c9c13>] drm_ioctl+0x203/0x4a0
[ 711.257059] [<ffffffffa006c540>] ? i915_gem_execbuffer+0x320/0x320 [i915]
[ 711.257070] [<ffffffff812498c5>] ? __fget+0x5/0x200
[ 711.257079] [<ffffffff8123c584>] do_vfs_ioctl+0x94/0x6b0
[ 711.257086] [<ffffffff812499cd>] ? __fget+0x10d/0x200
[ 711.257093] [<ffffffff812498c5>] ? __fget+0x5/0x200
[ 711.257101] [<ffffffff8123cbe1>] SyS_ioctl+0x41/0x70
[ 711.257110] [<ffffffff8186a205>] entry_SYSCALL_64_fastpath+0x23/0xc6
Introduced by:
"drm/i915: Use a radixtree for random access to the object's backing storage"</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
<li>You are on the CC list for the bug.</li>
<li>You are the QA Contact for the bug.</li>
</ul>
</body>
</html>