All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Michael S. Tsirkin" <mst@redhat.com>
To: Gerd Hoffmann <kraxel@redhat.com>
Cc: dri-devel@lists.freedesktop.org, virtio-dev@lists.oasis-open.org,
	airlied@gmail.com, airlied@redhat.com,
	David Airlie <airlied@linux.ie>,
	Rusty Russell <rusty@rustcorp.com.au>,
	open list <linux-kernel@vger.kernel.org>,
	"open list:ABI/API" <linux-api@vger.kernel.org>,
	"open list:VIRTIO CORE,
	NET..."  <virtualization@lists.linux-foundation.org>
Subject: Re: [PATCH v2 3/4] Add virtio gpu driver.
Date: Wed, 1 Apr 2015 15:31:02 +0200	[thread overview]
Message-ID: <20150401152857-mutt-send-email-mst@redhat.com> (raw)
In-Reply-To: <1427894130-14228-4-git-send-email-kraxel@redhat.com>

On Wed, Apr 01, 2015 at 03:15:29PM +0200, Gerd Hoffmann wrote:
> +int virtio_gpu_driver_unload(struct drm_device *dev)
> +{
> +	struct virtio_gpu_device *vgdev = dev->dev_private;
> +
> +	vgdev->vqs_ready = false;

Probably ok since flush below will sync all cpus,
but this needs a comment I think.

> +	flush_work(&vgdev->ctrlq.dequeue_work);
> +	flush_work(&vgdev->cursorq.dequeue_work);

I see there are a bunch of other work entries -
don't all of them need to be flushed?

> +	vgdev->vdev->config->del_vqs(vgdev->vdev);
> +
> +	virtio_gpu_modeset_fini(vgdev);
> +	virtio_gpu_ttm_fini(vgdev);
> +	virtio_gpu_free_vbufs(vgdev);
> +	kfree(vgdev);
> +	return 0;
> +}

WARNING: multiple messages have this Message-ID (diff)
From: "Michael S. Tsirkin" <mst@redhat.com>
To: Gerd Hoffmann <kraxel@redhat.com>
Cc: virtio-dev@lists.oasis-open.org, David Airlie <airlied@linux.ie>,
	"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>,
	airlied@redhat.com, airlied@gmail.com
Subject: Re: [PATCH v2 3/4] Add virtio gpu driver.
Date: Wed, 1 Apr 2015 15:31:02 +0200	[thread overview]
Message-ID: <20150401152857-mutt-send-email-mst@redhat.com> (raw)
In-Reply-To: <1427894130-14228-4-git-send-email-kraxel@redhat.com>

On Wed, Apr 01, 2015 at 03:15:29PM +0200, Gerd Hoffmann wrote:
> +int virtio_gpu_driver_unload(struct drm_device *dev)
> +{
> +	struct virtio_gpu_device *vgdev = dev->dev_private;
> +
> +	vgdev->vqs_ready = false;

Probably ok since flush below will sync all cpus,
but this needs a comment I think.

> +	flush_work(&vgdev->ctrlq.dequeue_work);
> +	flush_work(&vgdev->cursorq.dequeue_work);

I see there are a bunch of other work entries -
don't all of them need to be flushed?

> +	vgdev->vdev->config->del_vqs(vgdev->vdev);
> +
> +	virtio_gpu_modeset_fini(vgdev);
> +	virtio_gpu_ttm_fini(vgdev);
> +	virtio_gpu_free_vbufs(vgdev);
> +	kfree(vgdev);
> +	return 0;
> +}

  reply	other threads:[~2015-04-01 13:31 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 [this message]
2015-04-01 13:31     ` Michael S. Tsirkin
2015-04-02 15:52   ` Marc-André Lureau
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=20150401152857-mutt-send-email-mst@redhat.com \
    --to=mst@redhat.com \
    --cc=airlied@gmail.com \
    --cc=airlied@linux.ie \
    --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=rusty@rustcorp.com.au \
    --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.