netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Gautam Dawar <gdawar@amd.com>
To: Jason Wang <jasowang@redhat.com>, Gautam Dawar <gautam.dawar@amd.com>
Cc: linux-net-drivers@amd.com, Edward Cree <ecree.xilinx@gmail.com>,
	Martin Habets <habetsm.xilinx@gmail.com>,
	"David S. Miller" <davem@davemloft.net>,
	Eric Dumazet <edumazet@google.com>,
	Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
	Richard Cochran <richardcochran@gmail.com>,
	linux-kernel@vger.kernel.org, netdev@vger.kernel.org,
	eperezma@redhat.com, harpreet.anand@amd.com, tanuj.kamde@amd.com,
	koushik.dutta@amd.com
Subject: Re: [PATCH net-next v2 00/14] sfc: add vDPA support for EF100 devices
Date: Mon, 13 Mar 2023 11:56:05 +0530	[thread overview]
Message-ID: <09557c14-d1d6-2af6-b280-65991bcaffc7@amd.com> (raw)
In-Reply-To: <CACGkMEtDqQJDQ5wRbU0xObi1hiTbaQ3K2Tfq36ZYXCW8BcphYA@mail.gmail.com>


On 3/10/23 10:39, Jason Wang wrote:
> Caution: This message originated from an External Source. Use proper caution when opening attachments, clicking links, or responding.
>
>
> On Tue, Mar 7, 2023 at 7:36 PM Gautam Dawar <gautam.dawar@amd.com> wrote:
>> Hi All,
>>
>> This series adds the vdpa support for EF100 devices.
> Would you mind posting some performance numbers for this device?

Sure, will do with the next version of this patch series.

Thanks

