Re: [PATCH 1/3] drm/bochs: Move to tiny/

2021-06-30 Thread kernel test robot
Hi Thomas, I love your patch! Perhaps something to improve: [auto build test WARNING on next-20210630] [cannot apply to linus/master v5.13 v5.13-rc7 v5.13-rc6 v5.13] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base

[RFC PATCH] drm/bochs: bochs_mode_funcs can be static

2021-06-30 Thread kernel test robot
drivers/gpu/drm/tiny/bochs.c:542:36: warning: symbol 'bochs_mode_funcs' was not declared. Should it be static? Reported-by: kernel test robot Signed-off-by: kernel test robot --- bochs.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/tiny/bochs.c

[PATCH v11] i2c: virtio: add a virtio i2c frontend driver

2021-06-30 Thread Jie Deng
Add an I2C bus driver for virtio para-virtualization. The controller can be emulated by the backend driver in any device model software by following the virtio protocol. The device specification can be found on https://lists.oasis-open.org/archives/virtio-comment/202101/msg8.html. By

Re: [PATCH linux-next v3 2/6] vdpa: Introduce query of device config layout

2021-06-30 Thread Jason Wang
在 2021/6/30 下午2:03, Parav Pandit 写道: Hi Jason, From: Jason Wang Sent: Wednesday, June 30, 2021 10:02 AM It looks to we don't need the rest of fields in the virtio_net_config to build the config since they are all hardware attributes. Today it is only mac and max queues. Later on we may

Re: [PATCH v11] i2c: virtio: add a virtio i2c frontend driver

2021-06-30 Thread Viresh Kumar
On 01-07-21, 11:24, Jie Deng wrote: > Changes v10 -> v11 > - Remove vi->adap.class = I2C_CLASS_DEPRECATED. > - Use #ifdef CONFIG_PM_SLEEP to replace the "__maybe_unused". > - Remove "struct mutex lock" in "struct virtio_i2c". > - Support zero-length request. > -

RE: [PATCH linux-next v3 2/6] vdpa: Introduce query of device config layout

2021-06-30 Thread Parav Pandit
Hi Jason, > From: Jason Wang > Sent: Wednesday, June 30, 2021 10:02 AM > >> It looks to we don't need the rest of fields in the virtio_net_config > >> to build the config since they are all hardware attributes. > > Today it is only mac and max queues. Later on we may need to define rss >

Re: [PATCH v10] i2c: virtio: add a virtio i2c frontend driver

2021-06-30 Thread Jie Deng
On 2021/6/29 18:07, Wolfram Sang wrote: Hi, so some minor comments left: + if (!msgs[i].len) + break; I hope this can extended in the future to allow zero-length messages. If this is impossible we need to set an adapter quirk instead. Yes, we can

Re: Re: [PATCH v8 09/10] vduse: Introduce VDUSE - vDPA Device in Userspace

