[PATCH v5 0/3] Introduce event link profiles

2023-10-03 Thread pbhagavatula
From: Pavan Nikhilesh A collection of event queues linked to an event port can be associated with unique identifier called as a link profile, multiple such profiles can be configured based on the event device capability using the function `rte_event_port_profile_links_set` which takes arguments s

[PATCH v5 1/3] eventdev: introduce link profiles

2023-10-03 Thread pbhagavatula
From: Pavan Nikhilesh A collection of event queues linked to an event port can be associated with a unique identifier called as a link profile, multiple such profiles can be created based on the event device capability using the function `rte_event_port_profile_links_set` which takes arguments si

[PATCH v5 2/3] event/cnxk: implement event link profiles

2023-10-03 Thread pbhagavatula
From: Pavan Nikhilesh Implement event link profiles support on CN10K and CN9K. Both the platforms support up to 2 link profiles. Signed-off-by: Pavan Nikhilesh --- doc/guides/eventdevs/cnxk.rst | 1 + doc/guides/eventdevs/features/cnxk.ini | 3 +- doc/guides/rel_notes/release_23_11.

[PATCH v5 3/3] test/event: add event link profile test

2023-10-03 Thread pbhagavatula
From: Pavan Nikhilesh Add test case to verify event link profiles. Signed-off-by: Pavan Nikhilesh --- app/test/test_eventdev.c | 117 +++ 1 file changed, 117 insertions(+) diff --git a/app/test/test_eventdev.c b/app/test/test_eventdev.c index c51c93bdbd..0e

[PATCH v6 0/3] Introduce event link profiles

2023-10-03 Thread pbhagavatula
From: Pavan Nikhilesh A collection of event queues linked to an event port can be associated with unique identifier called as a link profile, multiple such profiles can be configured based on the event device capability using the function `rte_event_port_profile_links_set` which takes arguments s

[PATCH v6 1/3] eventdev: introduce link profiles

2023-10-03 Thread pbhagavatula
From: Pavan Nikhilesh A collection of event queues linked to an event port can be associated with a unique identifier called as a link profile, multiple such profiles can be created based on the event device capability using the function `rte_event_port_profile_links_set` which takes arguments si

[PATCH v6 2/3] event/cnxk: implement event link profiles

2023-10-03 Thread pbhagavatula
From: Pavan Nikhilesh Implement event link profiles support on CN10K and CN9K. Both the platforms support up to 2 link profiles. Signed-off-by: Pavan Nikhilesh --- doc/guides/eventdevs/cnxk.rst | 1 + doc/guides/eventdevs/features/cnxk.ini | 3 +- doc/guides/rel_notes/release_23_11.

[PATCH v6 3/3] test/event: add event link profile test

2023-10-03 Thread pbhagavatula
From: Pavan Nikhilesh Add test case to verify event link profiles. Signed-off-by: Pavan Nikhilesh --- app/test/test_eventdev.c | 117 +++ 1 file changed, 117 insertions(+) diff --git a/app/test/test_eventdev.c b/app/test/test_eventdev.c index c51c93bdbd..0e

[PATCH] eventdev: fix port link and unlink

2023-10-03 Thread pbhagavatula
From: Pavan Nikhilesh Port link and unlink rely on info get API to validate max supported profiles, the default max profiles is initialized in ``rte_dev_info_get`` API, use it instead of invoking driver callback. Fixes: 162aa4e1b479 ("eventdev: introduce link profiles") Signed-off-by: Pavan Nik

[PATCH v2] eventdev: fix port link and unlink

2023-10-03 Thread pbhagavatula
From: Pavan Nikhilesh Port link and unlink rely on info get API to validate max supported profiles, the default max profiles is initialized in ``rte_dev_info_get`` API, use it instead of invoking driver callback. Fixes: 162aa4e1b479 ("eventdev: introduce link profiles") Signed-off-by: Pavan Nik

[PATCH] eventdev: fix max link profiles info

2023-10-03 Thread pbhagavatula
From: Pavan Nikhilesh Since most of the drivers overwrite the info structure passed from the common layer it is not possible to set defaults in ``rte_event_dev_info_get`` API. Initialize default max_profiles_per_port in the driver layer. Fixes: 162aa4e1b479 ("eventdev: introduce link profiles")

[PATCH] event/cnxk: update fc check to use SQEs

2023-10-16 Thread pbhagavatula
From: Pavan Nikhilesh Update fc check to count SQEs instead of SQBs while waiting for space. Signed-off-by: Pavan Nikhilesh --- drivers/event/cnxk/cn10k_tx_worker.h | 33 ++-- drivers/event/cnxk/cn9k_worker.h | 33 +--- 2 files changed, 51 in

[PATCH v2] eventdev: increase xstats ID width to 64 bits

2022-10-13 Thread pbhagavatula
From: Pavan Nikhilesh Increase xstats ID width from 32 to 64 bits. This also fixes the xstats ID datatype discrepancy between reset and rest of the xstats family. Signed-off-by: Pavan Nikhilesh Acked-by: Morten Brørup Reviewed-by: Mattias Rönnblom --- v2 Changes: - Fix compilation on 32 bit

[PATCH] event/cnxk: fix incorrect mbuf offset calculation

2022-10-25 Thread pbhagavatula
From: Pavan Nikhilesh Fix incorrect mbuf offset calculation when HEADROOM exceeds 128B while processing event vectors. Fixes: 7fbbc981d54f("event/cnxk: support vectorized Rx event fast path") Signed-off-by: Pavan Nikhilesh Change-Id: I1c33c8a5cce29c3ea7eb0411f4e1bedf42053167 --- drivers/net/c

