Re: [PATCH 4/4] tun: indicate support for USO feature

2021-05-11 Thread Yuri Benditovich
On Wed, May 12, 2021 at 4:33 AM Jason Wang wrote: > > > 在 2021/5/11 下午4:33, Yuri Benditovich 写道: > > On Tue, May 11, 2021 at 9:50 AM Jason Wang wrote: > >> > >> 在 2021/5/11 下午12:42, Yuri Benditovich 写道: > >>> Signed-off-by: Yuri Benditovich > >>> --- > >>>drivers/net/tun.c | 2 +- > >>>1

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

2021-05-11 Thread Jie Deng
On 2021/4/15 15:21, Wolfram Sang wrote: I didn't forget this. It is a very small change. I'm not sure if the maintainer Wolfram has any comments so that I can address them together in one version. Noted. I'll have a look in the next days. Hi Wolfram, Kindly reminder. Hope this patch hasn't

Re: [PATCH 4/4] tun: indicate support for USO feature

2021-05-11 Thread Jason Wang
在 2021/5/11 下午4:33, Yuri Benditovich 写道: On Tue, May 11, 2021 at 9:50 AM Jason Wang wrote: 在 2021/5/11 下午12:42, Yuri Benditovich 写道: Signed-off-by: Yuri Benditovich --- drivers/net/tun.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/tun.c

Re: [PATCH 1/4] virtio-net: add definitions for host USO feature

2021-05-11 Thread Jason Wang
在 2021/5/11 下午5:21, Yuri Benditovich 写道: On Tue, May 11, 2021 at 11:24 AM Jason Wang wrote: On Tue, May 11, 2021 at 4:12 PM Yuri Benditovich wrote: On Tue, May 11, 2021 at 9:47 AM Jason Wang wrote: 在 2021/5/11 下午12:42, Yuri Benditovich 写道: Define feature bit and GSO type according to

Re: [PATCH 4/4] tun: indicate support for USO feature

2021-05-11 Thread Yuri Benditovich
On Tue, May 11, 2021 at 11:33 AM Yuri Benditovich wrote: > > On Tue, May 11, 2021 at 9:50 AM Jason Wang wrote: > > > > > > 在 2021/5/11 下午12:42, Yuri Benditovich 写道: > > > Signed-off-by: Yuri Benditovich > > > --- > > > drivers/net/tun.c | 2 +- > > > 1 file changed, 1 insertion(+), 1

Re: [PATCH 2/4] virtio-net: add support of UDP segmentation (USO) on the host

2021-05-11 Thread Willem de Bruijn
On Tue, May 11, 2021 at 12:43 AM Yuri Benditovich wrote: > > Large UDP packet provided by the guest with GSO type set to > VIRTIO_NET_HDR_GSO_UDP_L4 will be divided to several UDP > packets according to the gso_size field. > > Signed-off-by: Yuri Benditovich > --- > include/linux/virtio_net.h |

Re: [PATCH] virtiofs: Enable multiple request queues

2021-05-11 Thread Connor Kuehl
On 5/11/21 5:23 AM, Stefan Hajnoczi wrote: > On Fri, May 07, 2021 at 05:15:27PM -0500, Connor Kuehl wrote: >> @@ -1245,7 +1262,8 @@ __releases(fiq->lock) >> req->in.h.nodeid, req->in.h.len, >> fuse_len_args(req->args->out_numargs, req->args->out_args)); >> >> -

[PATCH 2/2] drm/qxl: balance dumb_shadow_bo pin

2021-05-11 Thread Gerd Hoffmann
The shadow bo is created in pinned state, so we have to unpin it when dropping the reference. Otherwise ttm is unhappy and throws a WARN() on release. Signed-off-by: Gerd Hoffmann --- drivers/gpu/drm/qxl/qxl_display.c | 1 + 1 file changed, 1 insertion(+) diff --git

