[PATCH v2] doc: add information to update dma entry limit

2023-07-05 Thread Nipun Gupta
VFIO module provides configurable dma_entry_limit parameter to store the DMA entries. By default this is 64K and if we are using --no-huge, we shall need to increase the value of dma_entry_limit. Add commands in linux_gsg document to change the dma_entry_limit. Signed-off-by: Nipun Gupta

[PATCH] doc: add information to update dma entry limit

2023-07-05 Thread Nipun Gupta
VFIO module provides configurable dma_entry_limit parameter to store the DMA entries. By default this is 64K and if we are using --no-huge, we shall need to increase the value of dma_entry_limit. Add commands in linux_gsg document to change the dma_entry_limit. Signed-off-by: Nipun Gupta

Re: [PATCH] vfio: do not coalesce DMA mappings

2023-06-29 Thread Nipun Gupta
parameters will not be able to start because the too many pages will exceed the capability of IOMMU. Is it expected? Should we remove the --no-huge" in our testcase? Regards, Xuan -Original Message- From: Nipun Gupta Sent: Friday, December 30, 2022 5:59 PM To: dev@dpdk.org; tho...

Re: [PATCH v2 0/3] bus/cdx: fix coverity issue

2023-06-18 Thread Nipun Gupta
Please use in-reply-to while sending subsequent version of patches. On 6/16/2023 6:09 PM, Abhijit Gangurde wrote: This series fixes coverity issues 385379, 385381, 385377 v2: - Merged coverity fix patches into series - Updated commit message Series Acked-by: Nipun Gupta

[PATCH] config/arm: add AMD CDX

2023-06-15 Thread Nipun Gupta
Add meson build configuration for AMD CDX platform. Signed-off-by: Nipun Gupta --- This patch was earlier submitted as part of AMD CDX bus, but as it is platform support it has been separated out from the bus series. Previous patch link: http://patches.dpdk.org/project/dpdk/patch

[PATCH] maintainers: update for PCI bus driver

2023-06-15 Thread Nipun Gupta
Add myself as co-maintainer of PCI bus driver Signed-off-by: Nipun Gupta --- This patch is based on top of: http://patches.dpdk.org/project/dpdk/patch/20230613065738.42370-1-chenbo@intel.com/ MAINTAINERS | 1 + 1 file changed, 1 insertion(+) diff --git a/MAINTAINERS b/MAINTAINERS index

Re: [PATCH] bus/cdx: Move debug print before unmapping resource

2023-06-15 Thread Nipun Gupta
Please do not use first letter of the commit as capital ("Move" should be "move"). Also fix this for other patches sent for CDX. check-git-log.sh script report these errors. Please run this before sending. On 6/14/2023 3:53 PM, Abhijit Gangurde wrote: Debug print is moved before unmapping requ

Re: [PATCH] bus/cdx: Remove ineffective code statement

2023-06-15 Thread Nipun Gupta
Acked-by: Nipun Gupta On 6/14/2023 3:52 PM, Abhijit Gangurde wrote: ret = 0 statement is ineffective since it is overwritten in a loop. Coverity issue: 385379 Fixes: 45ef232af515 ("bus/cdx: introduce AMD CDX bus") Signed-off-by: Abhijit Gangurde --- drivers/bus/cdx/cdx.c | 1

[PATCH v8 4/4] bus/cdx: support plug unplug and dev iterator

2023-06-06 Thread Nipun Gupta
This change adds support for plugging and unplugging CDX devices on AMD CDX bus. Also, CDX dev iterator support has been added for the CDX bus. Signed-off-by: Nipun Gupta Acked-by: Ferruh Yigit --- drivers/bus/cdx/bus_cdx_driver.h | 1 + drivers/bus/cdx/cdx.c| 122

[PATCH v8 3/4] bus/cdx: add support for MSI

2023-06-06 Thread Nipun Gupta
MSI's are exposed to the devices using VFIO (vfio-cdx). This patch uses the same to add support for MSI for the devices on the cdx bus. Signed-off-by: Nipun Gupta Acked-by: Ferruh Yigit --- drivers/bus/cdx/bus_cdx_driver.h | 25 + drivers/bus/cdx/cdx.c| 11 ++ drivers/bu

[PATCH v8 2/4] bus/cdx: add DMA map and unmap support

2023-06-06 Thread Nipun Gupta
AMD CDX bus can use VFIO interface for mapping and unmapping of DMA addresses in the IOMMU. This change adds the callback support for map and unmap APIs as well as fetching the IOMMU class. Signed-off-by: Nipun Gupta Acked-by: Ferruh Yigit --- drivers/bus/cdx/cdx.c | 30

[PATCH v8 1/4] bus/cdx: introduce AMD CDX bus

2023-06-06 Thread Nipun Gupta
. Signed-off-by: Nipun Gupta Acked-by: Ferruh Yigit --- MAINTAINERS| 5 + doc/guides/rel_notes/release_23_07.rst | 6 + drivers/bus/cdx/bus_cdx_driver.h | 166 drivers/bus/cdx/cdx.c | 503 + drivers/bus/cdx

[PATCH v8 0/4] Support AMD CDX bus

2023-06-06 Thread Nipun Gupta
_map_resource Changes v1->v2: - Moved file rte_cdx_bus.h to internal bus_cdx_driver.h and added this file to deivce_cdx_headers - Moved cdx.h to private.h - Removed rte_ prefix from the static symbols in .c files. Changes RFC->v1: - Marked few API's as internal which were not required

