<div dir="ltr"><div class="gmail_extra">Hi Gerd<br><br></div><div class="gmail_extra">While doing some testing with your brance, I reached that:<br><br></div><div class="gmail_extra"><div class="gmail_quote">On Wed, Apr 1, 2015 at 3:15 PM, Gerd Hoffmann <span dir="ltr"><<a href="mailto:kraxel@redhat.com" target="_blank">kraxel@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div id=":2bb" class="" style="overflow:hidden">
+#define <span class="">MAX_INLINE_CMD_SIZE</span>   96</div></blockquote></div><br>[  750.446449] kernel BUG at drivers/gpu/drm/virtio/virtgpu_vq.c:132!<br>[  750.447005] Call Trace:<br>[  750.447005]  [<ffffffffa00f3592>] virtio_gpu_alloc_cmd+0x22/0x50 [virtio_gpu]<br>[  750.447005]  [<ffffffffa00f4580>] virtio_gpu_cmd_context_create+0x30/0xa0 [virtio_gpu]<br><br><br clear="all"></div><div class="gmail_extra">struct virtio_gpu_ctx_create {<br>        struct virtio_gpu_ctrl_hdr hdr;<br>        __le32 nlen;<br>        __le32 padding;<br>        char debug_name[64];<br>};<br><br></div><div class="gmail_extra">Is actually 96 bytes.<br><br>Perhaps that condition should be changed:<br>
+       BUG_ON(<span class="">size</span> >= <span class="">MAX_INLINE_CMD_SIZE</span>);<br><br></div><div class="gmail_extra">-- <br><div class="gmail_signature">Marc-André Lureau</div>
</div></div>