[PATCH v6 1/5] examples/l3fwd: fix port group mask generation

2022-10-25 Thread pbhagavatula
From: Pavan Nikhilesh Fix port group mask generation in altivec, vec_any_eq returns 0 or 1 while port_groupx4 expects comparison mask result. Fixes: 2193b7467f7a ("examples/l3fwd: optimize packet processing on powerpc") Cc: sta...@dpdk.org Signed-off-by: Pavan Nikhilesh Acked-by: Shijith Thott

[PATCH v6 2/5] examples/l3fwd: split processing and send stages

2022-10-25 Thread pbhagavatula
From: Pavan Nikhilesh Split packet processing from packet send stage, as send stage is not common for poll and event mode. Signed-off-by: Pavan Nikhilesh Acked-by: Shijith Thotton --- examples/l3fwd/l3fwd_em_hlm.h | 39 +++--- examples/l3fwd/l3fwd_lpm_altivec.h |

[PATCH v6 4/5] examples/l3fwd: fix event vector processing in fib

2022-10-25 Thread pbhagavatula
From: Pavan Nikhilesh Fix stack overflow when event vector size is greater than MAX_BURST_SIZE. Add missing mac swap and rfc1812 stage. Fixes: e8adca1951d4 ("examples/l3fwd: support event vector") Signed-off-by: Pavan Nikhilesh Acked-by: Shijith Thotton --- examples/l3fwd/l3fwd_fib.c | 130 +

[PATCH v6 3/5] examples/l3fwd: use lpm vector path for event vector

2022-10-25 Thread pbhagavatula
From: Pavan Nikhilesh Use lpm vector path to process event vector. Signed-off-by: Pavan Nikhilesh Acked-by: Shijith Thotton --- examples/l3fwd/l3fwd_altivec.h | 29 ++ examples/l3fwd/l3fwd_event.h | 71 ++ examples/l3fwd/l3fwd_lpm.c | 39 +

[PATCH v6 5/5] examples/l3fwd: use em vector path for event vector

2022-10-25 Thread pbhagavatula
From: Pavan Nikhilesh Use em vector path to process event vector. Signed-off-by: Pavan Nikhilesh Acked-by: Shijith Thotton --- examples/l3fwd/l3fwd_em.c| 13 +++-- examples/l3fwd/l3fwd_em.h| 29 +-- examples/l3fwd/l3fwd_em_hlm.h| 72 +---

[PATCH v2] event/cnxk: fix incorrect mbuf offset calculation

2022-10-25 Thread pbhagavatula
From: Pavan Nikhilesh Fix incorrect mbuf offset calculation when HEADROOM exceeds 128B while processing event vectors. Fixes: 7fbbc981d54f("event/cnxk: support vectorized Rx event fast path") Signed-off-by: Pavan Nikhilesh --- v2 Changes: - Remove internal Change-Id. drivers/net/cnxk/cn10k

[PATCH v4] doc: update Linux core isolation guide

2022-10-31 Thread pbhagavatula
From: Pavan Nikhilesh Update Linux core isolation guide to include isolation from timers, RCU processing and IRQs. Signed-off-by: Pavan Nikhilesh Acked-by: Jerin Jacob --- v4 Changes: - Give names to Links to make them clickable. (Thomas) - Fix link formatting. v3 Changes: - Add addition

[PATCH] common/cnxk: remove unnecessary locks

2023-02-01 Thread pbhagavatula
From: Pavan Nikhilesh Remove unnecessary locks as locking is now taken care by mbox_get and mbox_put. Signed-off-by: Pavan Nikhilesh --- Depends-on: 26537 drivers/common/cnxk/roc_sso.c | 25 - drivers/common/cnxk/roc_sso_priv.h | 1 - 2 files changed, 26 deletio

[PATCH 1/2] event/cnxk: fix burst timer arm routine

2023-02-02 Thread pbhagavatula
From: Pavan Nikhilesh Fix timer burst arm routine writing improper updates to the bucket. Fixes: 5f644e1bd14c ("event/cnxk: add timer arm timeout burst") Signed-off-by: Pavan Nikhilesh --- drivers/event/cnxk/cnxk_tim_worker.h | 81 ++-- 1 file changed, 42 insertions(+)

[PATCH 2/2] event/cnxk: update timer arm burst parameters

2023-02-02 Thread pbhagavatula
From: Pavan Nikhilesh Increase the timer arm burst size to 16 and chunk size for optimum performance. Use fixed size chunk pool cache to avoid high alloc cycles. Signed-off-by: Pavan Nikhilesh --- drivers/event/cnxk/cnxk_tim_evdev.c | 7 ++- drivers/event/cnxk/cnxk_tim_evdev.h | 5 ++--

[PATCH] event/cnxk: fix timer ops init in secondary

2023-02-04 Thread pbhagavatula
From: Pavan Nikhilesh Fix event timer fast-path ops not being initialized in secondary process. Fixes: dd519f83dd96 ("event/cnxk: add timer adapter capabilities") Signed-off-by: Pavan Nikhilesh --- drivers/event/cnxk/cnxk_tim_evdev.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/

[PATCH v2 0/3] Introduce event link profiles

2023-08-31 Thread pbhagavatula
From: Pavan Nikhilesh A collection of event queues linked to an event port can be associated with unique identifier called as a profile, multiple such profiles can be configured based on the event device capability using the function `rte_event_port_profile_links_set` which takes arguments simila