Re: [PATCH v7 1/4] bus/cdx: introduce AMD CDX bus

2023-06-06 Thread Nipun Gupta
On 6/6/2023 6:30 PM, Thomas Monjalon wrote: 06/06/2023 12:02, Nipun Gupta: +/* Forward declarations */ +struct rte_cdx_device; +struct rte_cdx_driver; +struct rte_cdx_bus; You should be very careful about what you export. + +#define CDX_BUS_DEVICES_PATH "/sys/bus/cdx/devices&qu

[PATCH v7 4/4] bus/cdx: support plug unplug and dev iterator

2023-06-06 Thread Nipun Gupta
This change adds support for plugging and unplugging CDX devices on AMD CDX bus. Also, CDX dev iterator support has been added for the CDX bus. Signed-off-by: Nipun Gupta Acked-by: Ferruh Yigit --- drivers/bus/cdx/bus_cdx_driver.h | 1 + drivers/bus/cdx/cdx.c| 122

[PATCH v7 3/4] bus/cdx: add support for MSI

2023-06-06 Thread Nipun Gupta
MSI's are exposed to the devices using VFIO (vfio-cdx). This patch uses the same to add support for MSI for the devices on the cdx bus. Signed-off-by: Nipun Gupta Acked-by: Ferruh Yigit --- drivers/bus/cdx/bus_cdx_driver.h | 25 + drivers/bus/cdx/cdx.c| 11 ++ drivers/bu

[PATCH v7 2/4] bus/cdx: add DMA map and unmap support

2023-06-06 Thread Nipun Gupta
AMD CDX bus can use VFIO interface for mapping and unmapping of DMA addresses in the IOMMU. This change adds the callback support for map and unmap APIs as well as fetching the IOMMU class. Signed-off-by: Nipun Gupta Acked-by: Ferruh Yigit --- drivers/bus/cdx/cdx.c | 30

[PATCH v7 1/4] bus/cdx: introduce AMD CDX bus

2023-06-06 Thread Nipun Gupta
. Signed-off-by: Nipun Gupta Acked-by: Ferruh Yigit --- MAINTAINERS| 5 + doc/guides/rel_notes/release_23_07.rst | 6 + drivers/bus/cdx/bus_cdx_driver.h | 166 drivers/bus/cdx/cdx.c | 503 + drivers/bus/cdx

[PATCH v7 0/4] Support AMD CDX bus

2023-06-06 Thread Nipun Gupta
s - Moved cdx.h to private.h - Removed rte_ prefix from the static symbols in .c files. Changes RFC->v1: - Marked few API's as internal which were not required to be provided to user. Nipun Gupta (4): bus/cdx: introduce AMD CDX bus bus/cdx: add DMA map and unmap support bus/cd

Re: [PATCH v6 3/4] bus/cdx: add support for MSI

