Re: [PATCH 02/13] fbdev: add remove_conflicting_pci_framebuffers()

2017-12-11 Thread Sudip Mukherjee
Hi Emil, On Fri, Dec 01, 2017 at 02:40:11PM +, Emil Velikov wrote: > On 30 November 2017 at 23:49, Sudip Mukherjee > wrote: > > Hi Daniel, > > > > On Wed, Nov 29, 2017 at 10:56:34AM +0100, Daniel Vetter wrote: > > submit it to dri-devel. > > > A crazy idea,

[PATCH 1/3] virtio_pci: use put_device instead of kfree

2017-12-11 Thread weiping zhang
don't free vp_dev until vp_dev->vdev.dev.release be called. Signed-off-by: weiping zhang --- drivers/virtio/virtio_pci_common.c | 17 + 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/drivers/virtio/virtio_pci_common.c

[PATCH 3/3] virtio: put reference count of virtio_device.dev

2017-12-11 Thread weiping zhang
rproc_virtio_dev_release will be called iff virtio_device.dev's refer count became to 0. Here we should put vdev.dev, and then rproc->dev's cleanup will be done in rproc_virtio_dev_release. Signed-off-by: weiping zhang --- drivers/remoteproc/remoteproc_virtio.c | 2

[PATCH 2/3] virtio: use put_device instead of kfree

2017-12-11 Thread weiping zhang
don't free vp_vdev until vp_vdev.dev.release be called. Signed-off-by: weiping zhang --- drivers/misc/mic/vop/vop_main.c | 16 +--- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/drivers/misc/mic/vop/vop_main.c

[PATCH 0/3] fix cleanup for fail to register_virtio_device

2017-12-11 Thread weiping zhang
This series fix the cleanup for the caller of register_virtio_device, the main work is use put_device instead of kfree. weiping zhang (3): virtio_pci: use put_device instead of kfree virtio: use put_device instead of kfree virtio: put reference count of virtio_device.dev

Re: [PATCH] ptr_ring: add barriers

2017-12-11 Thread David Miller
From: "Michael S. Tsirkin" Date: Tue, 5 Dec 2017 21:29:37 +0200 > Users of ptr_ring expect that it's safe to give the > data structure a pointer and have it be available > to consumers, but that actually requires an smb_wmb > or a stronger barrier. > > In absence of such

Re: [PATCH v18 10/10] virtio-balloon: don't report free pages when page poisoning is enabled

2017-12-11 Thread Michael S. Tsirkin
On Mon, Dec 11, 2017 at 02:38:45PM +0800, Wei Wang wrote: > On 12/01/2017 11:49 PM, Michael S. Tsirkin wrote: > > On Wed, Nov 29, 2017 at 09:55:26PM +0800, Wei Wang wrote: > > > The guest free pages should not be discarded by the live migration thread > > > when page poisoning is enabled with