[PATCH v2 1/3] eventdev: introduce link profiles

2023-08-31 Thread pbhagavatula
From: Pavan Nikhilesh A collection of event queues linked to an event port can be associated with a unique identifier called as a profile, multiple such profiles can be created based on the event device capability using the function `rte_event_port_profile_links_set` which takes arguments similar

[PATCH v2 2/3] event/cnxk: implement event link profiles

2023-08-31 Thread pbhagavatula
From: Pavan Nikhilesh Implement event link profiles support on CN10K and CN9K. Both the platforms support up to 2 link profiles. Signed-off-by: Pavan Nikhilesh --- doc/guides/eventdevs/cnxk.rst | 1 + doc/guides/eventdevs/features/cnxk.ini | 3 +- doc/guides/rel_notes/release_23_11.

[PATCH v2 3/3] test/event: add event link profile test

2023-08-31 Thread pbhagavatula
From: Pavan Nikhilesh Add test case to verify event link profiles. Signed-off-by: Pavan Nikhilesh --- app/test/test_eventdev.c | 117 +++ 1 file changed, 117 insertions(+) diff --git a/app/test/test_eventdev.c b/app/test/test_eventdev.c index 29354a24c9..b3

[PATCH v5 1/2] dma/cnxk: use mempool for DMA chunk pool

2023-09-05 Thread pbhagavatula
From: Pavan Nikhilesh Use rte_mempool for DMA chunk pool to allow using mempool cache. Convert logtype register macro for all cnxk drivers to RTE_LOG_REGISTER_DEFAULT. Signed-off-by: Pavan Nikhilesh --- Depends-on: 29324 v5 Changes: - Use RTE_LOG_REGISTER_DEFAULT for registering logging. v4

[PATCH v5 2/2] dma/cnxk: rewrite DMA fastpath

2023-09-05 Thread pbhagavatula
From: Pavan Nikhilesh Rewrite DMA fastpath to use NEON instructions and reduce number of words read from config. Signed-off-by: Pavan Nikhilesh --- drivers/dma/cnxk/cnxk_dmadev.c| 454 +++-- drivers/dma/cnxk/cnxk_dmadev.h| 89 +- drivers/dma/cnxk/cnxk_dmade

[PATCH 2/3] event/cnxk: remove checks from op release

2023-09-05 Thread pbhagavatula
From: Pavan Nikhilesh Remove expensive fastpath checks from op release, remove explicit release in CN9K tx routine. Signed-off-by: Pavan Nikhilesh --- drivers/event/cnxk/cn9k_worker.h | 17 - drivers/event/cnxk/cnxk_worker.h | 6 -- 2 files changed, 23 deletions(-) diff -

[PATCH 1/3] cnxk/event: invalidate GWC on port reset

2023-09-05 Thread pbhagavatula
From: Pavan Nikhilesh Invalidate GWC on event port i.e., HWS reset to prevent invalid response from SSO. Signed-off-by: Pavan Nikhilesh --- drivers/common/cnxk/roc_sso.c | 31 + drivers/common/cnxk/roc_sso.h | 2 ++ drivers/common/cnxk/version.map |

[PATCH 3/3] common/cnxk: use local labels in asm intrinsic

2023-09-05 Thread pbhagavatula
From: Pavan Nikhilesh Using labels in asm generates them as regular function and shades callstack in tools like gdb or perf. Use local label instead for better visibility. Signed-off-by: Pavan Nikhilesh --- drivers/common/cnxk/roc_sso_dp.h | 12 ++-- 1 file changed, 6 insertions(+), 6

[PATCH v6 1/2] dma/cnxk: rework DMA driver

2023-09-09 Thread pbhagavatula
From: Pavan Nikhilesh To use the mempool cache, use rte_mempool for the DMA chunk pool. Move the mempool creation to device start to limit the number of chunks allocated based on the total number of descriptors configured across all the vchans. Remove unnecessary state tracking flags as the libr

[PATCH v6 2/2] dma/cnxk: rewrite DMA fastpath

2023-09-09 Thread pbhagavatula
From: Pavan Nikhilesh Rewrite DMA fastpath to use NEON instructions and reduce number of words read from config. Signed-off-by: Pavan Nikhilesh --- drivers/dma/cnxk/cnxk_dmadev.c| 428 ++--- drivers/dma/cnxk/cnxk_dmadev.h| 59 +++- drivers/dma/cnxk/cnxk_dmadev_

[PATCH v7 1/2] dma/cnxk: rework DMA driver

2023-09-09 Thread pbhagavatula
From: Pavan Nikhilesh To use the mempool cache, use rte_mempool for the DMA chunk pool. Move the mempool creation to device start to limit the number of chunks allocated based on the total number of descriptors configured across all the vchans. Remove unnecessary state tracking flags as the libr

[PATCH v7 2/2] dma/cnxk: rewrite DMA fastpath

2023-09-09 Thread pbhagavatula
From: Pavan Nikhilesh Rewrite DMA fastpath to use NEON instructions and reduce number of words read from config. Signed-off-by: Pavan Nikhilesh --- drivers/dma/cnxk/cnxk_dmadev.c| 428 ++--- drivers/dma/cnxk/cnxk_dmadev.h| 59 +++- drivers/dma/cnxk/cnxk_dmadev_

[PATCH v8 1/2] dma/cnxk: rework DMA driver