[PATCH 1/2] drm/qxl: drop redundant code

2021-05-11 Thread Gerd Hoffmann
Not needed, qxl_io_destroy_primary() does that for us. Signed-off-by: Gerd Hoffmann --- drivers/gpu/drm/qxl/qxl_display.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/gpu/drm/qxl/qxl_display.c b/drivers/gpu/drm/qxl/qxl_display.c index

Re: [PATCH] virtiofs: Enable multiple request queues

2021-05-11 Thread Stefan Hajnoczi
On Fri, May 07, 2021 at 05:15:27PM -0500, Connor Kuehl wrote: > @@ -1245,7 +1262,8 @@ __releases(fiq->lock) >req->in.h.nodeid, req->in.h.len, >fuse_len_args(req->args->out_numargs, req->args->out_args)); > > - fsvq = >vqs[queue_id]; > + fsvq =

Re: [PATCH 1/4] virtio-net: add definitions for host USO feature

2021-05-11 Thread Yuri Benditovich
On Tue, May 11, 2021 at 11:24 AM Jason Wang wrote: > > On Tue, May 11, 2021 at 4:12 PM Yuri Benditovich > wrote: > > > > On Tue, May 11, 2021 at 9:47 AM Jason Wang wrote: > > > > > > > > > 在 2021/5/11 下午12:42, Yuri Benditovich 写道: > > > > Define feature bit and GSO type according to the VIRTIO

Re: [PATCH] drm/ttm: use dma_alloc_pages for the page pool

2021-05-11 Thread Christian König
Am 11.05.21 um 10:50 schrieb Christoph Hellwig: On Tue, May 11, 2021 at 09:35:20AM +0200, Christian König wrote: We certainly going to need the drm_need_swiotlb() for userptr support (unless we add some approach for drivers to opt out of swiotlb). swiotlb use is driven by three things: 1)

Re: [PATCH] drm/ttm: use dma_alloc_pages for the page pool

2021-05-11 Thread Christoph Hellwig
On Tue, May 11, 2021 at 09:35:20AM +0200, Christian König wrote: > We certainly going to need the drm_need_swiotlb() for userptr support > (unless we add some approach for drivers to opt out of swiotlb). swiotlb use is driven by three things: 1) addressing limitations of the device 2)

Re: [RFC PATCH] vdpa: mandate 1.0 device

2021-05-11 Thread Jason Wang
- 原始邮件 - > > 在 2021/4/21 下午4:03, Michael S. Tsirkin 写道: > > On Wed, Apr 21, 2021 at 03:41:36PM +0800, Jason Wang wrote: > >> 在 2021/4/12 下午5:23, Jason Wang 写道: > >>> 在 2021/4/12 下午5:09, Michael S. Tsirkin 写道: > On Mon, Apr 12, 2021 at 02:35:07PM +0800, Jason Wang wrote: > > 在

Re: [PATCH 4/4] tun: indicate support for USO feature

2021-05-11 Thread Yuri Benditovich
On Tue, May 11, 2021 at 9:50 AM Jason Wang wrote: > > > 在 2021/5/11 下午12:42, Yuri Benditovich 写道: > > Signed-off-by: Yuri Benditovich > > --- > > drivers/net/tun.c | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > diff --git a/drivers/net/tun.c b/drivers/net/tun.c > > index

Re: [PATCH 2/4] virtio-net: add support of UDP segmentation (USO) on the host

2021-05-11 Thread Jason Wang
On Tue, May 11, 2021 at 4:24 PM Yuri Benditovich wrote: > > On Tue, May 11, 2021 at 9:47 AM Jason Wang wrote: > > > > > > 在 2021/5/11 下午12:42, Yuri Benditovich 写道: > > > Large UDP packet provided by the guest with GSO type set to > > > VIRTIO_NET_HDR_GSO_UDP_L4 will be divided to several UDP > >

Re: [PATCH 1/4] virtio-net: add definitions for host USO feature

