From: Pavan Nikhilesh
Add devargs to control each event timer adapter i.e. TIM rings internal
parameters uniquely. The following dict format is expected
[ring-chnk_slots-disable_npa-stats_ena]. 0 represents default values.
Example:
--dev "0002:0e:00.0,tim_ring_ctl=[2-1023-1-0]"
Signed-o
From: Pavan Nikhilesh
Update Marvell OCTEON TX2 eventdev with event timer adapter i.e. TIM
capabilities.
Claim Maintainership of OCTEON TX2 eventdev.
Cc: John McNamara
Cc: Thomas Monjalon
Signed-off-by: Pavan Nikhilesh
Signed-off-by: Jerin Jacob
---
MAINTAINERS| 6
From: Pavan Nikhilesh
Add TIM event timer adapter info get function.
Signed-off-by: Pavan Nikhilesh
---
drivers/event/octeontx2/otx2_tim_evdev.c | 13 +
1 file changed, 13 insertions(+)
diff --git a/drivers/event/octeontx2/otx2_tim_evdev.c
b/drivers/event/octeontx2/otx2_tim_evdev
From: Pavan Nikhilesh
Add event timer adapter statistics get and reset functions.
Stats are disabled by default and can be enabled through devargs.
Example:
--dev "0002:0e:00.0,tim_stats_ena=1"
Signed-off-by: Pavan Nikhilesh
---
drivers/event/octeontx2/otx2_tim_evdev.c | 55 +
From: Pavan Nikhilesh
Add event timer adapter start and stop functions.
Signed-off-by: Pavan Nikhilesh
---
drivers/event/octeontx2/otx2_tim_evdev.c | 66
1 file changed, 66 insertions(+)
diff --git a/drivers/event/octeontx2/otx2_tim_evdev.c
b/drivers/event/octeontx2/
From: Pavan Nikhilesh
Add devargs to limit the max number of TIM rings reserved on probe.
Since, TIM rings are HW resources we can avoid starving other
applications by not grabbing all the rings.
Example:
--dev "0002:0e:00.0,tim_rings_lmt=2"
Signed-off-by: Pavan Nikhilesh
---
drivers/
From: Pavan Nikhilesh
Add event timer arm timeout burst function.
All the timers requested to be armed have the same timeout.
Signed-off-by: Pavan Nikhilesh
---
drivers/event/octeontx2/otx2_tim_evdev.c | 9 +++
drivers/event/octeontx2/otx2_tim_evdev.h | 16
drivers/event/octeontx2/otx2
From: Pavan Nikhilesh
Add function to cancel event timer that has been armed.
Signed-off-by: Pavan Nikhilesh
---
drivers/event/octeontx2/otx2_tim_evdev.c | 1 +
drivers/event/octeontx2/otx2_tim_evdev.h | 4 +++
drivers/event/octeontx2/otx2_tim_worker.c | 29 ++
drivers/even
From: Pavan Nikhilesh
Add TIM bucket operations used for event timer arm and cancel.
Signed-off-by: Pavan Nikhilesh
---
drivers/event/octeontx2/Makefile | 1 +
drivers/event/octeontx2/meson.build | 1 +
drivers/event/octeontx2/otx2_tim_evdev.h | 28 ++
drivers/event/oc
From: Pavan Nikhilesh
Add event timer arm routine.
Signed-off-by: Pavan Nikhilesh
---
drivers/event/octeontx2/otx2_tim_evdev.c | 20 +++
drivers/event/octeontx2/otx2_tim_evdev.h | 33
drivers/event/octeontx2/otx2_tim_worker.c | 77
drivers/event/octeontx2/otx2_tim_worker.h |
From: Pavan Nikhilesh
If the chunks are allocated from NPA then TIM can automatically free
them when traversing the list of chunks.
Add devargs to disable NPA and use software mempool to manage chunks.
Example:
--dev "0002:0e:00.0,tim_disable_npa=1"
Signed-off-by: Pavan Nikhilesh
---
From: Pavan Nikhilesh
Add devargs support to modify number of chunk slots. Chunks are used to
store event timers, a chunk can be visualised as an array where the last
element points to the next chunk and rest of them are used to store
events. TIM traverses the list of chunks and enqueues the even
From: Pavan Nikhilesh
Add internal SSO functions to allow event adapters to resize SSO buffers
that are used to hold in-flight events in DRAM.
Signed-off-by: Pavan Nikhilesh
---
drivers/event/octeontx2/Makefile | 1 +
drivers/event/octeontx2/meson.build| 1 +
drivers/event/
From: Pavan Nikhilesh
Register and implement TIM IRQ handlers for error interrupts
Signed-off-by: Pavan Nikhilesh
---
drivers/event/octeontx2/otx2_evdev_irq.c | 99
drivers/event/octeontx2/otx2_tim_evdev.c | 37 +
drivers/event/octeontx2/otx2_tim_evdev.h | 14 +
From: Pavan Nikhilesh
Allow TIM to optimize user supplied configuration based on
RTE_EVENT_TIMER_ADAPTER_F_ADJUST_RES flag.
Signed-off-by: Pavan Nikhilesh
---
drivers/event/octeontx2/otx2_evdev.h | 1 +
drivers/event/octeontx2/otx2_tim_evdev.c | 62 +++-
drivers/event/
From: Pavan Nikhilesh
When the application calls timer adapter create the following is used:
- Allocate a TIM lf based on number of lf's provisioned.
- Verify the config parameters supplied.
- Allocate memory required for
* Buckets based on min and max timeout supplied.
* Allocate
From: Pavan Nikhilesh
Add function to retrieve event timer adapter capabilities.
Signed-off-by: Pavan Nikhilesh
---
drivers/event/octeontx2/otx2_evdev.c | 2 ++
drivers/event/octeontx2/otx2_tim_evdev.c | 19 +++
drivers/event/octeontx2/otx2_tim_evdev.h | 17 +++
From: Pavan Nikhilesh
Add Marvell OCTEON TX2 event device documentation.
This patch also updates the MAINTAINERS file and
updates shared library versions in release_19_08.rst.
Cc: John McNamara
Cc: Thomas Monjalon
Signed-off-by: Pavan Nikhilesh
---
doc/guides/eventdevs/index.rst |
From: Pavan Nikhilesh
Add event timer adapter aka TIM initilization on SSO probe.
Signed-off-by: Pavan Nikhilesh
---
Cc: Erik Gabriel Carrillo
drivers/event/octeontx2/Makefile | 1 +
drivers/event/octeontx2/meson.build | 1 +
drivers/event/octeontx2/otx2_evdev.c | 2 +
dr
From: Pavan Nikhilesh
Octeontx2 SSO by default is set to use dual workslot mode.
Add devargs option to force legacy mode i.e. single workslot mode.
Example:
--dev "0002:0e:00.0,single_ws=1"
Signed-off-by: Pavan Nikhilesh
---
drivers/event/octeontx2/otx2_evdev.c | 8 +++-
drivers/e
From: Pavan Nikhilesh
Add selftest to verify sanity of SSO.
Can be run by passing devargs to SSO PF as follows:
--dev "0002:0e:00.0,selftest=1"
Signed-off-by: Pavan Nikhilesh
Signed-off-by: Jerin Jacob
---
drivers/event/octeontx2/Makefile |1 +
drivers/event/octeontx
From: Pavan Nikhilesh
Signed-off-by: Pavan Nikhilesh
---
drivers/event/octeontx2/otx2_evdev.c | 39
1 file changed, 39 insertions(+)
diff --git a/drivers/event/octeontx2/otx2_evdev.c
b/drivers/event/octeontx2/otx2_evdev.c
index 438bfcb9f..9260fdac4 100644
--- a/dr
From: Pavan Nikhilesh
SSO GGRPs i.e. queue uses DRAM & SRAM buffers to hold in-flight
events. By default the buffers are assigned to the SSO GGRPs to
satisfy minimum HW requirements. SSO is free to assign the remaining
buffers to GGRPs based on a preconfigured threshold.
We can control the QoS of
From: Pavan Nikhilesh
Add eventdev start function along with few cleanup API's to maintain
sanity.
Signed-off-by: Pavan Nikhilesh
---
drivers/event/octeontx2/otx2_evdev.c | 127 +-
drivers/event/octeontx2/otx2_evdev.h | 6 ++
drivers/event/octeontx2/otx2_worker.c |
From: Pavan Nikhilesh
Add SSO HW device operations used for enqueue/dequeue.
Signed-off-by: Pavan Nikhilesh
Signed-off-by: Jerin Jacob
---
drivers/event/octeontx2/Makefile | 1 +
drivers/event/octeontx2/meson.build | 3 +-
drivers/event/octeontx2/otx2_evdev.h | 7 +
drivers/even
From: Pavan Nikhilesh
Add workder dual workslot mode dequeue functions.
Signed-off-by: Pavan Nikhilesh
---
drivers/event/octeontx2/otx2_evdev.h | 9 +++
drivers/event/octeontx2/otx2_worker_dual.c | 66 ++
2 files changed, 75 insertions(+)
diff --git a/drivers/event/
From: Pavan Nikhilesh
Add SSO dual workslot mode GWS HW device operations.
Signed-off-by: Pavan Nikhilesh
Signed-off-by: Jerin Jacob
---
drivers/event/octeontx2/Makefile | 1 +
drivers/event/octeontx2/meson.build| 1 +
drivers/event/octeontx2/otx2_worker_dual.c | 6 ++
dr
From: Pavan Nikhilesh
Add worker event enqueue functions.
Signed-off-by: Pavan Nikhilesh
---
drivers/event/octeontx2/otx2_evdev.h | 8 ++
drivers/event/octeontx2/otx2_worker.c | 136 ++
2 files changed, 144 insertions(+)
diff --git a/drivers/event/octeontx2/otx2_evd
From: Pavan Nikhilesh
Add dual workslot mode event enqueue functions.
Signed-off-by: Pavan Nikhilesh
Signed-off-by: Jerin Jacob
---
drivers/event/octeontx2/otx2_evdev.h | 9 ++
drivers/event/octeontx2/otx2_worker_dual.c | 135 +
2 files changed, 144 insertions(+)
From: Pavan Nikhilesh
Signed-off-by: Pavan Nikhilesh
---
drivers/event/octeontx2/otx2_evdev.c | 11 +++
drivers/event/octeontx2/otx2_evdev.h | 1 +
2 files changed, 12 insertions(+)
diff --git a/drivers/event/octeontx2/otx2_evdev.c
b/drivers/event/octeontx2/otx2_evdev.c
index 7875a9a
From: Pavan Nikhilesh
Links between queues and ports are controlled by setting/clearing GGRP
membership in SSOW_LF_GWS_GRPMSK_CHG.
Signed-off-by: Pavan Nikhilesh
---
drivers/event/octeontx2/otx2_evdev.c | 73
1 file changed, 73 insertions(+)
diff --git a/drivers/e
From: Pavan Nikhilesh
OcteonTx2 AP core SSO cache contains two entires each entry caches
state of an single GWS aka event port.
AP core requests events from SSO by using following sequence :
1. Write to SSOW_LF_GWS_OP_GET_WORK
2. Wait for SSO to complete scheduling by polling on SSOW_LF_GWS_TAG[6
From: Pavan Nikhilesh
Add worker event dequeue functions.
Signed-off-by: Pavan Nikhilesh
---
drivers/event/octeontx2/otx2_evdev.h | 10 +
drivers/event/octeontx2/otx2_worker.c | 55 +++
2 files changed, 65 insertions(+)
diff --git a/drivers/event/octeontx2/otx2_ev
From: Pavan Nikhilesh
Add support for retrieving statistics from SSO GWS and GGRP.
Signed-off-by: Pavan Nikhilesh
Signed-off-by: Jerin Jacob
Signed-off-by: Nithin Dabilpuram
---
drivers/event/octeontx2/otx2_evdev.c | 5 +
drivers/event/octeontx2/otx2_evdev_stats.h | 242 +
From: Pavan Nikhilesh
Register and implement SSO GWS and GGRP IRQ handlers for error
interrupts.
Signed-off-by: Pavan Nikhilesh
Signed-off-by: Jerin Jacob
---
drivers/event/octeontx2/Makefile | 1 +
drivers/event/octeontx2/meson.build | 4 +-
drivers/event/octeontx2/otx2_evde
From: Pavan Nikhilesh
Add SSO GWS and GGRP register dump function to aid debugging.
Signed-off-by: Pavan Nikhilesh
---
drivers/event/octeontx2/otx2_evdev.c | 68
1 file changed, 68 insertions(+)
diff --git a/drivers/event/octeontx2/otx2_evdev.c
b/drivers/event/oc
From: Pavan Nikhilesh
Add the info_get function to return details on the queues, flow,
prioritization capabilities, etc. which this device has.
Signed-off-by: Pavan Nikhilesh
---
drivers/event/octeontx2/otx2_evdev.c | 31
1 file changed, 31 insertions(+)
diff --gi
From: Pavan Nikhilesh
The number of events for a *open system* event device is specified
as -1 as per the eventdev specification.
Since, Octeontx2 SSO inflight events are only limited by DRAM size, the
xae_cnt devargs parameter is introduced to provide upper limit for
in-flight events.
Example:
From: Pavan Nikhilesh
Add default config, setup and release functions for event ports
i.e. SSO GWS.
Signed-off-by: Pavan Nikhilesh
---
drivers/event/octeontx2/otx2_evdev.c | 110 ++-
drivers/event/octeontx2/otx2_evdev.h | 59 ++
2 files changed, 168 inserti
From: Pavan Nikhilesh
Add the make and meson based build infrastructure along with the
eventdev(SSO) device probe.
Signed-off-by: Jerin Jacob
Signed-off-by: Pavan Nikhilesh
Signed-off-by: Nithin Dabilpuram
---
config/common_base| 5 ++
drivers/event/Makefile
From: Pavan Nikhilesh
Add default config, setup and release functions for event queues i.e.
SSO GGRPS.
Signed-off-by: Pavan Nikhilesh
---
drivers/event/octeontx2/otx2_evdev.c | 50
drivers/event/octeontx2/otx2_evdev.h | 17 ++
2 files changed, 67 insertions
From: Pavan Nikhilesh
Allocate buffers in DRAM that hold inflight events.
Signed-off-by: Pavan Nikhilesh
---
drivers/event/octeontx2/Makefile | 2 +-
drivers/event/octeontx2/otx2_evdev.c | 111 ++-
drivers/event/octeontx2/otx2_evdev.h | 8 ++
3 files changed, 11
From: Pavan Nikhilesh
SSO object needs to be initialized to communicate with the kernel AF
driver through mbox using the common API's.
Also, initialize the internal eventdev structure to defaults.
Attach NPA lf to the PF if needed.
Signed-off-by: Jerin Jacob
Signed-off-by: Pavan Nikhilesh
Sign
From: Pavan Nikhilesh
This patchset adds OCTEON TX2 event device driver and event timer
adapter driver.
More details can be found in
[PATCH 26/44] doc: add Marvell OCTEON TX2 event device
[PATCH 44/44] doc: update Marvell OCTEON TX2 eventdev
under doc/guides/eventdevs/octeontx2
Depends on the
From: Pavan Nikhilesh
Add the device configure function that attaches the requested number of
SSO GWS(event ports) and GGRP(event queues) LF's to the PF.
Signed-off-by: Pavan Nikhilesh
---
drivers/event/octeontx2/otx2_evdev.c | 258 +++
drivers/event/octeontx2/otx2_evde
From: Satha Rao
Update the devbind script with new section of DMA devices, also
added OCTEONTX2 DMA device ID to DMA device list
Signed-off-by: Satha Rao
Signed-off-by: Vamsi Attunuru
---
usertools/dpdk-devbind.py | 8
1 file changed, 8 insertions(+)
diff --git a/usertools/dpdk-devb
From: Satha Rao
Add documentation and update MAINTAINERS file.
Cc: John McNamara
Cc: Thomas Monjalon
Signed-off-by: Satha Rao
Signed-off-by: Vamsi Attunuru
Signed-off-by: Jerin Jacob
---
MAINTAINERS | 6 ++
doc/guides/platform/octeontx2.rst| 5 ++
doc/guid
From: Satha Rao
Add enqueue operation.
Signed-off-by: Satha Rao
Signed-off-by: Vamsi Attunuru
---
drivers/raw/octeontx2_dma/otx2_dpi_rawdev.c | 166
1 file changed, 166 insertions(+)
diff --git a/drivers/raw/octeontx2_dma/otx2_dpi_rawdev.c
b/drivers/raw/octeontx2_dma/ot
From: Satha Rao
Sample test to verify DMA functionality, this test covers
internal transfer mode.
Signed-off-by: Satha Rao
Signed-off-by: Vamsi Attunuru
---
drivers/raw/octeontx2_dma/Makefile | 2 +-
drivers/raw/octeontx2_dma/meson.build | 2 +-
drivers/raw/octeontx2_dma/ot
From: Satha Rao
Send message to PF to stop DMA queue when device close is
called from application.
Defined the required data structures to support enqueue and
dequeue APIs.
Signed-off-by: Satha Rao
Signed-off-by: Vamsi Attunuru
---
drivers/raw/octeontx2_dma/otx2_dpi_rawdev.c | 33 +
driv
From: Satha Rao
Add dequeue, device start, stop, close and reset operations.
Signed-off-by: Satha Rao
Signed-off-by: Vamsi Attunuru
---
drivers/raw/octeontx2_dma/otx2_dpi_rawdev.c | 64 +
1 file changed, 64 insertions(+)
diff --git a/drivers/raw/octeontx2_dma/otx2_dpi_raw
From: Satha Rao
Register dev_configure API to configure DPI PCI devices.
After successful initialisation send message to PF to open
corresponding DPI DMA queue. At present hardware doesn't
support mail box for DPI, so PMD to PF communication uses
prebuild kernel devfs.
Signed-off-by: Satha Rao
From: Jerin Jacob
This patchset adds support for OCTEON TX2 DMA driver as DPDK rawdevice.
This patch set is depended on "OCTEON TX2 common and mempool driver" series.
http://mails.dpdk.org/archives/dev/2019-June/133329.html
This patches series also available at https://github.com/jerinjacobk/dp
From: Satha Rao
Add the make and meson based build infrastructure along
with the DMA device probe.
Signed-off-by: Satha Rao
Signed-off-by: Vamsi Attunuru
---
config/common_base| 5 +
drivers/raw/Makefile | 1 +
drivers/raw/meson.build
From: Satha Rao
Probe function enhanced to allocate and initialise PMD private data.
Signed-off-by: Satha Rao
Signed-off-by: Vamsi Attunuru
---
drivers/raw/octeontx2_dma/otx2_dpi_rawdev.c | 25 +++--
drivers/raw/octeontx2_dma/otx2_dpi_rawdev.h | 59 +
2 files changed,
On 05/31, William Tu wrote:
>When users call rte_eth_dev_close() and rte_dev_remove(), the af_xdp
>pmd return -1 (EPERM) due to eth_dev == NULL.
>
>Since the af_xdp pmd driver advertises RTE_ETH_DEV_CLOSE_REMOVE, all
>the resources are freed on rte_eth_dev_close(). rte_dev_remove() tries
>to detac
On Sat, Jun 1, 2019 at 1:28 AM Dharmik Thakkar
wrote:
> This patch rectifies slave_id passed to rte_eal_wait_lcore()
> to point to valid cores in read-write lock-free concurrency test.
>
> It also replaces a 'for' loop with RTE_LCORE_FOREACH API.
>
> Fixes: dfd9d5537e876 ("test/hash: use existing
Rx datapath feature bits were useful on migration from the old offload API
to the new one. However, right now it just adds indirection which
complicates code reading and understanding. Also addition of a new
offloads requires addition of a new feature bits and makes patches longer
and harder to und
Tx datapath feature bits were useful on migration from the old offload API
to the new one. However, right now it just adds indirection which
complicates code reading and understanding. Also addition of a new
offloads requires addition of a new feature bits and makes patches longer
and harder to und
59 matches
Mail list logo