2023-09-09 Thread pbhagavatula
From: Pavan Nikhilesh To use the mempool cache, use rte_mempool for the DMA chunk pool. Move the mempool creation to device start to limit the number of chunks allocated based on the total number of descriptors configured across all the vchans. Remove unnecessary state tracking flags as the libr

[PATCH v8 2/2] dma/cnxk: rewrite DMA fastpath

2023-09-09 Thread pbhagavatula
From: Pavan Nikhilesh Rewrite DMA fastpath to use NEON instructions and reduce number of words read from config. Signed-off-by: Pavan Nikhilesh --- drivers/dma/cnxk/cnxk_dmadev.c| 428 ++--- drivers/dma/cnxk/cnxk_dmadev.h| 59 +++- drivers/dma/cnxk/cnxk_dmadev_

[PATCH 1/2] event/cnxk: flush flow context on cleanup

2023-09-09 Thread pbhagavatula
From: Pavan Nikhilesh Flush currently held flow context on event port cleanup. Signed-off-by: Pavan Nikhilesh --- drivers/event/cnxk/cn10k_eventdev.c | 18 ++ drivers/event/cnxk/cn9k_eventdev.c | 25 +++-- 2 files changed, 33 insertions(+), 10 deletions(-)

[PATCH 2/2] common/cnxk: split XAQ counts

2023-09-09 Thread pbhagavatula
From: Pavan Nikhilesh Split XAQ counts into reserved and cached to allow more events to be inflight. Signed-off-by: Pavan Nikhilesh --- drivers/common/cnxk/roc_sso.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/drivers/common/cnxk/roc_sso.c b/drivers/common/cnxk/r

[PATCH v3 0/3] Introduce event link profiles

2023-09-21 Thread pbhagavatula
From: Pavan Nikhilesh A collection of event queues linked to an event port can be associated with unique identifier called as a profile, multiple such profiles can be configured based on the event device capability using the function `rte_event_port_profile_links_set` which takes arguments simila

[PATCH v3 1/3] eventdev: introduce link profiles

2023-09-21 Thread pbhagavatula
From: Pavan Nikhilesh A collection of event queues linked to an event port can be associated with a unique identifier called as a profile, multiple such profiles can be created based on the event device capability using the function `rte_event_port_profile_links_set` which takes arguments similar

[PATCH v3 2/3] event/cnxk: implement event link profiles

2023-09-21 Thread pbhagavatula
From: Pavan Nikhilesh Implement event link profiles support on CN10K and CN9K. Both the platforms support up to 2 link profiles. Signed-off-by: Pavan Nikhilesh --- doc/guides/eventdevs/cnxk.rst | 1 + doc/guides/eventdevs/features/cnxk.ini | 3 +- doc/guides/rel_notes/release_23_11.

[PATCH v3 3/3] test/event: add event link profile test

2023-09-21 Thread pbhagavatula
From: Pavan Nikhilesh Add test case to verify event link profiles. Signed-off-by: Pavan Nikhilesh --- app/test/test_eventdev.c | 117 +++ 1 file changed, 117 insertions(+) diff --git a/app/test/test_eventdev.c b/app/test/test_eventdev.c index c51c93bdbd..0e

[PATCH v4 0/3] Introduce event link profiles

2023-09-28 Thread pbhagavatula
From: Pavan Nikhilesh A collection of event queues linked to an event port can be associated with unique identifier called as a link profile, multiple such profiles can be configured based on the event device capability using the function `rte_event_port_profile_links_set` which takes arguments s

[PATCH v4 1/3] eventdev: introduce link profiles

2023-09-28 Thread pbhagavatula
From: Pavan Nikhilesh A collection of event queues linked to an event port can be associated with a unique identifier called as a link profile, multiple such profiles can be created based on the event device capability using the function `rte_event_port_profile_links_set` which takes arguments si

[PATCH v4 2/3] event/cnxk: implement event link profiles

2023-09-28 Thread pbhagavatula
From: Pavan Nikhilesh Implement event link profiles support on CN10K and CN9K. Both the platforms support up to 2 link profiles. Signed-off-by: Pavan Nikhilesh --- doc/guides/eventdevs/cnxk.rst | 1 + doc/guides/eventdevs/features/cnxk.ini | 3 +- doc/guides/rel_notes/release_23_11.

[PATCH v4 3/3] test/event: add event link profile test

2023-09-28 Thread pbhagavatula
From: Pavan Nikhilesh Add test case to verify event link profiles. Signed-off-by: Pavan Nikhilesh --- app/test/test_eventdev.c | 117 +++ 1 file changed, 117 insertions(+) diff --git a/app/test/test_eventdev.c b/app/test/test_eventdev.c index c51c93bdbd..0e

[PATCH] net/cnxk: fix TAG read data offset

2023-09-28 Thread pbhagavatula
From: Pavan Nikhilesh The workslot structure elements were shuffled around to maintain uniformity between CN9K and CN10K which moved the TAG data offset from first dword to third dword. Fixes: 182767f70ef2 ("event/cnxk: add event port flow context APIs") Signed-off-by: Pavan Nikhilesh --- Plea

[dpdk-dev] [PATCH v2] config/arm: add support for Marvell CN10K

2021-04-19 Thread pbhagavatula
From: Pavan Nikhilesh Add config support to cross compile for Marvell CN10K SoC. Marvell CN10K SoC is based on ARM Neoverse N2 cores. Signed-off-by: Nithin Dabilpuram Signed-off-by: Pavan Nikhilesh Acked-by: Jerin Jacob --- v2 Changes: - Rebase with ToT. config/arm/arm64_cn10k_linux_gcc |