2023-06-06 Thread Nipun Gupta
On 6/6/2023 3:00 PM, David Marchand wrote: On Mon, Jun 5, 2023 at 3:27 PM Nipun Gupta wrote: +/* set up interrupt support (but not enable interrupts) */ static int -cdx_rte_vfio_setup_device(int vfio_dev_fd) +cdx_vfio_setup_interrupts(struct rte_cdx_device *dev, int vfio_dev_fd, I had

Re: [EXT] [PATCH v5 3/5] eal/interrupts: add IRQ count in interrupt handle

2023-06-06 Thread Nipun Gupta
On 6/6/2023 12:48 PM, Harman Kalra wrote: -Original Message- From: Nipun Gupta Sent: Thursday, May 25, 2023 3:38 PM To: dev@dpdk.org; tho...@monjalon.net; david.march...@redhat.com; Harman Kalra ; anatoly.bura...@intel.com; step...@networkplumber.org Cc: ferruh.yi...@amd.com

[PATCH v6 4/4] bus/cdx: support plug unplug and dev iterator

2023-06-05 Thread Nipun Gupta
This change adds support for plugging and unplugging CDX devices on AMD CDX bus. Also, CDX dev iterator support has been added for the CDX bus. Signed-off-by: Nipun Gupta Acked-by: Ferruh Yigit --- drivers/bus/cdx/bus_cdx_driver.h | 1 + drivers/bus/cdx/cdx.c| 122

[PATCH v6 3/4] bus/cdx: add support for MSI

2023-06-05 Thread Nipun Gupta
MSI's are exposed to the devices using VFIO (vfio-cdx). This patch uses the same to add support for MSI for the devices on the cdx bus. Signed-off-by: Nipun Gupta Acked-by: Ferruh Yigit --- drivers/bus/cdx/bus_cdx_driver.h | 25 + drivers/bus/cdx/cdx.c| 11 ++ drivers/bu

[PATCH v6 2/4] bus/cdx: add DMA map and unmap support

2023-06-05 Thread Nipun Gupta
AMD CDX bus can use VFIO interface for mapping and unmapping of DMA addresses in the IOMMU. This change adds the callback support for map and unmap APIs as well as fetching the IOMMU class. Signed-off-by: Nipun Gupta Acked-by: Ferruh Yigit --- drivers/bus/cdx/cdx.c | 30

[PATCH v6 1/4] bus/cdx: introduce AMD CDX bus

2023-06-05 Thread Nipun Gupta
. Signed-off-by: Nipun Gupta Acked-by: Ferruh Yigit --- MAINTAINERS| 5 + doc/guides/rel_notes/release_23_07.rst | 6 + drivers/bus/cdx/bus_cdx_driver.h | 175 + drivers/bus/cdx/cdx.c | 503 + drivers/bus/cdx

[PATCH v6 0/4] Support AMD CDX bus

2023-06-05 Thread Nipun Gupta
->v2: - Moved file rte_cdx_bus.h to internal bus_cdx_driver.h and added this file to deivce_cdx_headers - Moved cdx.h to private.h - Removed rte_ prefix from the static symbols in .c files. Changes RFC->v1: - Marked few API's as internal which were not required to be provided to u

Re: [PATCH v5 4/5] bus/cdx: add support for MSI

2023-06-05 Thread Nipun Gupta
On 6/1/2023 8:39 PM, David Marchand wrote: On Thu, May 25, 2023 at 12:09 PM Nipun Gupta wrote: @@ -116,6 +141,18 @@ cdx_vfio_unmap_resource_secondary(struct rte_cdx_device *dev) { struct mapped_cdx_resource *vfio_res = NULL; struct mapped_cdx_res_list

Re: [PATCH v5 1/5] bus/cdx: introduce AMD CDX bus

2023-06-05 Thread Nipun Gupta
On 6/1/2023 8:30 PM, David Marchand wrote: Hello, On Thu, May 25, 2023 at 12:08 PM Nipun Gupta wrote: + * AMD CDX bus interface + */ + +#ifdef __cplusplus +extern "C" { +#endif Do you expect some out of tree drivers written in C++? Otherwise, this is unneeded. As the C

Re: [PATCH v5 1/5] bus/cdx: introduce AMD CDX bus

2023-06-01 Thread Nipun Gupta
On 6/1/2023 8:30 PM, David Marchand wrote: + +struct rte_cdx_bus rte_cdx_bus = { + .bus = { + .scan = cdx_scan, + .probe = cdx_probe, + .find_device = cdx_find_device, + .parse = cdx_parse, I see neither unplug, nor cleanup op

Re: [PATCH v5 3/5] eal/interrupts: add IRQ count in interrupt handle

2023-06-01 Thread Nipun Gupta
Hi David, On 6/1/2023 8:55 PM, David Marchand wrote: On Thu, May 25, 2023 at 12:08 PM Nipun Gupta wrote: Have total number of IRQ count support in interrupt handle. In case of VFIO this IRQ count is returned when VFIO_DEVICE_GET_IRQ_INFO ioctl is invoked. This IRQ_count can used by the

[PATCH v5 4/5] bus/cdx: add support for MSI

2023-05-25 Thread Nipun Gupta
pts on the interrupt handle. This would be provided by VFIO (irq.count) for VFIO enabled devices. - rte_intr_irq_count_get: This API returns the total number interrupts which were set. Signed-off-by: Nipun Gupta Acked-by: Ferruh Yigit --- drivers/bus/cdx/bus_cdx_driver.h | 25 + drivers/bus

[PATCH v5 5/5] bus/cdx: support plug unplug and dev iterator

2023-05-25 Thread Nipun Gupta
This change adds support for plugging and unplugging CDX devices on AMD CDX bus. Also, CDX dev iterator support has been added for the CDX bus. Signed-off-by: Nipun Gupta Acked-by: Ferruh Yigit --- drivers/bus/cdx/bus_cdx_driver.h | 1 + drivers/bus/cdx/cdx.c| 122

[PATCH v5 2/5] bus/cdx: add DMA map and unmap support

2023-05-25 Thread Nipun Gupta
AMD CDX bus can use VFIO interface for mapping and unmapping of DMA addresses in the IOMMU. This change adds the callback support for map and unmap APIs as well as fetching the IOMMU class. Signed-off-by: Nipun Gupta Acked-by: Ferruh Yigit --- drivers/bus/cdx/cdx.c | 40

[PATCH v5 3/5] eal/interrupts: add IRQ count in interrupt handle

2023-05-25 Thread Nipun Gupta
-by: Nipun Gupta Acked-by: Ferruh Yigit --- lib/eal/common/eal_common_interrupts.c | 21 + lib/eal/common/eal_interrupts.h| 1 + lib/eal/include/rte_interrupts.h | 32 ++ lib/eal/version.map| 2 ++ 4 files changed, 56

[PATCH v5 1/5] bus/cdx: introduce AMD CDX bus

2023-05-25 Thread Nipun Gupta
. Signed-off-by: Nipun Gupta Acked-by: Ferruh Yigit --- MAINTAINERS| 5 + doc/guides/rel_notes/release_23_07.rst | 6 + drivers/bus/cdx/bus_cdx_driver.h | 196 ++ drivers/bus/cdx/cdx.c | 517 + drivers/bus/cdx

[PATCH v5 0/5] Support AMD CDX bus

2023-05-25 Thread Nipun Gupta
nal bus_cdx_driver.h and added this file to deivce_cdx_headers - Moved cdx.h to private.h - Removed rte_ prefix from the static symbols in .c files. Changes RFC->v1: - Marked few API's as internal which were not required to be provided to user. Nipun Gupta (5): bus/cdx: introduce AMD

Re: [PATCH v2] vfio: do not coalesce DMA mappings

2023-05-10 Thread Nipun Gupta
On 4/24/2023 8:52 PM, David Marchand wrote: Hello Anatoly, On Wed, Apr 5, 2023 at 4:17 PM Burakov, Anatoly wrote: Could you please provide some steps to reproduce the hotplug issue you're having? It would be great to have a test case for this patchset to put it in context. I am working o

[PATCH v4 4/4] bus/cdx: support plug unplug and dev iterator

2023-05-08 Thread Nipun Gupta
This change adds support for plugging and unplugging CDX devices on the CDX bus. Also, CDX dev iterator support has been added for the CDX bus. Signed-off-by: Nipun Gupta --- drivers/bus/cdx/bus_cdx_driver.h | 1 + drivers/bus/cdx/cdx.c| 122 +++ 2

[PATCH v4 3/4] bus/cdx: add support for MSI

2023-05-08 Thread Nipun Gupta
pts on the interrupt handle. This would be provided by VFIO (irq.count) for VFIO enabled devices. - rte_intr_irq_count_get: This API returns the total number interrupts which were set. Signed-off-by: Nipun Gupta --- drivers/bus/cdx/bus_cdx_driver.h | 25 drivers/bus

[PATCH v4 2/4] bus/cdx: add DMA map and unmap support

2023-05-08 Thread Nipun Gupta
CDX bus can use VFIO interface for mapping and unmapping of DMA addresses in the IOMMU. This change adds the callback support for map and unmap APIs as well as fetching the IOMMU class. Signed-off-by: Nipun Gupta --- drivers/bus/cdx/cdx.c | 40 1 file

[PATCH v4 1/4] bus/cdx: introduce cdx bus

2023-05-08 Thread Nipun Gupta
. Signed-off-by: Nipun Gupta --- MAINTAINERS| 5 + doc/guides/rel_notes/release_23_07.rst | 6 + drivers/bus/cdx/bus_cdx_driver.h | 201 ++ drivers/bus/cdx/cdx.c | 520 + drivers/bus/cdx/cdx_logs.h | 37

[PATCH v4 0/4] Support AMD CDX bus, for FPGA based CDX devices. The CDX

2023-05-08 Thread Nipun Gupta
cdx.h to private.h - Removed rte_ prefix from the static symbols in .c files. Changes RFC->v1: - Marked few API's as internal which were not required to be provided to user. Nipun Gupta (4): bus/cdx: introduce cdx bus bus/cdx: add DMA map and unmap support bus/cdx: add support for MSI

[PATCH v3 5/5] config/arm: add AMD CDX

2023-04-21 Thread Nipun Gupta
Adding support for AMD CDX devices Signed-off-by: Nipun Gupta --- config/arm/arm64_cdx_linux_gcc | 17 + config/arm/meson.build | 14 ++ 2 files changed, 31 insertions(+) create mode 100644 config/arm/arm64_cdx_linux_gcc diff --git a/config/arm

[PATCH v3 4/5] bus/cdx: support plug unplug and dev iterator

2023-04-21 Thread Nipun Gupta
This change adds support for plugging and unplugging CDX devices on the CDX bus. Also, CDX dev iterator support has been added for the CDX bus. Signed-off-by: Nipun Gupta --- drivers/bus/cdx/bus_cdx_driver.h | 1 + drivers/bus/cdx/cdx.c| 122 +++ 2

[PATCH v3 3/5] bus/cdx: add support for MSI

2023-04-21 Thread Nipun Gupta
pts on the interrupt handle. This would be provided by VFIO (irq.count) for VFIO enabled devices. - rte_intr_irq_count_get: This API returns the total number interrupts which were set. Signed-off-by: Nipun Gupta --- drivers/bus/cdx/bus_cdx_driver.h | 25 drivers/bus

[PATCH v3 2/5] bus/cdx: add DMA map and unmap support

2023-04-21 Thread Nipun Gupta
CDX bus can use VFIO interface for mapping and unmapping of DMA addresses in the IOMMU. This change adds the callback support for map and unmap APIs as well as fetching the IOMMU class. Signed-off-by: Nipun Gupta --- drivers/bus/cdx/cdx.c | 40 1 file

[PATCH v3 1/5] bus/cdx: introduce cdx bus

2023-04-21 Thread Nipun Gupta
. Signed-off-by: Nipun Gupta --- MAINTAINERS| 5 + doc/guides/rel_notes/release_23_07.rst | 6 + drivers/bus/cdx/bus_cdx_driver.h | 201 ++ drivers/bus/cdx/cdx.c | 520 + drivers/bus/cdx/cdx_logs.h | 37

[PATCH v3 0/5] Support AMD CDX bus, for FPGA based CDX devices. The CDX

2023-04-21 Thread Nipun Gupta
few API's as internal which were not required to be provided to user. Nipun Gupta (5): bus/cdx: introduce cdx bus bus/cdx: add DMA map and unmap support bus/cdx: add support for MSI bus/cdx: support plug unplug and dev iterator config/arm: add AMD CDX

[PATCH v2 6/6] config/arm: add AMD CDX

2023-04-13 Thread Nipun Gupta
Adding support for AMD CDX devices Signed-off-by: Nipun Gupta --- config/arm/arm64_cdx_linux_gcc | 17 + config/arm/meson.build | 14 ++ 2 files changed, 31 insertions(+) create mode 100644 config/arm/arm64_cdx_linux_gcc diff --git a/config/arm

[PATCH v2 5/6] bus: enable cdx bus

2023-04-13 Thread Nipun Gupta
enable the compilation of cdx bus Signed-off-by: Nipun Gupta --- drivers/bus/meson.build | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/bus/meson.build b/drivers/bus/meson.build index 6d2520c543..a78b4283bf 100644 --- a/drivers/bus/meson.build +++ b/drivers/bus/meson.build @@ -3,6

[PATCH v2 1/6] bus/cdx: introduce cdx bus

2023-04-13 Thread Nipun Gupta
. Signed-off-by: Nipun Gupta --- MAINTAINERS | 5 + drivers/bus/cdx/bus_cdx_driver.h | 201 drivers/bus/cdx/cdx.c| 521 +++ drivers/bus/cdx/cdx_logs.h | 37 +++ drivers/bus/cdx/cdx_vfio.c | 437

[PATCH v2 4/6] bus/cdx: support plug unplug and dev iterator

2023-04-13 Thread Nipun Gupta
This change adds support for plugging and unplugging CDX devices on the CDX bus. Also, CDX dev iterator support has been added for the CDX bus. Signed-off-by: Nipun Gupta --- drivers/bus/cdx/bus_cdx_driver.h | 1 + drivers/bus/cdx/cdx.c| 122 +++ 2

[PATCH v2 0/6] add support for CDX bus

2023-04-13 Thread Nipun Gupta
les. Changes RFC->v1: - Marked few API's as internal which were not required to be provided to user. Nipun Gupta (6): bus/cdx: introduce cdx bus bus/cdx: add dma map and unmap support bus/cdx: add support for MSI bus/cdx: support plug unplug and dev iterator bus: enable cdx bus conf

[PATCH v2 2/6] bus/cdx: add dma map and unmap support

2023-04-13 Thread Nipun Gupta
CDX bus can use VFIO interface for mapping and unmapping of DMA addresses in the IOMMU. This change adds the callback support for map and unmap APIs as well as fetching the IOMMU class. Signed-off-by: Nipun Gupta --- drivers/bus/cdx/cdx.c | 40 1 file

[PATCH v2 3/6] bus/cdx: add support for MSI

2023-04-13 Thread Nipun Gupta
MSI's are exposed to the devices using VFIO (vfio-cdx). This patch uses the same to add support for MSI for the devices on the cdx bus. Signed-off-by: Nipun Gupta --- drivers/bus/cdx/bus_cdx_driver.h | 25 drivers/bus/cdx/cdx.c | 11 ++ drivers/bus/cdx/cdx_v

Re: [PATCH 0/6] add support for CDX bus

2023-04-07 Thread Nipun Gupta
On 4/7/2023 12:48 PM, David Marchand wrote: Caution: This message originated from an External Source. Use proper caution when opening attachments, clicking links, or responding. Hello, On Fri, Apr 7, 2023 at 8:02 AM Nipun Gupta wrote: Support AMD CDX bus, for FPGA based CDX devices

Re: [PATCH v2] vfio: do not coalesce DMA mappings

2023-04-06 Thread Nipun Gupta
On 4/4/2023 8:43 PM, Burakov, Anatoly wrote: Caution: This message originated from an External Source. Use proper caution when opening attachments, clicking links, or responding. On 2/7/2023 8:56 AM, Gupta, Nipun wrote: [AMD Official Use Only - General] Hi David, I agree that change is n

[PATCH 6/6] config/arm: add AMD CDX

2023-04-06 Thread Nipun Gupta
Adding support for AMD CDX devices Signed-off-by: Nipun Gupta --- config/arm/arm64_cdx_linux_gcc | 17 + config/arm/meson.build | 14 ++ 2 files changed, 31 insertions(+) create mode 100644 config/arm/arm64_cdx_linux_gcc diff --git a/config/arm

[PATCH 5/6] bus: enable cdx bus

2023-04-06 Thread Nipun Gupta
enable the compilation of cdx bus Signed-off-by: Nipun Gupta --- drivers/bus/meson.build | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/bus/meson.build b/drivers/bus/meson.build index 6d2520c543..a78b4283bf 100644 --- a/drivers/bus/meson.build +++ b/drivers/bus/meson.build @@ -3,6

[PATCH 4/6] bus/cdx: support plug unplug and dev iterator

2023-04-06 Thread Nipun Gupta
This change adds support for plugging and unplugging CDX devices on the CDX bus. Also, CDX dev iterator support has been added for the CDX bus. Signed-off-by: Nipun Gupta --- drivers/bus/cdx/cdx.c | 142 +++--- drivers/bus/cdx/rte_bus_cdx.h | 1 + 2 files

[PATCH 3/6] bus/cdx: add support for MSI

2023-04-06 Thread Nipun Gupta
MSI's are exposed to the devices using VFIO (vfio-cdx). This patch uses the same to add support for MSI for the devices on the cdx bus. Signed-off-by: Nipun Gupta --- drivers/bus/cdx/cdx.c | 11 ++ drivers/bus/cdx/cdx_vfio.c | 182 - dr

[PATCH 2/6] bus/cdx: add dma map and unmap support

2023-04-06 Thread Nipun Gupta
CDX bus can use VFIO interface for mapping and unmapping of DMA addresses in the IOMMU. This change adds the callback support for map and unmap APIs as well as fetching the IOMMU class. Signed-off-by: Nipun Gupta --- drivers/bus/cdx/cdx.c | 40 1 file

[PATCH 1/6] bus/cdx: introduce cdx bus

2023-04-06 Thread Nipun Gupta
. Signed-off-by: Nipun Gupta --- MAINTAINERS | 5 + drivers/bus/cdx/cdx.c | 570 ++ drivers/bus/cdx/cdx.h | 54 drivers/bus/cdx/cdx_logs.h| 37 +++ drivers/bus/cdx/cdx_vfio.c| 420 + drivers/bus/cdx

[PATCH 0/6] add support for CDX bus

2023-04-06 Thread Nipun Gupta
://patches.dpdk.org/project/dpdk/patch/20230124140746.594066-2-nipun.gu...@amd.com/ Changes RFC->v1: - Marked few API's as internal which were not required to be provided to user. Nipun Gupta (6): bus/cdx: introduce cdx bus bus/cdx: add dma map and unmap support bus/cdx: add support for MSI

Re: [PATCH v2] vfio: do not coalesce DMA mappings

2023-04-04 Thread Nipun Gupta
On 4/4/2023 8:43 PM, Burakov, Anatoly wrote: Caution: This message originated from an External Source. Use proper caution when opening attachments, clicking links, or responding. On 2/7/2023 8:56 AM, Gupta, Nipun wrote: [AMD Official Use Only - General] Hi David, I agree that change is n

[RFC PATCH 6/6] config/arm: add AMD CDX

2023-01-24 Thread Nipun Gupta
Adding support for AMD CDX devices Signed-off-by: Nipun Gupta --- config/arm/arm64_cdx_linux_gcc | 17 + config/arm/meson.build | 15 +++ 2 files changed, 32 insertions(+) create mode 100644 config/arm/arm64_cdx_linux_gcc diff --git a/config/arm

[RFC PATCH 5/6] bus: enable cdx bus

2023-01-24 Thread Nipun Gupta
enable compilation of cdx bus Signed-off-by: Nipun Gupta --- drivers/bus/meson.build | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/bus/meson.build b/drivers/bus/meson.build index 45eab5233d..884470234c 100644 --- a/drivers/bus/meson.build +++ b/drivers/bus/meson.build @@ -7,6 +7,7

[RFC PATCH 4/6] bus/cdx: support plug unplug and dev iterator

2023-01-24 Thread Nipun Gupta
Add support for plugging and unplugging CDX devices on the CDX bus. Also, CDX dev iterator support has been added for the CDX bus. Signed-off-by: Nipun Gupta --- drivers/bus/cdx/cdx.c | 142 +++--- drivers/bus/cdx/rte_bus_cdx.h | 1 + 2 files changed, 133

[RFC PATCH 3/6] bus/cdx: add support for MSI

2023-01-24 Thread Nipun Gupta
MSI's are exposed to the devices using VFIO (vfio-cdx). This patch uses the same to add support for MSI for the devices on the cdx bus. Signed-off-by: Nipun Gupta --- drivers/bus/cdx/cdx.c | 11 ++ drivers/bus/cdx/cdx_vfio.c | 182 - dr

[RFC PATCH 1/6] bus/cdx: introduce cdx bus

2023-01-24 Thread Nipun Gupta
. Signed-off-by: Nipun Gupta --- MAINTAINERS | 5 + drivers/bus/cdx/cdx.c | 564 ++ drivers/bus/cdx/cdx.h | 54 drivers/bus/cdx/cdx_logs.h| 37 +++ drivers/bus/cdx/cdx_vfio.c| 428 ++ drivers/bus

[RFC PATCH 2/6] bus/cdx: add dma map and unmap support

2023-01-24 Thread Nipun Gupta
CDX bus can use VFIO interface for mapping and unmapping of DMA addresses in the IOMMU. This change adds the callback support for map and unmap APIs as well as fetching the IOMMU class. Signed-off-by: Nipun Gupta --- drivers/bus/cdx/cdx.c | 40 1 file

[RFC PATCH 0/6] add support for CDX bus

2023-01-24 Thread Nipun Gupta
. DPDK CDX bus uses sysfs interface and the vfio-cdx driver to discover and initialize the CDX devices for user-space applications. Nipun Gupta (6): bus/cdx: introduce cdx bus bus/cdx: add dma map and unmap support bus/cdx: add support for MSI bus/cdx: support plug unplug and dev iterator

[PATCH v2] vfio: do not coalesce DMA mappings

2023-01-03 Thread Nipun Gupta
Nikolaev Ning Li -Nipun Gupta +Nipun Gupta Nir Efrati Nirmoy Das Nithin Dabilpuram diff --git a/lib/eal/linux/eal_vfio.c b/lib/eal/linux/eal_vfio.c index 549b86ae1d..56edccb0db 100644 --- a/lib/eal/linux/eal_vfio.c +++ b/lib/eal/linux/eal_vfio.c @@ -1369,19 +1369,6

[PATCH] vfio: do not coalesce DMA mappings

2022-12-30 Thread Nipun Gupta
At the cleanup time when dma unmap is done, linux kernel does not allow unmap of individual segments which were coalesced together while creating the DMA map for type1 IOMMU mappings. So, this change updates the mapping of the memory segments(hugepages) on a per-page basis. Signed-off-by: Nipun

[PATCH] maintainers: update for nxp devices

2022-06-02 Thread nipun . gupta
From: Nipun Gupta Update and add maintainers for NXP devices and RAW device API Signed-off-by: Nipun Gupta --- MAINTAINERS | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/MAINTAINERS b/MAINTAINERS index f34f6fa2e9..030100ebc7 100644 --- a/MAINTAINERS +++ b

[PATCH v3 6/6] dma/dpaa2: support statistics

2022-05-05 Thread nipun . gupta
From: Nipun Gupta This patch support DMA read and reset statistics operations. Signed-off-by: Nipun Gupta --- doc/guides/dmadevs/dpaa2.rst | 1 + drivers/dma/dpaa2/dpaa2_qdma.c | 34 ++ 2 files changed, 35 insertions(+) diff --git a/doc/guides/dmadevs/dpaa2

[PATCH v3 5/6] dma/dpaa2: support DMA operations

2022-05-05 Thread nipun . gupta
From: Nipun Gupta This patch support copy, submit, completed and completed status functionality of DMA driver. Signed-off-by: Nipun Gupta --- doc/guides/dmadevs/dpaa2.rst | 10 + drivers/dma/dpaa2/dpaa2_qdma.c | 1173 drivers/dma/dpaa2/dpaa2_qdma.h

[PATCH v3 4/6] dma/dpaa2: add PMD apis for additional configuration

2022-05-05 Thread nipun . gupta
From: Nipun Gupta Add additional PMD APIs for DPAA2 QDMA driver for configuring RBP, Ultra Short format, and Scatter Gather support Signed-off-by: Nipun Gupta --- doc/api/doxy-api-index.md | 1 + doc/api/doxy-api.conf.in | 1 + drivers/dma/dpaa2/dpaa2_qdma.c

[PATCH v3 3/6] dma/dpaa2: support basic operations

2022-05-05 Thread nipun . gupta
From: Nipun Gupta This patch support basic DMA operations which includes device capability and channel setup. Signed-off-by: Nipun Gupta --- drivers/dma/dpaa2/dpaa2_qdma.c | 182 + 1 file changed, 182 insertions(+) diff --git a/drivers/dma/dpaa2/dpaa2_qdma.c b

[PATCH v3 1/6] raw/dpaa2_qdma: remove dpaa2 QDMA driver from raw

2022-05-05 Thread nipun . gupta
From: Nipun Gupta With DMA devices supported as a separate flavor of devices, the DPAA2 QDMA driver is moved in the DMA devices. This change removes the DPAA2 QDMA driver from raw devices. Signed-off-by: Nipun Gupta --- MAINTAINERS |5 - doc/api/doxy-api

[PATCH v3 2/6] dma/dpaa2: introduce DPAA2 DMA driver skeleton

2022-05-05 Thread nipun . gupta
From: Nipun Gupta The DPAA2 DMA driver is an implementation of the dmadev APIs, that provide means to initiate a DMA transaction from CPU. Earlier this was part of RAW driver, but with DMA drivers added as separate flavor of drivers, this driver is being moved to DMA drivers. Signed-off-by

[PATCH v3 0/6] move DPAA2 QDMA driver freom raw to dma

2022-05-05 Thread nipun . gupta
From: Nipun Gupta This change removes the DPAA2 QDMA raw driver and adds the QDMA driver in dma set of drivers. The underlying I/O framework remains intact, whereas the configuration part is done as per the DMA API support. Changes in v2: - Fix checkpath errors - Fix documentation compilation

[PATCH v2 6/6] dma/dpaa2: support statistics

2022-05-05 Thread nipun . gupta
From: Nipun Gupta This patch support DMA read and reset statistics operations. Signed-off-by: Nipun Gupta --- drivers/dma/dpaa2/dpaa2_qdma.c | 34 ++ 1 file changed, 34 insertions(+) diff --git a/drivers/dma/dpaa2/dpaa2_qdma.c b/drivers/dma/dpaa2/dpaa2_qdma.c

[PATCH v2 5/6] dma/dpaa2: support DMA operations

2022-05-05 Thread nipun . gupta
From: Nipun Gupta This patch support copy, submit, completed and completed status functionality of DMA driver. Signed-off-by: Nipun Gupta --- drivers/dma/dpaa2/dpaa2_qdma.c | 1173 drivers/dma/dpaa2/dpaa2_qdma.h | 71 +- drivers/dma/dpaa2

[PATCH v2 4/6] dma/dpaa2: add PMD apis for additional configuration

2022-05-05 Thread nipun . gupta
From: Nipun Gupta Add additional PMD APIs for DPAA2 QDMA driver for configuring RBP, Ultra Short format, and Scatter Gather support Signed-off-by: Nipun Gupta --- doc/api/doxy-api-index.md | 1 + doc/api/doxy-api.conf.in | 1 + drivers/dma/dpaa2/dpaa2_qdma.c

[PATCH v2 3/6] dma/dpaa2: support basic operations

2022-05-05 Thread nipun . gupta
From: Nipun Gupta This patch support basic DMA operations which includes device capability and channel setup. Signed-off-by: Nipun Gupta --- drivers/dma/dpaa2/dpaa2_qdma.c | 182 + 1 file changed, 182 insertions(+) diff --git a/drivers/dma/dpaa2/dpaa2_qdma.c b

[PATCH v2 2/6] dma/dpaa2: introduce DPAA2 DMA driver skeleton

2022-05-05 Thread nipun . gupta
From: Nipun Gupta The DPAA2 DMA driver is an implementation of the dmadev APIs, that provide means to initiate a DMA transaction from CPU. Earlier this was part of RAW driver, but with DMA drivers added as separate flavor of drivers, this driver is being moved to DMA drivers. Signed-off-by

[PATCH v2 1/6] raw/dpaa2_qdma: remove dpaa2 QDMA driver from raw

2022-05-05 Thread nipun . gupta
From: Nipun Gupta With DMA devices supported as a separate flavor of devices, the DPAA2 QDMA driver is moved in the DMA devices. This change removes the DPAA2 QDMA driver from raw devices. Signed-off-by: Nipun Gupta --- MAINTAINERS |5 - doc/api/doxy-api

[PATCH v2 0/6] move DPAA2 QDMA driver freom raw to dma

2022-05-05 Thread nipun . gupta
From: Nipun Gupta This change removes the DPAA2 QDMA raw driver and adds the QDMA driver in dma set of drivers. The underlying I/O framework remains intact, whereas the configuration part is done as per the DMA API support. Changes in v2: - Fix checkpath errors - Fix documentation compilation

[PATCH 6/6] dma/dpaa2: support statistics

2022-04-21 Thread nipun . gupta
From: Nipun Gupta This patch support DMA read and reset statistics operations. Signed-off-by: Nipun Gupta --- drivers/dma/dpaa2/dpaa2_qdma.c | 34 ++ 1 file changed, 34 insertions(+) diff --git a/drivers/dma/dpaa2/dpaa2_qdma.c b/drivers/dma/dpaa2/dpaa2_qdma.c

[PATCH 5/6] dma/dpaa2: support DMA operations

2022-04-21 Thread nipun . gupta
From: Nipun Gupta This patch support copy, submit, completed and completed status functionality of DMA driver. Signed-off-by: Nipun Gupta --- drivers/dma/dpaa2/dpaa2_qdma.c | 1173 drivers/dma/dpaa2/dpaa2_qdma.h | 71 +- drivers/dma/dpaa2

[PATCH 4/6] dma/dpaa2: add PMD apis for additional configuration

2022-04-21 Thread nipun . gupta
From: Nipun Gupta Add additional PMD APIs for DPAA2 QDMA driver for configuring RBP, Ultra Short format, and Scatter Gather support Signed-off-by: Nipun Gupta --- drivers/dma/dpaa2/dpaa2_qdma.c | 38 ++ drivers/dma/dpaa2/rte_pmd_dpaa2_qdma.h | 96

[PATCH 3/6] dma/dpaa2: support basic operations

2022-04-21 Thread nipun . gupta
From: Nipun Gupta This patch support basic DMA operations which includes device capability and channel setup. Signed-off-by: Nipun Gupta --- drivers/dma/dpaa2/dpaa2_qdma.c | 182 + 1 file changed, 182 insertions(+) diff --git a/drivers/dma/dpaa2/dpaa2_qdma.c b

[PATCH 1/6] raw/dpaa2_qdma: remove dpaa2 QDMA driver from raw

2022-04-21 Thread nipun . gupta
From: Nipun Gupta With DMA devices supported as a separate flavor of devices, the DPAA2 QDMA driver is moved in the DMA devices. This change removes the DPAA2 QDMA driver from raw devices. Signed-off-by: Nipun Gupta --- MAINTAINERS |5 - doc/guides/rawdevs

[PATCH 2/6] dma/dpaa2: introduce DPAA2 DMA driver skeleton

2022-04-21 Thread nipun . gupta
From: Nipun Gupta The DPAA2 DMA driver is an implementation of the dmadev APIs, that provide means to initiate a DMA transaction from CPU. Earlier this was part of RAW driver, but with DMA drivers added as seprate flavor of drivers, this driver is being moved to DMA drivers. Signed-off-by

[PATCH 0/6] move DPAA2 QDMA driver freom raw to dma

2022-04-21 Thread nipun . gupta
From: Nipun Gupta This change removes the DPAA2 QDMA raw driver and adds the QDMA driver in dma set of drivers. The underlying I/O framework remains intact, whereas the configuration part is done as per the DMA API support. Nipun Gupta (6): raw/dpaa2_qdma: remove dpaa2 QDMA driver from raw

RE: [PATCH] net/dpaa2: fix build with musl

2022-02-01 Thread Nipun Gupta
Acked-by: Nipun Gupta > -Original Message- > From: Thomas Monjalon > Sent: 01 February 2022 15:24 > To: dev@dpdk.org > Cc: Jun Yang ; Nipun Gupta ; > Hemant Agrawal ; David Marchand > ; Sachin Saxena (OSS) > > Subject: [PATCH] net/dpaa2: fix build with mus

RE: [PATCH v3 10/15] net/dpaa2: support recycle loopback port

2022-02-01 Thread Nipun Gupta
Hi David, Sure, we will send a patch asap. Regards, Nipun > -Original Message- > From: David Marchand > Sent: 01 February 2022 14:58 > To: Nipun Gupta ; Jun Yang > Cc: dev ; Thomas Monjalon ; Yigit, > Ferruh ; Hemant Agrawal ; > Stephen Hemminger > S

RE: [PATCH v2 70/83] raw/dpaa2_qdma: remove unnecessary NULL checks

2022-01-24 Thread Nipun Gupta
Acked-by: Nipun Gupta > -Original Message- > From: Stephen Hemminger > Sent: 24 January 2022 23:17 > To: dev@dpdk.org > Cc: Stephen Hemminger ; Nipun Gupta > > Subject: [PATCH v2 70/83] raw/dpaa2_qdma: remove unnecessary NULL checks > > Remove redundant NULL

[PATCH] examples/l3fwd: fix Rx burst size for event mode

2022-01-10 Thread nipun . gupta
From: Nipun Gupta While dequeing the packets from the event device, burst size is provided in the API. This was not getting properly conigured in the application. This patch correctly configures the burst size. Fixes: aaf58cb85b62 ("examples/l3fwd: add event port and queue setup"

  1   2   3   4   5   6   7   8   9   >