2021-05-11 Thread Jason Wang
On Tue, May 11, 2021 at 4:12 PM Yuri Benditovich wrote: > > On Tue, May 11, 2021 at 9:47 AM Jason Wang wrote: > > > > > > 在 2021/5/11 下午12:42, Yuri Benditovich 写道: > > > Define feature bit and GSO type according to the VIRTIO > > > specification. > > > > > > Signed-off-by: Yuri Benditovich > >

Re: [PATCH 2/4] virtio-net: add support of UDP segmentation (USO) on the host

2021-05-11 Thread Yuri Benditovich
On Tue, May 11, 2021 at 9:47 AM Jason Wang wrote: > > > 在 2021/5/11 下午12:42, Yuri Benditovich 写道: > > Large UDP packet provided by the guest with GSO type set to > > VIRTIO_NET_HDR_GSO_UDP_L4 will be divided to several UDP > > packets according to the gso_size field. > > > > Signed-off-by: Yuri

Re: [PATCH 1/4] virtio-net: add definitions for host USO feature

2021-05-11 Thread Yuri Benditovich
On Tue, May 11, 2021 at 9:47 AM Jason Wang wrote: > > > 在 2021/5/11 下午12:42, Yuri Benditovich 写道: > > Define feature bit and GSO type according to the VIRTIO > > specification. > > > > Signed-off-by: Yuri Benditovich > > --- > > include/uapi/linux/virtio_net.h | 2 ++ > > 1 file changed, 2

Re: [PATCH] drm/ttm: use dma_alloc_pages for the page pool

2021-05-11 Thread Christian König
Am 11.05.21 um 08:05 schrieb Christoph Hellwig: Use the dma_alloc_pages allocator for the TTM pool allocator. This allocator is a front end to the page allocator which takes the DMA mask of the device into account, thus offering the best of both worlds of the two existing allocator versions.

Re: [PATCH 4/4] tun: indicate support for USO feature

2021-05-11 Thread Jason Wang
在 2021/5/11 下午12:42, Yuri Benditovich 写道: Signed-off-by: Yuri Benditovich --- drivers/net/tun.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/tun.c b/drivers/net/tun.c index 84f832806313..a35054f9d941 100644 --- a/drivers/net/tun.c +++ b/drivers/net/tun.c

Re: [PATCH 2/4] virtio-net: add support of UDP segmentation (USO) on the host

2021-05-11 Thread Jason Wang
在 2021/5/11 下午12:42, Yuri Benditovich 写道: Large UDP packet provided by the guest with GSO type set to VIRTIO_NET_HDR_GSO_UDP_L4 will be divided to several UDP packets according to the gso_size field. Signed-off-by: Yuri Benditovich --- include/linux/virtio_net.h | 5 + 1 file changed,

Re: [PATCH 1/4] virtio-net: add definitions for host USO feature

2021-05-11 Thread Jason Wang
在 2021/5/11 下午12:42, Yuri Benditovich 写道: Define feature bit and GSO type according to the VIRTIO specification. Signed-off-by: Yuri Benditovich --- include/uapi/linux/virtio_net.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/uapi/linux/virtio_net.h

[PATCH] drm/ttm: use dma_alloc_pages for the page pool

2021-05-11 Thread Christoph Hellwig
Use the dma_alloc_pages allocator for the TTM pool allocator. This allocator is a front end to the page allocator which takes the DMA mask of the device into account, thus offering the best of both worlds of the two existing allocator versions. This conversion also removes the ugly layering

RFC: use dma_alloc_noncoherent in ttm_pool_alloc_page

2021-05-11 Thread Christoph Hellwig
Hi all, the memory allocation for the TTM pool is a big mess with two allocation methods that both have issues, a layering violation and odd guessing of pools in the callers. This patch switches to the dma_alloc_noncoherent API instead fixing all of the above issues. Warning: i don't have any