[dpdk-dev] [PATCH v2 00/33] Marvell CNXK Event device Driver

2021-04-26 Thread pbhagavatula
From: Pavan Nikhilesh This patchset adds support for Marvell CN106XX SoC based on 'common/cnxk' driver. In future, CN9K a.k.a octeontx2 will also be supported by same driver when code is ready and 'event/octeontx2' will be deprecated. v2 Changes: - Split Rx/Tx adapter into seperate patch set to

[dpdk-dev] [PATCH v2 01/33] event/cnxk: add build infra and device setup

2021-04-26 Thread pbhagavatula
From: Pavan Nikhilesh Add meson build infra structure along with the event device SSO initialization and teardown functions. Signed-off-by: Shijith Thotton Signed-off-by: Pavan Nikhilesh --- MAINTAINERS| 6 +++ doc/guides/eventdevs/cnxk.rst | 55 +

[dpdk-dev] [PATCH v2 02/33] event/cnxk: add device capabilities function

2021-04-26 Thread pbhagavatula
From: Shijith Thotton Add the info_get function to return details on the queues, flow, prioritization capabilities, etc. which this device has. Signed-off-by: Shijith Thotton Signed-off-by: Pavan Nikhilesh --- drivers/event/cnxk/cnxk_eventdev.c | 24 drivers/event/cnx

[dpdk-dev] [PATCH v2 05/33] event/cnxk: add platform specific device config

2021-04-26 Thread pbhagavatula
From: Shijith Thotton Add platform specific event device configuration that attaches the requested number of SSO HWS(event ports) and HWGRP(event queues) LFs to the RVU PF/VF. Signed-off-by: Shijith Thotton Signed-off-by: Pavan Nikhilesh --- drivers/event/cnxk/cn10k_eventdev.c | 35 ++

[dpdk-dev] [PATCH v2 03/33] event/cnxk: add platform specific device probe

2021-04-26 Thread pbhagavatula
From: Pavan Nikhilesh Add platform specific event device probe and remove, also add event device info get function. Signed-off-by: Pavan Nikhilesh Signed-off-by: Shijith Thotton --- drivers/event/cnxk/cn10k_eventdev.c | 101 +++ drivers/event/cnxk/cn9k_eventdev.c | 10

[dpdk-dev] [PATCH v2 04/33] event/cnxk: add common configuration validation

2021-04-26 Thread pbhagavatula
From: Pavan Nikhilesh Add configuration validation, port and queue configuration functions. Signed-off-by: Pavan Nikhilesh Signed-off-by: Shijith Thotton --- drivers/event/cnxk/cnxk_eventdev.c | 70 ++ drivers/event/cnxk/cnxk_eventdev.h | 6 +++ 2 files changed, 7

[dpdk-dev] [PATCH v2 06/33] event/cnxk: add event queue config functions

2021-04-26 Thread pbhagavatula
From: Shijith Thotton Add setup and release functions for event queues i.e. SSO HWGRPs. Signed-off-by: Shijith Thotton Signed-off-by: Pavan Nikhilesh --- drivers/event/cnxk/cn10k_eventdev.c | 2 ++ drivers/event/cnxk/cn9k_eventdev.c | 2 ++ drivers/event/cnxk/cnxk_eventdev.c | 19

[dpdk-dev] [PATCH v2 07/33] event/cnxk: allocate event inflight buffers

2021-04-26 Thread pbhagavatula
From: Pavan Nikhilesh Allocate buffers in DRAM that hold inflight events. Signed-off-by: Shijith Thotton Signed-off-by: Pavan Nikhilesh --- drivers/event/cnxk/cn10k_eventdev.c | 7 ++ drivers/event/cnxk/cn9k_eventdev.c | 7 ++ drivers/event/cnxk/cnxk_eventdev.c | 105 +++

[dpdk-dev] [PATCH v2 09/33] event/cnxk: add devargs to control SSO HWGRP QoS

2021-04-26 Thread pbhagavatula
From: Shijith Thotton SSO HWGRPs i.e. queue uses DRAM & SRAM buffers to hold in-flight events. By default the buffers are assigned to the SSO HWGRPs to satisfy minimum HW requirements. SSO is free to assign the remaining buffers to HWGRPs based on a preconfigured threshold. We can control the QoS

[dpdk-dev] [PATCH v2 08/33] event/cnxk: add devargs for inflight buffer count

2021-04-26 Thread pbhagavatula
From: Shijith Thotton The number of events for a *open system* event device is specified as -1 as per the eventdev specification. Since, 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: --

[dpdk-dev] [PATCH v2 10/33] event/cnxk: add port config functions

2021-04-26 Thread pbhagavatula
From: Shijith Thotton Add SSO HWS aka event port setup and release functions. Signed-off-by: Shijith Thotton Signed-off-by: Pavan Nikhilesh --- drivers/event/cnxk/cn10k_eventdev.c | 121 +++ drivers/event/cnxk/cn9k_eventdev.c | 147 drivers/ev

[dpdk-dev] [PATCH v2 12/33] event/cnxk: add devargs to configure getwork mode

2021-04-26 Thread pbhagavatula
From: Pavan Nikhilesh Add devargs to configure the platform specific getwork mode. CN9K getwork mode by default is set to use dual workslot mode. Add option to force single workslot mode. Example: --dev "0002:0e:00.0,single_ws=1" CN10K supports multiple getwork prefetch modes, by defaul