2021-06-30 Thread Stefan Hajnoczi
On Tue, Jun 29, 2021 at 10:59:51AM +0800, Yongji Xie wrote: > On Mon, Jun 28, 2021 at 9:02 PM Stefan Hajnoczi wrote: > > > > On Tue, Jun 15, 2021 at 10:13:30PM +0800, Xie Yongji wrote: > > > +/* ioctls */ > > > + > > > +struct vduse_dev_config { > > > + char name[VDUSE_NAME_MAX]; /* vduse

Re: [PATCH v10] i2c: virtio: add a virtio i2c frontend driver

2021-06-30 Thread Andy Shevchenko
On Wed, Jun 30, 2021 at 09:55:49AM +0200, Arnd Bergmann wrote: > On Wed, Jun 30, 2021 at 9:51 AM Jie Deng wrote: ... > On a related note, we are apparently still missing the bit in the virtio bus > layer that fills in the dev->of_node pointer of the virtio device. Without > this, it is not

Re: [PATCH v10] i2c: virtio: add a virtio i2c frontend driver

2021-06-30 Thread Arnd Bergmann
On Wed, Jun 30, 2021 at 9:51 AM Jie Deng wrote: > On 2021/6/30 15:32, Wolfram Sang wrote: > + snprintf(vi->adap.name, sizeof(vi->adap.name), "Virtio I2C Adapter"); > >>> Is there something to add so you can distinguish multiple instances? > >>> Most people want that. > >> > >> I find the

Re: [PATCH v10] i2c: virtio: add a virtio i2c frontend driver

2021-06-30 Thread Arnd Bergmann
On Wed, Jun 30, 2021 at 10:09 AM Andy Shevchenko wrote: > > On Wed, Jun 30, 2021 at 09:55:49AM +0200, Arnd Bergmann wrote: > > On Wed, Jun 30, 2021 at 9:51 AM Jie Deng wrote: > > ... > > > On a related note, we are apparently still missing the bit in the virtio bus > > layer that fills in the

Re: [PATCH v10] i2c: virtio: add a virtio i2c frontend driver

2021-06-30 Thread Jie Deng
On 2021/6/30 15:32, Wolfram Sang wrote: + snprintf(vi->adap.name, sizeof(vi->adap.name), "Virtio I2C Adapter"); Is there something to add so you can distinguish multiple instances? Most people want that. I find the I2C core will set a device name "i2c-%d" for this purpose, right? I

Re: Re: [PATCH v8 10/10] Documentation: Add documentation for VDUSE

2021-06-30 Thread Stefan Hajnoczi
On Tue, Jun 29, 2021 at 01:43:11PM +0800, Yongji Xie wrote: > On Mon, Jun 28, 2021 at 9:02 PM Stefan Hajnoczi wrote: > > On Tue, Jun 15, 2021 at 10:13:31PM +0800, Xie Yongji wrote: > > > + static void *iova_to_va(int dev_fd, uint64_t iova, uint64_t *len) > > > + { > > > + int

Re: [RFC PATCH v1 11/16] afvsock: add 'seqpacket_drop()'

2021-06-30 Thread Stefano Garzarella
On Mon, Jun 28, 2021 at 01:04:12PM +0300, Arseny Krasnov wrote: >Add special callback for SEQPACKET socket which is called when >we need to drop current in-progress record: part of record was >copied successfully, reader wait rest of record, but signal >interrupts it and reader leaves it's loop,

Re: [PATCH v10] i2c: virtio: add a virtio i2c frontend driver

2021-06-30 Thread Viresh Kumar
On 30-06-21, 16:38, Wolfram Sang wrote: > > While we are at it, this has been replaced by a Rust counterpart [1] > > (as that makes it hypervisor agnostic, which is the goal of my work > > here) and I need someone with I2C knowledge to help review it. It > > should be okay even if you don't

Re: [RFC PATCH v1 05/16] af_vsock: use SOCK_STREAM function to check data

2021-06-30 Thread Stefano Garzarella
On Mon, Jun 28, 2021 at 01:02:47PM +0300, Arseny Krasnov wrote: >Also remove 'seqpacket_has_data' callback from transport. > >Signed-off-by: Arseny Krasnov >--- > include/net/af_vsock.h | 1 - > net/vmw_vsock/af_vsock.c | 12 +--- > 2 files changed, 1 insertion(+), 12 deletions(-) In

[PATCH 1/3] drm/bochs: Move to tiny/

2021-06-30 Thread Thomas Zimmermann
The bochs driver is only ~600 lines of code. Putting it into tiny/ cleans up the DRM directory slightly. Some style problems were fixed and unneeded include statements were removed. No functional changes. Signed-off-by: Thomas Zimmermann --- MAINTAINERS | 2 +-

[PATCH 0/3] drm/bochs: Move to tiny/ and simplify

2021-06-30 Thread Thomas Zimmermann
Move the bochs driver to tiny/ and simplify the clean-up code. Also update GEM VRAM helpers accordingly. Thomas Zimmermann (3): drm/bochs: Move to tiny/ drm/bochs: Use managed initialization for GEM VRAM helpers drm/vram-helper: Unexport drm_vram_helper_{alloc,release}_mm() MAINTAINERS

[PATCH 2/3] drm/bochs: Use managed initialization for GEM VRAM helpers

2021-06-30 Thread Thomas Zimmermann
Convert to managed GEM VRAM initialization and switch bochs to full autocleanup. Signed-off-by: Thomas Zimmermann --- drivers/gpu/drm/tiny/bochs.c | 43 +--- 1 file changed, 5 insertions(+), 38 deletions(-) diff --git a/drivers/gpu/drm/tiny/bochs.c

[PATCH 3/3] drm/vram-helper: Unexport drm_vram_helper_{alloc, release}_mm()

2021-06-30 Thread Thomas Zimmermann
All GEM-VRAM-based drivers use auto-cleanup via drmm_vram_helper_init(). Unexport the manual APIs and make them internal implementation. Signed-off-by: Thomas Zimmermann --- drivers/gpu/drm/drm_gem_vram_helper.c | 9 +++-- include/drm/drm_gem_vram_helper.h | 4 2 files changed, 3

Re: [RFC PATCH v1 16/16] vsock_test: SEQPACKET read to broken buffer

2021-06-30 Thread Stefano Garzarella
On Mon, Jun 28, 2021 at 01:05:36PM +0300, Arseny Krasnov wrote: >Add test where sender sends two message, each with own >data pattern. Reader tries to read first to broken buffer: >it has three pages size, but middle page is unmapped. Then, >reader tries to read second message to valid buffer.

Re: [PATCH 1/3] drm/bochs: Move to tiny/

2021-06-30 Thread Daniel Vetter
On Wed, Jun 30, 2021 at 04:06:57PM +0200, Thomas Zimmermann wrote: > The bochs driver is only ~600 lines of code. Putting it into tiny/ > cleans up the DRM directory slightly. Some style problems were fixed > and unneeded include statements were removed. No functional changes. > > Signed-off-by:

Re: [RFC PATCH v1 07/16] virtio/vsock: don't count EORs on receive

2021-06-30 Thread Stefano Garzarella
On Mon, Jun 28, 2021 at 01:03:15PM +0300, Arseny Krasnov wrote: >There is no sense to count EORs, because 'rx_bytes' is >used to check data presence on socket. > >Signed-off-by: Arseny Krasnov >--- > net/vmw_vsock/virtio_transport_common.c | 3 --- > 1 file changed, 3 deletions(-) > >diff --git

Re: [RFC PATCH v1 08/16] af_vsock: change SEQPACKET receive loop

2021-06-30 Thread Stefano Garzarella
On Mon, Jun 28, 2021 at 01:03:28PM +0300, Arseny Krasnov wrote: >Receive "loop" now really loop: it reads fragments one by >one, sleeping if queue is empty. > >NOTE: 'msg_ready' pointer is not passed to 'seqpacket_dequeue()' >here - it change callback interface, so it is moved to next patch. >

Re: [PATCH 2/3] vDPA/ifcvf: implement management netlink framework for ifcvf

2021-06-30 Thread kernel test robot
Hi Zhu, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on linus/master] [also build test WARNING on v5.13 next-20210630] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented