Re: [PATCH v12 02/40] virtio: struct virtio_config_ops add callbacks for queue_reset

2022-07-20 Thread Jason Wang
在 2022/7/20 11:03, Xuan Zhuo 写道: reset can be divided into the following four steps (example): 1. transport: notify the device to reset the queue 2. vring: recycle the buffer submitted 3. vring: reset/resize the vring (may re-alloc) 4. transport: mmap vring to device, and enable

Re: [PATCH v12 01/40] virtio: record the maximum queue num supported by the device.

2022-07-20 Thread Jason Wang
在 2022/7/20 11:03, Xuan Zhuo 写道: virtio-net can display the maximum (supported by hardware) ring size in ethtool -g eth0. When the subsequent patch implements vring reset, it can judge whether the ring size passed by the driver is legal based on this. Signed-off-by: Xuan Zhuo Acked-by: Jaso

Re: [PATCH v4 3/3] asm-generic: Add new pci.h and use it

2022-07-20 Thread Bjorn Helgaas
On Wed, Jul 20, 2022 at 10:19:34PM +0900, Stafford Horne wrote: > The asm/pci.h used for many newer architectures share similar > definitions. Move the common parts to asm-generic/pci.h to allow for > sharing code. > > One thing to note: > > - ARCH_GENERIC_PCI_MMAP_RESOURCE, csky does not defin

[PATCH] um:do not initialise statics to 0.

2022-07-20 Thread Xin Gao
do not initialise statics to 0. Signed-off-by: Xin Gao --- arch/um/drivers/stdio_console.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/um/drivers/stdio_console.c b/arch/um/drivers/stdio_console.c index e8b762f4d8c2..e0f7543ef499 100644 --- a/arch/um/drivers/stdio_con

[PATCH] kernel:do not initialise statics to 0.

2022-07-20 Thread Xin Gao
do not initialise statics to 0. Signed-off-by: Xin Gao --- arch/um/drivers/mconsole_kern.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/um/drivers/mconsole_kern.c b/arch/um/drivers/mconsole_kern.c index 8ca67a692683..de40e7822fa6 100644 --- a/arch/um/drivers/mconsole_

[PATCH] ubd:do not initialise statics to 0.

2022-07-20 Thread Xin Gao
do not initialise statics to 0. Signed-off-by: Xin Gao --- arch/um/drivers/ubd_kern.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/um/drivers/ubd_kern.c b/arch/um/drivers/ubd_kern.c index c4344b67628d..ae2fb671ba72 100644 --- a/arch/um/drivers/ubd_kern.c +++ b/arch/um

[PATCH] um:do not initialise statics to 0.

2022-07-20 Thread Xin Gao
do not initialise statics to 0. Signed-off-by: Xin Gao --- arch/um/drivers/ssl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/um/drivers/ssl.c b/arch/um/drivers/ssl.c index 41eae2e8fb65..891e9c83d407 100644 --- a/arch/um/drivers/ssl.c +++ b/arch/um/drivers/ssl.c @@ -1

Re: [PATCH v4 3/3] asm-generic: Add new pci.h and use it

2022-07-20 Thread Christoph Hellwig
Looks good: Reviewed-by: Christoph Hellwig ___ linux-um mailing list linux-um@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-um

Re: [PATCH v4 3/3] asm-generic: Add new pci.h and use it

2022-07-20 Thread Arnd Bergmann
On Wed, Jul 20, 2022 at 3:19 PM Stafford Horne wrote: > > The asm/pci.h used for many newer architectures share similar > definitions. Move the common parts to asm-generic/pci.h to allow for > sharing code. > > One thing to note: > > - ARCH_GENERIC_PCI_MMAP_RESOURCE, csky does not define this so

Re: [PATCH v2 2/2] asm-generic: Add new pci.h and use it

2022-07-20 Thread Stafford Horne
On Tue, Jul 19, 2022 at 03:09:35PM +, David Laight wrote: > From: Stafford Horne > > Sent: 19 July 2022 13:24 > > > > On Tue, Jul 19, 2022 at 01:55:03PM +0200, Arnd Bergmann wrote: > > > On Tue, Jul 19, 2022 at 12:55 PM Stafford Horne wrote: > > Option 3: > > > > > Or we could try to keep t

Re: [PATCH v2 2/2] asm-generic: Add new pci.h and use it

2022-07-20 Thread Stafford Horne
On Tue, Jul 19, 2022 at 07:32:46AM -0700, Christoph Hellwig wrote: > On Tue, Jul 19, 2022 at 10:05:46PM +0900, Stafford Horne wrote: > > > > Or we could try to keep the generic definition in a global header > > > > like linux/isa-dma.h. > > > > > > Perhaps option 3 makes the whole patch the most c

[PATCH v4 3/3] asm-generic: Add new pci.h and use it

2022-07-20 Thread Stafford Horne
The asm/pci.h used for many newer architectures share similar definitions. Move the common parts to asm-generic/pci.h to allow for sharing code. One thing to note: - ARCH_GENERIC_PCI_MMAP_RESOURCE, csky does not define this so we undefine it after including asm-generic/pci.h. Why doesn't cs