[dpdk-dev] [PATCH v2 13/33] event/cnxk: add SSO HW device operations

2021-04-26 Thread pbhagavatula
From: Pavan Nikhilesh Add SSO HW device operations used for enqueue/dequeue. Signed-off-by: Pavan Nikhilesh --- drivers/event/cnxk/cn10k_worker.c | 7 + drivers/event/cnxk/cn10k_worker.h | 151 + drivers/event/cnxk/cn9k_worker.c | 7 + drivers/event/cnxk/cn9k_worker.h

[dpdk-dev] [PATCH v2 11/33] event/cnxk: add event port link and unlink

2021-04-26 Thread pbhagavatula
From: Shijith Thotton Add platform specific event port, queue link and unlink APIs. Signed-off-by: Shijith Thotton Signed-off-by: Pavan Nikhilesh --- drivers/event/cnxk/cn10k_eventdev.c | 64 +- drivers/event/cnxk/cn9k_eventdev.c | 101 drivers/e

[dpdk-dev] [PATCH v2 14/33] event/cnxk: add SSO GWS fastpath enqueue functions

2021-04-26 Thread pbhagavatula
From: Pavan Nikhilesh Add SSO GWS fastpath event device enqueue functions. Signed-off-by: Pavan Nikhilesh --- drivers/event/cnxk/cn10k_eventdev.c | 16 +++- drivers/event/cnxk/cn10k_worker.c | 54 ++ drivers/event/cnxk/cn10k_worker.h | 12 +++ drivers/event/cnxk/cn9k_eventde

[dpdk-dev] [PATCH v2 15/33] event/cnxk: add SSO GWS dequeue fastpath functions

2021-04-26 Thread pbhagavatula
From: Pavan Nikhilesh Add SSO GWS event dequeue fastpath functions. Signed-off-by: Pavan Nikhilesh --- drivers/event/cnxk/cn10k_eventdev.c | 10 ++- drivers/event/cnxk/cn10k_worker.c | 54 + drivers/event/cnxk/cn10k_worker.h | 12 +++ drivers/event/cnxk/cn9k_eventdev.c | 1

[dpdk-dev] [PATCH v2 16/33] event/cnxk: add device start function

2021-04-26 Thread pbhagavatula
From: Shijith Thotton Add eventdev start function along with few cleanup API's to maintain sanity. Signed-off-by: Pavan Nikhilesh Signed-off-by: Shijith Thotton --- drivers/event/cnxk/cn10k_eventdev.c | 127 drivers/event/cnxk/cn9k_eventdev.c | 113 ++

[dpdk-dev] [PATCH v2 17/33] event/cnxk: add device stop and close functions

2021-04-26 Thread pbhagavatula
From: Shijith Thotton Add event device stop and close callback functions. Signed-off-by: Pavan Nikhilesh Signed-off-by: Shijith Thotton --- drivers/event/cnxk/cn10k_eventdev.c | 15 + drivers/event/cnxk/cn9k_eventdev.c | 14 + drivers/event/cnxk/cnxk_eventdev.c | 48

[dpdk-dev] [PATCH v2 18/33] event/cnxk: add SSO selftest and dump

2021-04-26 Thread pbhagavatula
From: Pavan Nikhilesh Add selftest to verify sanity of SSO and also add function to dump internal state of SSO. Signed-off-by: Pavan Nikhilesh --- app/test/test_eventdev.c| 14 + drivers/event/cnxk/cn10k_eventdev.c |8 + drivers/event/cnxk/cn9k_eventdev.c

[dpdk-dev] [PATCH v2 19/33] event/cnxk: add event port and queue xstats

2021-04-26 Thread pbhagavatula
From: Pavan Nikhilesh Add support for retrieving statistics from SSO HWS and HWGRP. Signed-off-by: Pavan Nikhilesh --- drivers/common/cnxk/roc_sso.c| 63 + drivers/common/cnxk/roc_sso.h| 19 ++ drivers/event/cnxk/cnxk_eventdev.h | 15 ++ drivers/event/cnxk/

[dpdk-dev] [PATCH v2 20/33] event/cnxk: support event timer

2021-04-26 Thread pbhagavatula
From: Shijith Thotton Add event timer adapter aka TIM initialization on SSO probe. Signed-off-by: Pavan Nikhilesh Signed-off-by: Shijith Thotton --- doc/guides/eventdevs/cnxk.rst | 6 drivers/event/cnxk/cnxk_eventdev.c | 3 ++ drivers/event/cnxk/cnxk_eventdev.h | 2 ++ drivers

[dpdk-dev] [PATCH v2 21/33] event/cnxk: add timer adapter capabilities

2021-04-26 Thread pbhagavatula
From: Shijith Thotton Add function to retrieve event timer adapter capabilities. Signed-off-by: Pavan Nikhilesh Signed-off-by: Shijith Thotton --- drivers/event/cnxk/cn10k_eventdev.c | 2 ++ drivers/event/cnxk/cn9k_eventdev.c | 2 ++ drivers/event/cnxk/cnxk_tim_evdev.c | 22 +++

[dpdk-dev] [PATCH v2 22/33] event/cnxk: create and free timer adapter

2021-04-26 Thread pbhagavatula
From: Shijith Thotton 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

[dpdk-dev] [PATCH v2 23/33] event/cnxk: add devargs to disable NPA

2021-04-26 Thread pbhagavatula
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: Shijith Thotton Signe

[dpdk-dev] [PATCH v2 24/33] event/cnxk: allow adapters to resize inflights

2021-04-26 Thread pbhagavatula
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 Signed-off-by: Shijith Thotton --- drivers/event/cnxk/cnxk_eventdev.c | 33 drivers/event/cnxk/cnxk_

[dpdk-dev] [PATCH v2 25/33] event/cnxk: add timer adapter info function

2021-04-26 Thread pbhagavatula
From: Shijith Thotton Add TIM event timer adapter info get function. Signed-off-by: Shijith Thotton Signed-off-by: Pavan Nikhilesh --- drivers/event/cnxk/cnxk_tim_evdev.c | 13 + 1 file changed, 13 insertions(+) diff --git a/drivers/event/cnxk/cnxk_tim_evdev.c b/drivers/event/cn

[dpdk-dev] [PATCH v2 26/33] event/cnxk: add devargs for chunk size and rings

2021-04-26 Thread pbhagavatula
From: Shijith Thotton Add devargs to control default chunk size and max numbers of timer rings to attach to a given RVU PF. Example: --dev "0002:1e:00.0,tim_chnk_slots=1024" --dev "0002:1e:00.0,tim_rings_lmt=4" Signed-off-by: Pavan Nikhilesh Signed-off-by: Shijith Thotton ---

[dpdk-dev] [PATCH v2 27/33] event/cnxk: add TIM bucket operations

2021-04-26 Thread pbhagavatula
From: Pavan Nikhilesh Add TIM bucket operations used for event timer arm and cancel. Signed-off-by: Pavan Nikhilesh Signed-off-by: Shijith Thotton --- drivers/event/cnxk/cnxk_tim_evdev.h | 30 +++ drivers/event/cnxk/cnxk_tim_worker.c | 6 ++ drivers/event/cnxk/cnxk_tim_worker.h | 123

[dpdk-dev] [PATCH v2 29/33] event/cnxk: add timer arm timeout burst

2021-04-26 Thread pbhagavatula
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 Signed-off-by: Shijith Thotton --- drivers/event/cnxk/cnxk_tim_evdev.c | 7 ++ drivers/event/cnxk/cnxk_tim_evdev.h | 12 +++ driver

[dpdk-dev] [PATCH v2 30/33] event/cnxk: add timer cancel function

2021-04-26 Thread pbhagavatula
From: Pavan Nikhilesh Add function to cancel event timer that has been armed. Signed-off-by: Pavan Nikhilesh Signed-off-by: Shijith Thotton --- drivers/event/cnxk/cnxk_tim_evdev.c | 1 + drivers/event/cnxk/cnxk_tim_evdev.h | 5 drivers/event/cnxk/cnxk_tim_worker.c | 30 ++

[dpdk-dev] [PATCH v2 28/33] event/cnxk: add timer arm routine

2021-04-26 Thread pbhagavatula
From: Pavan Nikhilesh Add event timer arm routine. Signed-off-by: Pavan Nikhilesh Signed-off-by: Shijith Thotton --- drivers/event/cnxk/cnxk_tim_evdev.c | 18 ++ drivers/event/cnxk/cnxk_tim_evdev.h | 23 ++ drivers/event/cnxk/cnxk_tim_worker.c | 95 + drivers/event/cnxk/cnxk_tim_

[dpdk-dev] [PATCH v2 31/33] event/cnxk: add timer stats get and reset

2021-04-26 Thread pbhagavatula
From: Shijith Thotton Add event timer adapter statistics get and reset functions. Stats are disabled by default and can be enabled through devargs. Example: --dev "0002:1e:00.0,tim_stats_ena=1" Signed-off-by: Pavan Nikhilesh Signed-off-by: Shijith Thotton --- doc/guides/eventdevs/cnx

[dpdk-dev] [PATCH v2 32/33] event/cnxk: add timer adapter start and stop

2021-04-26 Thread pbhagavatula
From: Shijith Thotton Add event timer adapter start and stop functions. Signed-off-by: Pavan Nikhilesh Signed-off-by: Shijith Thotton --- drivers/event/cnxk/cnxk_tim_evdev.c | 71 - 1 file changed, 70 insertions(+), 1 deletion(-) diff --git a/drivers/event/cnxk/cn

[dpdk-dev] [PATCH v2 33/33] event/cnxk: add devargs to control timer adapters

2021-04-26 Thread pbhagavatula
From: Shijith Thotton 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:1e:00.0,tim_ring_ctl=[2-1023-1-0]" Signed-o

[dpdk-dev] [PATCH v3 00/33] Marvell CNXK Event device Driver

2021-04-30 Thread pbhagavatula
From: Pavan Nikhilesh This patchset adds support for Marvell CN106XX SoC based on 'common/cnxk' driver. In future, CN9K a.k.a octeontx2 will also be supported by same driver when code is ready and 'event/octeontx2' will be deprecated. v3 Changes: - Fix documentation, copyright. - Update release

[dpdk-dev] [PATCH v3 01/33] event/cnxk: add build infra and device setup

2021-04-30 Thread pbhagavatula
From: Pavan Nikhilesh Add meson build infra structure along with the event device SSO initialization and teardown functions. Signed-off-by: Shijith Thotton Signed-off-by: Pavan Nikhilesh Acked-by: Ray Kinsella --- MAINTAINERS| 6 +++ doc/guides/eventdevs/cnxk.rst

[dpdk-dev] [PATCH v3 02/33] event/cnxk: add device capabilities function

2021-04-30 Thread pbhagavatula
From: Shijith Thotton Add the info_get function to return details on the queues, flow, prioritization capabilities, etc. which this device has. Signed-off-by: Shijith Thotton Signed-off-by: Pavan Nikhilesh --- drivers/event/cnxk/cnxk_eventdev.c | 24 drivers/event/cnx

[dpdk-dev] [PATCH v3 03/33] event/cnxk: add platform specific device probe

2021-04-30 Thread pbhagavatula
From: Pavan Nikhilesh Add platform specific event device probe and remove, also add event device info get function. Signed-off-by: Pavan Nikhilesh Signed-off-by: Shijith Thotton --- drivers/event/cnxk/cn10k_eventdev.c | 101 +++ drivers/event/cnxk/cn9k_eventdev.c | 10

[dpdk-dev] [PATCH v3 07/33] event/cnxk: allocate event inflight buffers

2021-04-30 Thread pbhagavatula
From: Pavan Nikhilesh Allocate buffers in DRAM that hold inflight events. Signed-off-by: Shijith Thotton Signed-off-by: Pavan Nikhilesh --- drivers/event/cnxk/cn10k_eventdev.c | 7 ++ drivers/event/cnxk/cn9k_eventdev.c | 7 ++ drivers/event/cnxk/cnxk_eventdev.c | 105 +++

[dpdk-dev] [PATCH v3 05/33] event/cnxk: add platform specific device config

2021-04-30 Thread pbhagavatula
From: Shijith Thotton Add platform specific event device configuration that attaches the requested number of SSO HWS(event ports) and HWGRP(event queues) LFs to the RVU PF/VF. Signed-off-by: Shijith Thotton Signed-off-by: Pavan Nikhilesh --- drivers/event/cnxk/cn10k_eventdev.c | 35 ++

[dpdk-dev] [PATCH v3 04/33] event/cnxk: add common configuration validation

2021-04-30 Thread pbhagavatula
From: Pavan Nikhilesh Add configuration validation, port and queue configuration functions. Signed-off-by: Pavan Nikhilesh Signed-off-by: Shijith Thotton --- drivers/event/cnxk/cnxk_eventdev.c | 70 ++ drivers/event/cnxk/cnxk_eventdev.h | 6 +++ 2 files changed, 7

[dpdk-dev] [PATCH v3 06/33] event/cnxk: add event queue config functions

2021-04-30 Thread pbhagavatula
From: Shijith Thotton Add setup and release functions for event queues i.e. SSO HWGRPs. Signed-off-by: Shijith Thotton Signed-off-by: Pavan Nikhilesh --- drivers/event/cnxk/cn10k_eventdev.c | 2 ++ drivers/event/cnxk/cn9k_eventdev.c | 2 ++ drivers/event/cnxk/cnxk_eventdev.c | 19

[dpdk-dev] [PATCH v3 08/33] event/cnxk: add devargs for inflight buffer count

2021-04-30 Thread pbhagavatula
From: Shijith Thotton The number of events for a *open system* event device is specified as -1 as per the eventdev specification. Since, 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: --

[dpdk-dev] [PATCH v3 09/33] event/cnxk: add devargs to control SSO HWGRP QoS

2021-04-30 Thread pbhagavatula
From: Shijith Thotton SSO HWGRPs i.e. queue uses DRAM & SRAM buffers to hold in-flight events. By default the buffers are assigned to the SSO HWGRPs to satisfy minimum HW requirements. SSO is free to assign the remaining buffers to HWGRPs based on a preconfigured threshold. We can control the QoS

[dpdk-dev] [PATCH v3 10/33] event/cnxk: add port config functions

2021-04-30 Thread pbhagavatula
From: Shijith Thotton Add SSO HWS a.k.a event port setup and release functions. Signed-off-by: Shijith Thotton Signed-off-by: Pavan Nikhilesh --- drivers/event/cnxk/cn10k_eventdev.c | 121 +++ drivers/event/cnxk/cn9k_eventdev.c | 147 drivers/

[dpdk-dev] [PATCH v3 11/33] event/cnxk: add event port link and unlink

2021-04-30 Thread pbhagavatula
From: Shijith Thotton Add platform specific event port, queue link and unlink APIs. Signed-off-by: Shijith Thotton Signed-off-by: Pavan Nikhilesh --- drivers/event/cnxk/cn10k_eventdev.c | 64 +- drivers/event/cnxk/cn9k_eventdev.c | 101 drivers/e

[dpdk-dev] [PATCH v3 12/33] event/cnxk: add devargs to configure getwork mode

2021-04-30 Thread pbhagavatula
From: Pavan Nikhilesh Add devargs to configure the platform specific getwork mode. CN9K getwork mode by default is set to use dual workslot mode. Add option to force single workslot mode. Example: --dev "0002:0e:00.0,single_ws=1" CN10K supports multiple getwork prefetch modes, by defaul

[dpdk-dev] [PATCH v3 13/33] event/cnxk: add SSO HW device operations

2021-04-30 Thread pbhagavatula
From: Pavan Nikhilesh Add SSO HW device operations used for enqueue/dequeue. Signed-off-by: Pavan Nikhilesh --- drivers/event/cnxk/cn10k_worker.c | 7 + drivers/event/cnxk/cn10k_worker.h | 151 + drivers/event/cnxk/cn9k_worker.c | 7 + drivers/event/cnxk/cn9k_worker.h

  1   2   3   4   5   6   7   8   9   10   >