Re: [RFC PATCH net-next 15/19] pds_vdpa: virtio bar setup for vdpa

2022-11-21 Thread Jason Wang
On Tue, Nov 22, 2022 at 11:32 AM Jason Wang wrote: > > > 在 2022/11/19 06:56, Shannon Nelson 写道: > > The PDS vDPA device has a virtio BAR for describing itself, and > > the pds_vdpa driver needs to access it. Here we copy liberally > > from the existing drivers/virtio/virtio_pci_modern_dev.c as it

Re: [RFC PATCH net-next 19/19] pds_vdpa: add Kconfig entry and pds_vdpa.rst

2022-11-21 Thread Jason Wang
On Sat, Nov 19, 2022 at 6:57 AM Shannon Nelson wrote: > > Signed-off-by: Shannon Nelson > --- > .../ethernet/pensando/pds_vdpa.rst| 85 +++ > MAINTAINERS | 1 + > drivers/vdpa/Kconfig | 7 ++ > 3 files chang

Re: [RFC PATCH net-next 18/19] pds_vdpa: add support for vdpa and vdpamgmt interfaces

2022-11-21 Thread Jason Wang
On Sat, Nov 19, 2022 at 6:57 AM Shannon Nelson wrote: > > This is the vDPA device support, where we advertise that we can > support the virtio queues and deal with the configuration work > through the pds_core's adminq. > > Signed-off-by: Shannon Nelson > --- > drivers/vdpa/pds/Makefile | 3

Re: [RFC PATCH net-next 17/19] pds_vdpa: add vdpa config client commands

2022-11-21 Thread Jason Wang
On Sat, Nov 19, 2022 at 6:57 AM Shannon Nelson wrote: > > These are the adminq commands that will be needed for > setting up and using the vDPA device. > > Signed-off-by: Shannon Nelson > --- > drivers/vdpa/pds/Makefile | 1 + > drivers/vdpa/pds/cmds.c | 266 +

Re: [RFC PATCH net-next 14/19] pds_vdpa: Add new PCI VF device for PDS vDPA services

2022-11-21 Thread Jason Wang
在 2022/11/19 06:56, Shannon Nelson 写道: This is the initial PCI driver framework for the new pds_vdpa VF device driver, an auxiliary_bus client of the pds_core driver. This does the very basics of registering for the new PCI device 1dd8:100b, setting up debugfs entries, and registering with devli

Re: [RFC PATCH net-next 15/19] pds_vdpa: virtio bar setup for vdpa

2022-11-21 Thread Jason Wang
在 2022/11/19 06:56, Shannon Nelson 写道: The PDS vDPA device has a virtio BAR for describing itself, and the pds_vdpa driver needs to access it. Here we copy liberally from the existing drivers/virtio/virtio_pci_modern_dev.c as it has what we need, but we need to modify it so that it can work wit

Re: [PATCH] virtio_net: Fix probe failed when modprobe virtio_net

2022-11-21 Thread Michael S. Tsirkin
On Mon, Nov 21, 2022 at 09:29:35PM +0800, Li Zetao wrote: > When doing the following test steps, an error was found: > step 1: modprobe virtio_net succeeded > # modprobe virtio_net<-- OK > > step 2: fault injection in register_netdevice() > # modprobe -r virtio_net <-- OK >

Re: [RFC PATCH v1 3/3] test/vsock: vsock_perf utility

2022-11-21 Thread Stefano Garzarella
On Tue, Nov 15, 2022 at 08:54:05PM +, Arseniy Krasnov wrote: This adds utility to check vsock receive performance. A small example on how to use it here in the commit message would be nice. Signed-off-by: Arseniy Krasnov --- tools/testing/vsock/Makefile | 1 + Please, can you a

Re: [RFC PATCH v1 2/3] test/vsock: add big message test

2022-11-21 Thread Stefano Garzarella
On Tue, Nov 15, 2022 at 08:52:35PM +, Arseniy Krasnov wrote: This adds test for sending message, bigger than peer's buffer size. For SOCK_SEQPACKET socket it must fail, as this type of socket has message size limit. Signed-off-by: Arseniy Krasnov --- tools/testing/vsock/vsock_test.c | 62 ++

Re: [RFC PATCH v1 1/3] test/vsock: rework message bound test

2022-11-21 Thread Stefano Garzarella
On Tue, Nov 15, 2022 at 08:50:36PM +, Arseniy Krasnov wrote: This updates message bound test making it more complex. Instead of sending 1 bytes messages with one MSG_EOR bit, it sends messages of random length(one half of messages are smaller than page size, second half are bigger) with rando

Re: [PATCH v2 7/9] dt-bindings: drop redundant part of title (beginning)

2022-11-21 Thread Geert Uytterhoeven
On Mon, Nov 21, 2022 at 12:09 PM Krzysztof Kozlowski wrote: > The Devicetree bindings document does not have to say in the title that > it is a "Devicetree binding", but instead just describe the hardware. > > Drop beginning "Devicetree bindings" in various forms: > > find Documentation/devicetr

[PATCH v2] virtio_blk: add VIRTIO_BLK_F_LIFETIME feature support

2022-11-21 Thread Alvaro Karsz
Implement the VIRTIO_BLK_F_LIFETIME feature for VirtIO block devices. This commit introduces a new ioctl command, VBLK_LIFETIME. VBLK_LIFETIME ioctl asks for the block device to provide lifetime information by sending a VIRTIO_BLK_T_GET_LIFETIME command to the device. lifetime information fields