> Thanks
>
>> For now, only a network class of vdpa device is supported and
>> they can be created only on a VF. Each EF100 VF can have one
>> of the three function personalities (EF100, vDPA & None) at
>> any time with EF100 being the default. A VF's function personality
>> is changed to vDPA while creating the vdpa device using vdpa tool.
>>
>> A vDPA management device is created per VF to allow selection of
>> the desired VF for vDPA device creation. The MAC address for the
>> target net device must be set either by specifying at the vdpa
>> device creation time via the `mac` parameter of the `vdpa dev add`
>> command or should be specified as the hardware address of the virtual
>> function using `devlink port function set hw_addr` command before
>> creating the vdpa device with the former taking precedence.
>>
>> Changes since v1:
>>
>> - To ensure isolation between DMA initiated by userspace (guest OS)
>>    and the host MCDI buffer, ummap VF's MCDI DMA buffer and use PF's
>>    IOMMU domain instead for executing vDPA VF's MCDI commands.
>> - As a result of above change, it is no more necessary to check for
>>    MCDI buffer's IOVA range overlap with the guest buffers. Accordingly,
>>    the DMA config operations and the rbtree/list implementation to store
>>    IOVA mappings have been dropped.
>> - Support vDPA only if running Firmware supports CLIENT_CMD_VF_PROXY
>>    capability.
>> - Added .suspend config operation and updated get_vq_state/set_vq_state
>>    to support Live Migration. Also, features VIRTIO_F_ORDER_PLATFORM and
>>    VIRTIO_F_IN_ORDER have been masked off in get_device_features() to
>>    allow Live Migration as QEMU SVQ doesn't support them yet.
>> - Removed the minimum version (v6.1.0) requirement of QEMU as
>>    VIRTIO_F_IN_ORDER is not exposed
>> - Fetch the vdpa device MAC address from the underlying VF hw_addr (if
>>    set via `devlink port function set hw_addr` command)
>> - Removed the mandatory requirement of specifying mac address while
>>    creating vdpa device
>> - Moved create_vring_ctx() and get_doorbell_offset() in dev_add()
>> - Moved IRQ allocation at the time of vring creation
>> - Merged vring_created member of struct ef100_vdpa_vring_info as one
>>    of the flags in vring_state
>> - Simplified .set_status() implementation
>> - Removed un-necessary vdpa_state checks against
>>    EF100_VDPA_STATE_INITIALIZED
>> - Removed userspace triggerable warning in kick_vq()
>> - Updated year 2023 in copyright banner of new files
>>
>> Gautam Dawar (14):
>>    sfc: add function personality support for EF100 devices
>>    sfc: implement MCDI interface for vDPA operations
>>    sfc: update MCDI headers for CLIENT_CMD_VF_PROXY capability bit
>>    sfc: evaluate vdpa support based on FW capability CLIENT_CMD_VF_PROXY
>>    sfc: implement init and fini functions for vDPA personality
>>    sfc: implement vDPA management device operations
>>    sfc: implement vdpa device config operations
>>    sfc: implement vdpa vring config operations
>>    sfc: implement device status related vdpa config operations
>>    sfc: implement filters for receiving traffic
>>    sfc: use PF's IOMMU domain for running VF's MCDI commands
>>    sfc: unmap VF's MCDI buffer when switching to vDPA mode
>>    sfc: update vdpa device MAC address
>>    sfc: register the vDPA device
>>
>>   drivers/net/ethernet/sfc/Kconfig          |    8 +
>>   drivers/net/ethernet/sfc/Makefile         |    1 +
>>   drivers/net/ethernet/sfc/ef10.c           |    2 +-
>>   drivers/net/ethernet/sfc/ef100.c          |    7 +-
>>   drivers/net/ethernet/sfc/ef100_netdev.c   |   26 +-
>>   drivers/net/ethernet/sfc/ef100_nic.c      |  183 +-
>>   drivers/net/ethernet/sfc/ef100_nic.h      |   26 +-
>>   drivers/net/ethernet/sfc/ef100_vdpa.c     |  543 +++
>>   drivers/net/ethernet/sfc/ef100_vdpa.h     |  224 ++
>>   drivers/net/ethernet/sfc/ef100_vdpa_ops.c |  793 ++++
>>   drivers/net/ethernet/sfc/mcdi.c           |  108 +-
>>   drivers/net/ethernet/sfc/mcdi.h           |    9 +-
>>   drivers/net/ethernet/sfc/mcdi_filters.c   |   51 +-
>>   drivers/net/ethernet/sfc/mcdi_functions.c |    9 +-
>>   drivers/net/ethernet/sfc/mcdi_functions.h |    3 +-
>>   drivers/net/ethernet/sfc/mcdi_pcol.h      | 4390 ++++++++++++++++++++-
>>   drivers/net/ethernet/sfc/mcdi_vdpa.c      |  259 ++
>>   drivers/net/ethernet/sfc/mcdi_vdpa.h      |   83 +
>>   drivers/net/ethernet/sfc/net_driver.h     |   21 +
>>   drivers/net/ethernet/sfc/ptp.c            |    4 +-
>>   20 files changed, 6574 insertions(+), 176 deletions(-)
>>   create mode 100644 drivers/net/ethernet/sfc/ef100_vdpa.c
>>   create mode 100644 drivers/net/ethernet/sfc/ef100_vdpa.h
>>   create mode 100644 drivers/net/ethernet/sfc/ef100_vdpa_ops.c
>>   create mode 100644 drivers/net/ethernet/sfc/mcdi_vdpa.c
>>   create mode 100644 drivers/net/ethernet/sfc/mcdi_vdpa.h
>>
>> --
>> 2.30.1
>>

      reply	other threads:[~2023-03-13  6:30 UTC|newest]

Thread overview: 57+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-03-07 11:36 [PATCH net-next v2 00/14] sfc: add vDPA support for EF100 devices Gautam Dawar
2023-03-07 11:36 ` [PATCH net-next v2 01/14] sfc: add function personality " Gautam Dawar
2023-03-10  5:04   ` Jason Wang
2023-03-13 11:50     ` Martin Habets
2023-03-15  5:11       ` Jason Wang
2023-03-16  9:06         ` Martin Habets
2023-03-17  3:52           ` Jason Wang
2023-03-21 12:17             ` Martin Habets
2023-03-07 11:36 ` [PATCH net-next v2 02/14] sfc: implement MCDI interface for vDPA operations Gautam Dawar
2023-03-07 11:36 ` [PATCH net-next v2 03/14] sfc: update MCDI headers for CLIENT_CMD_VF_PROXY capability bit Gautam Dawar
     [not found]   ` <9a8c3a7d-7815-3099-e75e-930568dccb35@amd.com>
