Fixed compilation error.
v3:
- Resolved checkpatch warnings.
- Fixed compilation error on intel.
- Updated git commit message.
v2:
- Resolved review comments.
- Patch split into multiple patches.
Amit Prakash Shukla (12):
eventdev/dma: introduce DMA adapter
eventdev/dma: support adapter capabilitie
Introduce event dma adapter interface to transfer packets between
dma device and event device.
Signed-off-by: Amit Prakash Shukla
Acked-by: Jerin Jacob
---
MAINTAINERS |6 +
doc/api/doxy-api-index.md |1 +
doc/guides/eventdevs
Added a new eventdev API rte_event_dma_adapter_caps_get(), to get
DMA adapter capabilities supported by the driver.
Signed-off-by: Amit Prakash Shukla
---
lib/eventdev/meson.build| 2 +-
lib/eventdev/rte_eventdev.c | 23 +++
2 files changed, 24 insertions(+), 1 deletion
Added API support to create and free DMA adapter. Create function shall be
called with event device to be associated with the adapter and port
configuration to setup an event port.
Signed-off-by: Amit Prakash Shukla
---
config/rte_config.h | 1 +
lib/eventdev/meson.build
Added API support to add and delete vchan's from the DMA adapter. DMA devid
and vchan are added to the addapter instance by calling
rte_event_dma_adapter_vchan_add and deleted using
rte_event_dma_adapter_vchan_del.
Signed-off-by: Amit Prakash Shukla
---
lib/eventdev/rte_event_dma_adap
Added support for DMA adapter service function for event devices.
Enqueue and dequeue of event from eventdev and DMA device are done
based on the adapter mode and the supported HW capabilities.
Signed-off-by: Amit Prakash Shukla
---
lib/eventdev/rte_event_dma_adapter.c | 588
Added API support to start and stop DMA adapter.
Signed-off-by: Amit Prakash Shukla
---
lib/eventdev/rte_event_dma_adapter.c | 69
1 file changed, 69 insertions(+)
diff --git a/lib/eventdev/rte_event_dma_adapter.c
b/lib/eventdev/rte_event_dma_adapter.c
index
Added API support to get DMA adapter service ID. Service id
returned in the variable by the API call shall be used by application
to map a service core.
Signed-off-by: Amit Prakash Shukla
---
lib/eventdev/rte_event_dma_adapter.c | 17 +
1 file changed, 17 insertions(+)
diff
Added support to set and get runtime params for DMA adapter. The
parameters that can be set/get are defined in
struct rte_event_dma_adapter_runtime_params.
Signed-off-by: Amit Prakash Shukla
---
lib/eventdev/rte_event_dma_adapter.c | 93
1 file changed, 93
Added DMA adapter stats API support to get and reset stats. DMA
SW adapter stats and eventdev driver supported stats for enqueue
and dequeue are reported by get API.
Signed-off-by: Amit Prakash Shukla
---
lib/eventdev/rte_event_dma_adapter.c | 95
1 file changed, 95
Added API support to enqueue a DMA operation to the DMA driver.
Signed-off-by: Amit Prakash Shukla
---
lib/eventdev/rte_event_dma_adapter.c | 13 +
1 file changed, 13 insertions(+)
diff --git a/lib/eventdev/rte_event_dma_adapter.c
b/lib/eventdev/rte_event_dma_adapter.c
index
Added support for DMA adapter event port get.
Signed-off-by: Amit Prakash Shukla
---
lib/eventdev/rte_event_dma_adapter.c | 16
1 file changed, 16 insertions(+)
diff --git a/lib/eventdev/rte_event_dma_adapter.c
b/lib/eventdev/rte_event_dma_adapter.c
index bca2be2731
Added testsuite to test the dma adapter functionality.
The testsuite detects event and DMA device capability
and accordingly dma adapter is configured and modes are
tested. Test command:
/app/test/dpdk-test event_dma_adapter_autotest
Signed-off-by: Amit Prakash Shukla
---
MAINTAINERS
eview comments.
v4:
- Fixed compilation error.
v3:
- Resolved checkpatch warnings.
- Fixed compilation error on intel.
- Updated git commit message.
v2:
- Resolved review comments.
- Patch split into multiple patches.
Amit Prakash Shukla (12):
eventdev/dma: introduce DMA adapter
eventde
Introduce event dma adapter interface to transfer packets between
dma device and event device.
Signed-off-by: Amit Prakash Shukla
Acked-by: Jerin Jacob
---
MAINTAINERS |6 +
doc/api/doxy-api-index.md |1 +
doc/guides/eventdevs
Added a new eventdev API rte_event_dma_adapter_caps_get(), to get
DMA adapter capabilities supported by the driver.
Signed-off-by: Amit Prakash Shukla
---
lib/eventdev/meson.build| 2 +-
lib/eventdev/rte_eventdev.c | 23 +++
2 files changed, 24 insertions(+), 1 deletion
Added API support to create and free DMA adapter. Create function shall be
called with event device to be associated with the adapter and port
configuration to setup an event port.
Signed-off-by: Amit Prakash Shukla
---
config/rte_config.h | 1 +
lib/eventdev/meson.build
Added API support to add and delete vchan's from the DMA adapter. DMA devid
and vchan are added to the addapter instance by calling
rte_event_dma_adapter_vchan_add and deleted using
rte_event_dma_adapter_vchan_del.
Signed-off-by: Amit Prakash Shukla
---
lib/eventdev/rte_event_dma_adap
Added support for DMA adapter service function for event devices.
Enqueue and dequeue of event from eventdev and DMA device are done
based on the adapter mode and the supported HW capabilities.
Signed-off-by: Amit Prakash Shukla
---
lib/eventdev/rte_event_dma_adapter.c | 592
Added API support to start and stop DMA adapter.
Signed-off-by: Amit Prakash Shukla
---
lib/eventdev/rte_event_dma_adapter.c | 69
1 file changed, 69 insertions(+)
diff --git a/lib/eventdev/rte_event_dma_adapter.c
b/lib/eventdev/rte_event_dma_adapter.c
index
Added API support to get DMA adapter service ID. Service id
returned in the variable by the API call shall be used by application
to map a service core.
Signed-off-by: Amit Prakash Shukla
---
lib/eventdev/rte_event_dma_adapter.c | 17 +
1 file changed, 17 insertions(+)
diff
Added support to set and get runtime params for DMA adapter. The
parameters that can be set/get are defined in
struct rte_event_dma_adapter_runtime_params.
Signed-off-by: Amit Prakash Shukla
---
lib/eventdev/rte_event_dma_adapter.c | 93
1 file changed, 93
Added DMA adapter stats API support to get and reset stats. DMA
SW adapter stats and eventdev driver supported stats for enqueue
and dequeue are reported by get API.
Signed-off-by: Amit Prakash Shukla
---
lib/eventdev/rte_event_dma_adapter.c | 95
1 file changed, 95
Added API support to enqueue a DMA operation to the DMA driver.
Signed-off-by: Amit Prakash Shukla
---
lib/eventdev/rte_event_dma_adapter.c | 13 +
1 file changed, 13 insertions(+)
diff --git a/lib/eventdev/rte_event_dma_adapter.c
b/lib/eventdev/rte_event_dma_adapter.c
index
Added support for DMA adapter event port get.
Signed-off-by: Amit Prakash Shukla
---
lib/eventdev/rte_event_dma_adapter.c | 16
1 file changed, 16 insertions(+)
diff --git a/lib/eventdev/rte_event_dma_adapter.c
b/lib/eventdev/rte_event_dma_adapter.c
index f299914dec
Added testsuite to test the dma adapter functionality.
The testsuite detects event and DMA device capability
and accordingly dma adapter is configured and modes are
tested. Test command:
sudo /app/test/dpdk-test --vdev=dma_skeleton \
event_dma_adapter_autotest
Signed-off-by: Amit Prakash Shukla
eview comments.
- Updated git commit message.
v5:
- Resolved review comments.
v4:
- Fixed compilation error.
v3:
- Resolved checkpatch warnings.
- Fixed compilation error on intel.
- Updated git commit message.
v2:
- Resolved review comments.
- Patch split into multiple patches.
Amit Prakash Shukl
Introduce event dma adapter interface to transfer packets between
dma device and event device.
Signed-off-by: Amit Prakash Shukla
Acked-by: Jerin Jacob
---
MAINTAINERS |6 +
doc/api/doxy-api-index.md |1 +
doc/guides/eventdevs
Added a new eventdev API rte_event_dma_adapter_caps_get(), to get
DMA adapter capabilities supported by the driver.
Signed-off-by: Amit Prakash Shukla
---
lib/eventdev/meson.build| 2 +-
lib/eventdev/rte_eventdev.c | 23 +++
2 files changed, 24 insertions(+), 1 deletion
Added API support to create and free DMA adapter. Create function shall be
called with event device to be associated with the adapter and port
configuration to setup an event port.
Signed-off-by: Amit Prakash Shukla
---
config/rte_config.h | 1 +
lib/eventdev/meson.build
Added API support to add and delete vchan's from the DMA adapter. DMA devid
and vchan are added to the addapter instance by calling
rte_event_dma_adapter_vchan_add and deleted using
rte_event_dma_adapter_vchan_del.
Signed-off-by: Amit Prakash Shukla
---
lib/eventdev/rte_event_dma_adap
Added support for DMA adapter service function for event devices.
Enqueue and dequeue of event from eventdev and DMA device are done
based on the adapter mode and the supported HW capabilities.
Signed-off-by: Amit Prakash Shukla
---
lib/eventdev/rte_event_dma_adapter.c | 592
Added API support to start and stop DMA adapter.
Signed-off-by: Amit Prakash Shukla
---
lib/eventdev/rte_event_dma_adapter.c | 69
1 file changed, 69 insertions(+)
diff --git a/lib/eventdev/rte_event_dma_adapter.c
b/lib/eventdev/rte_event_dma_adapter.c
index
Added API support to get DMA adapter service ID. Service id
returned in the variable by the API call shall be used by application
to map a service core.
Signed-off-by: Amit Prakash Shukla
---
lib/eventdev/rte_event_dma_adapter.c | 17 +
1 file changed, 17 insertions(+)
diff
Added support to set and get runtime params for DMA adapter. The
parameters that can be set/get are defined in
struct rte_event_dma_adapter_runtime_params.
Signed-off-by: Amit Prakash Shukla
---
lib/eventdev/rte_event_dma_adapter.c | 93
1 file changed, 93
Added DMA adapter stats API support to get and reset stats. DMA
SW adapter stats and eventdev driver supported stats for enqueue
and dequeue are reported by get API.
Signed-off-by: Amit Prakash Shukla
---
lib/eventdev/rte_event_dma_adapter.c | 95
1 file changed, 95
Added API support to enqueue a DMA operation to the DMA driver.
Signed-off-by: Amit Prakash Shukla
---
lib/eventdev/rte_event_dma_adapter.c | 13 +
1 file changed, 13 insertions(+)
diff --git a/lib/eventdev/rte_event_dma_adapter.c
b/lib/eventdev/rte_event_dma_adapter.c
index
Added support for DMA adapter event port get.
Signed-off-by: Amit Prakash Shukla
---
lib/eventdev/rte_event_dma_adapter.c | 16
1 file changed, 16 insertions(+)
diff --git a/lib/eventdev/rte_event_dma_adapter.c
b/lib/eventdev/rte_event_dma_adapter.c
index f299914dec
Added testsuite to test the dma adapter functionality.
The testsuite detects event and DMA device capability
and accordingly dma adapter is configured and modes are
tested. Test command:
sudo /app/test/dpdk-test --vdev=dma_skeleton \
event_dma_adapter_autotest
Signed-off-by: Amit Prakash Shukla
Updated cnxk DMA driver document to explain about performance tuning
parameters for kernel module.
Signed-off-by: Amit Prakash Shukla
---
doc/guides/dmadevs/cnxk.rst | 30 ++
1 file changed, 30 insertions(+)
diff --git a/doc/guides/dmadevs/cnxk.rst b/doc/guides
> -Original Message-
> From: Anoob Joseph
> Sent: Thursday, September 28, 2023 5:29 PM
> To: Amit Prakash Shukla
> Cc: dev@dpdk.org; Jerin Jacob Kollanukkaran ;
> m...@smartsharesystems.com; fengcheng...@huawei.com;
> kevin.la...@intel.com; bruce.richard...@intel.com;
Hi Chengwen,
Thanks for the review and feedback. Please find my reply in-line.
Thanks,
Amit Shukla
> -Original Message-
> From: fengchengwen
> Sent: Saturday, October 7, 2023 2:31 PM
> To: Amit Prakash Shukla ; Kevin Laatz
> ; Bruce Richardson
> Cc: dev@dpd
> -Original Message-
> From: fengchengwen
> Sent: Saturday, October 7, 2023 3:03 PM
> To: Amit Prakash Shukla ; Kevin Laatz
> ; Bruce Richardson
> Cc: dev@dpdk.org; Jerin Jacob Kollanukkaran ;
> m...@smartsharesystems.com; conor.wa...@intel.com; Vamsi Kris
Hi Chengwen,
Ack, I will make the changes in next version of the patch.
Thanks,
Amit Shukla
> -Original Message-
> From: fengchengwen
> Sent: Monday, October 9, 2023 2:29 PM
> To: Amit Prakash Shukla ; Kevin Laatz
> ; Bruce Richardson
> Cc: dev@dpdk.org; Jerin J
:
- Implementation from RFC.
- Add test support to validate functionality.
Amit Prakash Shukla (2):
dmadev: offload to auto free DMA buffer
test/dma: auto free offload test to free DMA buffer
app/test/test_dmadev.c | 167 +++-
lib/dmadev/rte_dmadev.h | 43 +++
2
This changeset adds support in DMA library to auto free DMA buffer by
hardware. On a supported hardware, application can pass on the mempool
information as part of vchan config.
Signed-off-by: Amit Prakash Shukla
Acked-by: Morten Brørup
Acked-by: Anoob Joseph
---
lib/dmadev/rte_dmadev.h | 43
Add a test case to validate the functionality of drivers' dma
buffer offload auto free. As part of dmadev_autotest, test case
will be executed only if the driver supports buffer offload auto
free and if the test is exported by env variable DPDK_ADD_DMA_TEST.
Signed-off-by: Amit Prakash S
Hi Thomas,
Gentle ping.
Could you please consider merging this series in RC1.
Thanks,
Amit Shukla
From: fengchengwen
Sent: Tuesday, October 10, 2023 7:10 AM
To: Amit Prakash Shukla ; Kevin Laatz
; Bruce Richardson
Cc: dev@dpdk.org; Jerin Jacob Kollanukkaran ;
conor.wa...@intel.com; Vamsi
Added support in driver, to offload source buffer free to hardware
on completion of DMA transfer.
Signed-off-by: Amit Prakash Shukla
---
v2:
- Patch rebased.
v1:
- Driver implementation from RFC.
drivers/dma/cnxk/cnxk_dmadev.c| 48 +++
drivers/dma/cnxk
Thanks Dmitry for the feedback. Please find my reply in-line.
> -Original Message-
> From: Dmitry Kozlyuk
> Sent: Thursday, October 20, 2022 5:11 PM
> To: Amit Prakash Shukla
> Cc: Anatoly Burakov ; dev@dpdk.org; Jerin
> Jacob Kollanukkaran ; david.march...@redhat.co
Amit,
>
> 2022-10-21 19:26 (UTC+), Amit Prakash Shukla:
> [...]
> > > How does the user learn heap_id?
> > > There probably should be /eal/heap_id returning a list of heap IDs.
> >
> > Request for list of active heap Id's is already presen
2
{"/eal/mem_element_info": {"element_1": {"msl_id": 0, "ms_id": 15, \
"memseg_start_addr": "0x10200", "memseg_end_addr": "0x10220", \
"element_start_addr": "0x102000b00", "element_end_addr&
2
{"/eal/mem_element_info": {"element_1": {"msl_id": 0, "ms_id": 15, \
"memseg_start_addr": "0x10200", "memseg_end_addr": "0x10220", \
"element_start_addr": "0x102000b00", "element_end_addr&
This change enhances rte_pcapng_copy to have comment in enhanced
packet block.
Signed-off-by: Amit Prakash Shukla
---
v2:
- Fixed code style issue
- Fixed CI compilation issue on github-robot
app/test/test_pcapng.c | 4 ++--
lib/pcapng/rte_pcapng.c | 10 +-
lib/pcapng/rte_pcapng.h
Implementation adds support to capture packets at each node with
packet metadata and node name.
Signed-off-by: Amit Prakash Shukla
---
v2:
- Fixed code style issue
- Fixed CI compilation issue on github-robot
lib/graph/graph_pcap_trace.c | 165 +++
lib/graph
Added support to configure pcap capture.
Signed-off-by: Amit Prakash Shukla
---
v2:
- Fixed code style issue
- Fixed CI compilation issue on github-robot
doc/guides/sample_app_ug/l3_forward_graph.rst | 9 +++
examples/l3fwd-graph/main.c | 58 ++-
2 files
Hi Stephen,
> -Original Message-
> From: Stephen Hemminger
> Sent: Wednesday, January 11, 2023 9:37 PM
> To: Amit Prakash Shukla
> Cc: Jerin Jacob Kollanukkaran ; Kiran Kumar
> Kokkilagadda ; Nithin Kumar Dabilpuram
> ; dev@dpdk.org
> Subject: [EXT] Re: [P
This change enhances rte_pcapng_copy to have comment in enhanced
packet block.
Signed-off-by: Amit Prakash Shukla
---
v2:
- Fixed code style issue
- Fixed CI compilation issue on github-robot
v3:
- Code review suggestion from Stephen
- Fixed potential memory leak
app/test/test_pcapng.c
Implementation adds support to capture packets at each node with
packet metadata and node name.
Signed-off-by: Amit Prakash Shukla
---
v2:
- Fixed code style issue
- Fixed CI compilation issue on github-robot
v3:
- Code review suggestion from Stephen
- Fixed potential memory leak
lib
Added support to configure pcap capture.
Signed-off-by: Amit Prakash Shukla
---
v2:
- Fixed code style issue
- Fixed CI compilation issue on github-robot
v3:
- Code review suggestion from Stephen
- Fixed potential memory leak
doc/guides/sample_app_ug/l3_forward_graph.rst | 9
Hi Thomas,
> -Original Message-
> From: Thomas Monjalon
> Sent: Friday, January 13, 2023 3:12 AM
> To: Konstantin Ananyev ; Honnappa
> Nagarahalli ; Amit Prakash Shukla
>
> Cc: dev@dpdk.org; Jerin Jacob Kollanukkaran ;
> david.march...@redhat.com; bruce.richard..
Thanks Jerin for the code review and feedback. I will make the suggested
changes in next version of the patch.
> -Original Message-
> From: Jerin Jacob
> Sent: Thursday, January 12, 2023 5:48 PM
> To: Amit Prakash Shukla
> Cc: Jerin Jacob Kollanukkaran ; Kiran Kumar
Hi Stephen,
Thanks for the reply. Please find my reply in-line.
> -Original Message-
> From: Stephen Hemminger
> Sent: Thursday, January 12, 2023 10:00 PM
> To: Amit Prakash Shukla
> Cc: Jerin Jacob Kollanukkaran ; Kiran Kumar
> Kokkilagadda ; Nithin Kumar Dabilpura
This change enhances rte_pcapng_copy to have comment in enhanced
packet block.
Signed-off-by: Amit Prakash Shukla
---
v2:
- Fixed code style issue
- Fixed CI compilation issue on github-robot
v3:
- Code review suggestion from Stephen
- Fixed potential memory leak
v4:
- Code review
Implementation adds support to capture packets at each node with
packet metadata and node name.
Signed-off-by: Amit Prakash Shukla
---
v2:
- Fixed code style issue
- Fixed CI compilation issue on github-robot
v3:
- Code review suggestion from Stephen
- Fixed potential memory leak
v4
Added support to configure pcap capture.
Signed-off-by: Amit Prakash Shukla
---
v2:
- Fixed code style issue
- Fixed CI compilation issue on github-robot
v3:
- Code review suggestion from Stephen
- Fixed potential memory leak
v4:
- Code review suggestion from Jerin
doc/guides
Ping.
> -Original Message-
> From: Amit Prakash Shukla
> Sent: Tuesday, December 6, 2022 5:17 PM
> To: david.march...@redhat.com
> Cc: dev@dpdk.org; Jerin Jacob Kollanukkaran ;
> bruce.richard...@intel.com; ciara.po...@intel.com;
> dmitry.kozl...@gmail.com; Ana
Thanks Jerin for the review and feedback. Sure, I will send next version of the
patch without symbols.
> -Original Message-
> From: Jerin Jacob
> Sent: Monday, January 30, 2023 8:02 PM
> To: Amit Prakash Shukla
> Cc: Jerin Jacob Kollanukkaran ; Abhinandan Gujjar
> ;
Thanks Jerin for the feedback. I will make the changes in next version of the
patch.
> -Original Message-
> From: Jerin Jacob
> Sent: Tuesday, January 31, 2023 1:37 PM
> To: Amit Prakash Shukla
> Cc: Jerin Jacob Kollanukkaran ; Kiran Kumar
> Kokkilagadda ; Nithi
Thanks Jerin for the feedback. I will make the changes in next version of the
patch.
> -Original Message-
> From: Jerin Jacob
> Sent: Tuesday, January 31, 2023 1:45 PM
> To: Amit Prakash Shukla
> Cc: Jerin Jacob Kollanukkaran ; Kiran Kumar
> Kokkilagadda ; Nithi
This change enhances rte_pcapng_copy to have comment in enhanced
packet block.
Signed-off-by: Amit Prakash Shukla
---
v2:
- Fixed code style issue
- Fixed CI compilation issue on github-robot
v3:
- Code review suggestion from Stephen
- Fixed potential memory leak
v4:
- Code review
Implementation adds support to capture packets at each node with
packet metadata and node name.
Signed-off-by: Amit Prakash Shukla
---
v2:
- Fixed code style issue
- Fixed CI compilation issue on github-robot
v3:
- Code review suggestion from Stephen
- Fixed potential memory leak
v4
Added support to configure pcap capture.
Signed-off-by: Amit Prakash Shukla
---
v2:
- Fixed code style issue
- Fixed CI compilation issue on github-robot
v3:
- Code review suggestion from Stephen
- Fixed potential memory leak
v4:
- Code review suggestion from Jerin
v5:
- Code review
Initializing rte_graph_param variable with 0 to avoid any
garbage value in structure elements which are not populated
as part of this function.
Signed-off-by: Amit Prakash Shukla
---
app/test/test_graph_perf.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/app/test
This series adds offload support to free source buffer in dma library
and adds a test support in dmadev_autotest to validate the
functionality.
v1:
- Implementation from RFC.
- Add test support to validate functionality.
Amit Prakash Shukla (2):
dmadev: offload to free source buffer
test/dma
This changeset adds support in DMA library to free source DMA buffer by
hardware. On a supported hardware, application can pass on the mempool
information as part of vchan config when the DMA transfer direction is
configured as RTE_DMA_DIR_MEM_TO_DEV.
Signed-off-by: Amit Prakash Shukla
Acked-by
Add a test case to validate the functionality of drivers' dma
source buffer offload free. As part of dmadev_autotest, test case
will be executed only if the driver supports source buffer offload
free and if the test is exported by env variable DPDK_ADD_DMA_TEST.
Signed-off-by: Amit Prakash S
Added support in driver, to offload source buffer free to hardware
on completion of DMA transfer.
Signed-off-by: Amit Prakash Shukla
---
Depends-on: series-29427 ("use mempool for DMA chunk pool")
Depends-on: series-29442 ("offload support to free dma source buffer")
v1:
- D
Driver implementation of the spec:
http://patches.dpdk.org/project/dpdk/patch/20230907082443.1002665-1-amitpraka...@marvell.com/
> -Original Message-
> From: Amit Prakash Shukla
> Sent: Thursday, September 7, 2023 1:41 PM
> To: Chengwen Feng ; Kevin Laatz
> ; Bruce R
For the event based DMA transfer, all the required parameters are to
be sent as part of a structure. This patch adds a structure
containing the parameters for event based DMA operation.
Signed-off-by: Amit Prakash Shukla
---
lib/dmadev/rte_dmadev.h | 12
1 file changed, 12
Added a function that lookup for the dma device using device id and
returns the pointer to the same.
Signed-off-by: Amit Prakash Shukla
---
lib/dmadev/rte_dmadev.c | 9 +
lib/dmadev/rte_dmadev_pmd.h | 16
lib/dmadev/version.map | 1 +
3 files changed, 26
Hi Bruce,
Thanks for the review. Please see my reply in-line.
> -Original Message-
> From: Bruce Richardson
> Sent: Monday, September 18, 2023 6:30 PM
> To: Amit Prakash Shukla
> Cc: Chengwen Feng ; Kevin Laatz
> ; dev@dpdk.org; Jerin Jacob Kollanukkaran
> ; m...@
> -Original Message-
> From: Jerin Jacob
> Sent: Monday, September 18, 2023 7:12 PM
> To: Amit Prakash Shukla
> Cc: Chengwen Feng ; Kevin Laatz
> ; Bruce Richardson ;
> dev@dpdk.org; Jerin Jacob Kollanukkaran ;
> m...@smartsharesystems.com; conor.wa...@
DMA library has a function to get DMA device based on device name but
there is no function to get DMA device using device id.
Added a function that lookup for the dma device using device id and
returns the pointer to the same.
Signed-off-by: Amit Prakash Shukla
---
v2:
- Dropped patch with dma
Introduce event DMA adapter APIs. The change provides information
on adapter modes and usage. Application can use this event adapter
interface to transfer packets between DMA device and event device.
Signed-off-by: Amit Prakash Shukla
---
doc/api/doxy-api-index.md |1
Added a new eventdev API rte_event_dma_adapter_caps_get(), to get
DMA adapter capabilities supported by the driver.
Signed-off-by: Amit Prakash Shukla
---
lib/eventdev/meson.build| 2 +-
lib/eventdev/rte_eventdev.c | 25 +
lib/eventdev/rte_eventdev.h | 2 +-
lib
-off-by: Amit Prakash Shukla
---
config/rte_config.h |1 +
lib/eventdev/meson.build |2 +
lib/eventdev/rte_event_dma_adapter.c | 1423 ++
lib/eventdev/rte_event_dma_adapter.h | 41 +-
4 files changed, 1458 insertions(+), 9 deletions
Added testsuite to test the dma adapter functionality.
The testsuite detects event and DMA device capability
and accordingly dma adapter is configured and modes are
tested.
Signed-off-by: Amit Prakash Shukla
---
app/test/meson.build | 1 +
app/test/test_event_dma_adapter.c | 814
Adds support to configure writing result to offset of the DMA
response event.
Signed-off-by: Amit Prakash Shukla
---
drivers/common/cnxk/roc_dpi.c | 5 -
drivers/common/cnxk/roc_dpi.h | 2 +-
drivers/common/cnxk/roc_dpi_priv.h | 4
drivers/common/cnxk/roc_idev.c
Added cnxk driver support for dma event enqueue and dequeue.
Signed-off-by: Amit Prakash Shukla
---
drivers/dma/cnxk/cnxk_dma_event_dp.h | 22 +++
drivers/dma/cnxk/cnxk_dmadev.h | 9 +-
drivers/dma/cnxk/cnxk_dmadev_fp.c| 209 +++
drivers/dma/cnxk/meson.build
Added support of dma driver callback assignment to eventdev
enqueue and dequeue. The change also defines dma adapter
capabilities function.
Signed-off-by: Amit Prakash Shukla
---
drivers/event/cnxk/cn10k_eventdev.c | 20
drivers/event/cnxk/cn10k_worker.h | 3 +++
drivers
Hi Jerin,
Thanks for the review and feedback. I will make all suggested changes in next
version of patch.
Thanks,
Amit Shukla
> -Original Message-
> From: Jerin Jacob
> Sent: Thursday, September 21, 2023 8:11 AM
> To: Amit Prakash Shukla
> Cc: Jerin Jacob Kollanukkaran
This series adds support for event DMA adapter library. API's defined
as part of this library can be used by the application for DMA transfer
of data using event based mechanism.
v2:
- Resolved review comments.
- Patch split into multiple patches.
Amit Prakash Shukla (12):
eventdev: intr
Introduce event DMA adapter APIs. The change provides information
on adapter modes and usage. Application can use this event adapter
interface to transfer packets between DMA device and event device.
Signed-off-by: Amit Prakash Shukla
---
MAINTAINERS |5
Added a new eventdev API rte_event_dma_adapter_caps_get(), to get
DMA adapter capabilities supported by the driver.
Signed-off-by: Amit Prakash Shukla
---
lib/eventdev/meson.build| 2 +-
lib/eventdev/rte_eventdev.c | 23 +++
lib/eventdev/rte_eventdev.h | 2 +-
lib
This patch adds API support to create and free DMA adapter.
Signed-off-by: Amit Prakash Shukla
---
config/rte_config.h | 1 +
lib/eventdev/meson.build | 1 +
lib/eventdev/rte_event_dma_adapter.c | 335 +++
3 files changed, 337 insertions
Added API support to add and delete vchan's for a DMA device.
Signed-off-by: Amit Prakash Shukla
---
lib/eventdev/rte_event_dma_adapter.c | 204 +++
1 file changed, 204 insertions(+)
diff --git a/lib/eventdev/rte_event_dma_adapter.c
b/lib/eve
Added support for DMA adapter service function for event devices.
Signed-off-by: Amit Prakash Shukla
---
lib/eventdev/rte_event_dma_adapter.c | 589 +++
1 file changed, 589 insertions(+)
diff --git a/lib/eventdev/rte_event_dma_adapter.c
b/lib/eventdev
Added API support to start and stop DMA adapter.
Signed-off-by: Amit Prakash Shukla
---
lib/eventdev/rte_event_dma_adapter.c | 69
1 file changed, 69 insertions(+)
diff --git a/lib/eventdev/rte_event_dma_adapter.c
b/lib/eventdev/rte_event_dma_adapter.c
index
Added support to set and get runtime params for DMA adapter.
Signed-off-by: Amit Prakash Shukla
---
lib/eventdev/rte_event_dma_adapter.c | 93
1 file changed, 93 insertions(+)
diff --git a/lib/eventdev/rte_event_dma_adapter.c
b/lib/eventdev/rte_event_dma_adapter.c
1 - 100 of 369 matches
Mail list logo