Hi Gerd
While doing some testing with your brance, I reached that:
On Wed, Apr 1, 2015 at 3:15 PM, Gerd Hoffmann <kraxel@xxxxxxxxxx> wrote:
+#define MAX_INLINE_CMD_SIZE 96
[ 750.446449] kernel BUG at drivers/gpu/drm/virtio/virtgpu_vq.c:132!
[ 750.447005] Call Trace:
[ 750.447005] [<ffffffffa00f3592>] virtio_gpu_alloc_cmd+0x22/0x50 [virtio_gpu]
[ 750.447005] [<ffffffffa00f4580>] virtio_gpu_cmd_context_create+0x30/0xa0 [virtio_gpu]
struct virtio_gpu_ctx_create {
struct virtio_gpu_ctrl_hdr hdr;
__le32 nlen;
__le32 padding;
char debug_name[64];
};
struct virtio_gpu_ctrl_hdr hdr;
__le32 nlen;
__le32 padding;
char debug_name[64];
};
Is actually 96 bytes.
Perhaps that condition should be changed:
+ BUG_ON(size >= MAX_INLINE_CMD_SIZE);
Perhaps that condition should be changed:
+ BUG_ON(size >= MAX_INLINE_CMD_SIZE);
--
Marc-André Lureau
_______________________________________________ dri-devel mailing list dri-devel@xxxxxxxxxxxxxxxxxxxxx http://lists.freedesktop.org/mailman/listinfo/dri-devel