2023-03-08 16:15     ` Martin Habets
2023-03-13 14:38       ` Gautam Dawar
2023-03-14  8:32         ` Martin Habets
2023-03-07 11:36 ` [PATCH net-next v2 04/14] sfc: evaluate vdpa support based on FW capability CLIENT_CMD_VF_PROXY Gautam Dawar
2023-03-10  5:04   ` Jason Wang
2023-03-13 12:39     ` Gautam Dawar
2023-03-14  8:38       ` Martin Habets
2023-03-17 11:18         ` Gautam Dawar
2023-03-07 11:36 ` [PATCH net-next v2 05/14] sfc: implement init and fini functions for vDPA personality Gautam Dawar
2023-03-07 11:36 ` [PATCH net-next v2 06/14] sfc: implement vDPA management device operations Gautam Dawar
2023-03-08 16:41   ` Martin Habets
2023-03-13 15:09     ` Gautam Dawar
     [not found]   ` <e773fcb5-985d-071f-25dd-1aaacd393922@amd.com>
2023-03-08 16:48     ` Martin Habets
2023-03-07 11:36 ` [PATCH net-next v2 07/14] sfc: implement vdpa device config operations Gautam Dawar
2023-03-07 11:36 ` [PATCH net-next v2 08/14] sfc: implement vdpa vring " Gautam Dawar
2023-03-08 17:06   ` Martin Habets
2023-03-13 17:03     ` Gautam Dawar
2023-03-10  5:04   ` Jason Wang
2023-03-13 12:33     ` Gautam Dawar
2023-03-15  5:08       ` Jason Wang
2023-03-15 17:06         ` Gautam Dawar
2023-03-07 11:36 ` [PATCH net-next v2 09/14] sfc: implement device status related vdpa " Gautam Dawar
2023-03-10  5:05   ` Jason Wang
2023-03-13 12:10     ` Gautam Dawar
2023-03-15  5:00       ` Jason Wang
2023-03-15 17:18         ` Gautam Dawar
2023-03-17 11:01           ` Gautam Dawar
2023-03-07 11:36 ` [PATCH net-next v2 10/14] sfc: implement filters for receiving traffic Gautam Dawar
2023-03-10  5:05   ` Jason Wang
2023-03-13  9:19     ` Gautam Dawar
2023-03-07 11:36 ` [PATCH net-next v2 11/14] sfc: use PF's IOMMU domain for running VF's MCDI commands Gautam Dawar
2023-03-08 18:01   ` Martin Habets
2023-03-13 17:19     ` Gautam Dawar
2023-03-14  8:48       ` Martin Habets
2023-03-10  5:05   ` Jason Wang
2023-03-13  7:35     ` Gautam Dawar
2023-03-07 11:36 ` [PATCH net-next v2 12/14] sfc: unmap VF's MCDI buffer when switching to vDPA mode Gautam Dawar
2023-03-10  5:05   ` Jason Wang
2023-03-13  7:09     ` Gautam Dawar
2023-03-15  4:54       ` Jason Wang
2023-03-07 11:36 ` [PATCH net-next v2 13/14] sfc: update vdpa device MAC address Gautam Dawar
2023-03-10  5:05   ` Jason Wang
2023-03-13  6:37     ` Gautam Dawar
2023-03-15  4:50       ` Jason Wang
2023-03-07 11:36 ` [PATCH net-next v2 14/14] sfc: register the vDPA device Gautam Dawar
2023-03-10  5:09 ` [PATCH net-next v2 00/14] sfc: add vDPA support for EF100 devices Jason Wang
2023-03-13  6:26   ` Gautam Dawar [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=09557c14-d1d6-2af6-b280-65991bcaffc7@amd.com \
    --to=gdawar@amd.com \
    --cc=davem@davemloft.net \
    --cc=ecree.xilinx@gmail.com \
    --cc=edumazet@google.com \
    --cc=eperezma@redhat.com \
    --cc=gautam.dawar@amd.com \
    --cc=habetsm.xilinx@gmail.com \
    --cc=harpreet.anand@amd.com \
    --cc=jasowang@redhat.com \
    --cc=koushik.dutta@amd.com \
    --cc=kuba@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-net-drivers@amd.com \
    --cc=netdev@vger.kernel.org \
    --cc=pabeni@redhat.com \
    --cc=richardcochran@gmail.com \
    --cc=tanuj.kamde@amd.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).