All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Marc-André Lureau" <marcandre.lureau@gmail.com>
To: Gerd Hoffmann <kraxel@redhat.com>
Cc: virtio-dev@lists.oasis-open.org,
	"Michael S. Tsirkin" <mst@redhat.com>,
	"open list:ABI/API" <linux-api@vger.kernel.org>,
	open list <linux-kernel@vger.kernel.org>,
	dri-devel@lists.freedesktop.org, "open list:VIRTIO CORE,
	NET..." <virtualization@lists.linux-foundation.org>,
	David Airlie <airlied@redhat.com>
Subject: Re: [PATCH v2 3/4] Add virtio gpu driver.
Date: Thu, 2 Apr 2015 17:52:40 +0200	[thread overview]
Message-ID: <CAJ+F1CK3ibbn8e1-rUY4OUJuaCt_=JmuT00Fqx4YDD9M5zJv=A__41566.6942870759$1427994414$gmane$org@mail.gmail.com> (raw)
In-Reply-To: <1427894130-14228-4-git-send-email-kraxel@redhat.com>


[-- Attachment #1.1: Type: text/plain, Size: 766 bytes --]

Hi Gerd

While doing some testing with your brance, I reached that:

On Wed, Apr 1, 2015 at 3:15 PM, Gerd Hoffmann <kraxel@redhat.com> 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];
};

Is actually 96 bytes.

Perhaps that condition should be changed:
+       BUG_ON(size >= MAX_INLINE_CMD_SIZE);

-- 
Marc-André Lureau

[-- Attachment #1.2: Type: text/html, Size: 1489 bytes --]

[-- Attachment #2: Type: text/plain, Size: 183 bytes --]

_______________________________________________
Virtualization mailing list
Virtualization@lists.linux-foundation.org
https://lists.linuxfoundation.org/mailman/listinfo/virtualization

  parent reply	other threads:[~2015-04-02 15:52 UTC|newest]

Thread overview: 36+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-04-01 13:15 [PATCH v2 0/4] Add virtio gpu driver Gerd Hoffmann
2015-04-01 13:15 ` [PATCH v2 1/4] break kconfig dependency loop Gerd Hoffmann
2015-04-01 13:15   ` Gerd Hoffmann
2015-04-01 13:47   ` Jani Nikula
2015-04-01 13:47     ` Jani Nikula
2015-04-06  9:50     ` Paul Bolle
2015-04-06  9:50       ` Paul Bolle
2015-04-06 14:27       ` Mauro Carvalho Chehab
2015-04-01 14:55   ` John Hunter
2015-04-01 15:08     ` Michael S. Tsirkin
2015-04-01 15:08       ` Michael S. Tsirkin
2015-04-01 15:38     ` Gerd Hoffmann
2015-04-01 15:38       ` Gerd Hoffmann
2015-05-14 18:23   ` Mauro Carvalho Chehab
2015-05-14 18:23     ` Mauro Carvalho Chehab
2015-04-01 13:15 ` [PATCH v2 2/4] drm_vblank_get: don't WARN_ON in case vblanks are not initialized Gerd Hoffmann
2015-04-01 13:15   ` Gerd Hoffmann
2015-04-02 13:37   ` Alex Deucher
2015-04-01 13:15 ` [PATCH v2 3/4] Add virtio gpu driver Gerd Hoffmann
2015-04-01 13:15 ` Gerd Hoffmann
2015-04-01 13:15   ` Gerd Hoffmann
2015-04-01 13:31   ` Michael S. Tsirkin
2015-04-01 13:31     ` Michael S. Tsirkin
2015-04-02 15:52   ` Marc-André Lureau [this message]
2015-04-02 15:52   ` Marc-André Lureau
2015-04-07  9:41     ` Gerd Hoffmann
2015-04-07  9:41     ` Gerd Hoffmann
2015-04-07  9:41       ` Gerd Hoffmann
2015-04-01 13:15 ` [PATCH v2 4/4] Add virtio-vga bits Gerd Hoffmann
2015-04-01 13:15 ` Gerd Hoffmann
2015-04-01 13:15   ` Gerd Hoffmann
2015-04-01 13:26   ` Michael S. Tsirkin
2015-04-01 13:26   ` Michael S. Tsirkin
2015-04-01 13:26     ` Michael S. Tsirkin
2015-04-01 13:42     ` Gerd Hoffmann
2015-04-01 13:42       ` Gerd Hoffmann

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAJ+F1CK3ibbn8e1-rUY4OUJuaCt_=JmuT00Fqx4YDD9M5zJv=A__41566.6942870759$1427994414$gmane$org@mail.gmail.com' \
    --to=marcandre.lureau@gmail.com \
    --cc=airlied@redhat.com \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=kraxel@redhat.com \
    --cc=linux-api@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mst@redhat.com \
    --cc=virtio-dev@lists.oasis-open.org \
    --cc=virtualization@lists.linux-foundation.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.