Rao Kottidi ; Harman Kalra
> ; Ashwin Sekhar T K
> Cc: Nawal Kishor
> Subject: RE: [PATCH v2] common/cnxk: fix atomic load in batch ops
>
>
>
> > -Original Message-
> > From: Nawal Kishor
> > Sent: Monday, December 2, 2024 10:28 PM
> &
From: Kommula Shiva Shankar
Pool buffer size in opaque mode must always be set to 0.
Fixes: f765f5611240 ("common/cnxk: add NPA pool HW operations")
Signed-off-by: Kommula Shiva Shankar
Signed-off-by: Ashwin Sekhar T K
---
drivers/common/cnxk/roc_npa.c | 6 +-
1 file
As done in FLR, similar to CQ disable, in process of
aura disable we need to explicitly clear BP_ENA in order to
deassert backpressure if it was earlier asserted.
Fixes: f765f5611240 ("common/cnxk: add NPA pool HW operations")
Signed-off-by: Nithin Dabilpuram
Signed-off-by: Ashwin
As done in FLR, similar to CQ disable, in process of
aura disable we need to explicitly clear BP_ENA in order to
deassert backpressure if it was earlier asserted.
Fixes: f765f5611240 ("common/cnxk: add NPA pool HW operations")
Signed-off-by: Nithin Dabilpuram
Signed-off-by: Ashwin
As done in FLR, similar to CQ disable, in process of
aura disable we needs explicitly clear BP_ENA in order to
deassert backpressure if it was earlier asserted.
Signed-off-by: Nithin Dabilpuram
Signed-off-by: Ashwin Sekhar T K
---
drivers/common/cnxk/roc_npa.c | 2 ++
1 file changed, 2
From: Sibaranjan Pattnayak
Support for CNF10KA SoC by adding its PCI device ID.
Signed-off-by: Sibaranjan Pattnayak
Signed-off-by: Ashwin Sekhar T K
---
drivers/mempool/cnxk/cnxk_mempool.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/mempool/cnxk/cnxk_mempool.c
b/drivers
For non-EAL pthreads, rte_lcore_id() will not be valid.
So, batch allocation cannot be used as we won't have a
dedicated alloc buffer for the thread. So, fallback to
bulk alloc in such cases.
Fixes: 91531e63f43b ("mempool/cnxk: add cn10k batch dequeue")
Signed-off-by: As
n Kalra
Signed-off-by: Ashwin Sekhar T K
---
drivers/mempool/cnxk/cn10k_mempool_ops.c | 6 ++
1 file changed, 6 insertions(+)
diff --git a/drivers/mempool/cnxk/cn10k_mempool_ops.c
b/drivers/mempool/cnxk/cn10k_mempool_ops.c
index 41b755b52b..2e46204c8d 100644
--- a/drivers/mempool/cnxk/cn10
led, the additional caching due
to asynchronous allocation will be limited.
A limitation has been added to cnxk documentation warning the users
to adjust the local cache sizes accordingly.
Signed-off-by: Ashwin Sekhar T K
---
doc/guides/nics/cnxk.rst | 18
drivers/mempool/c
led, the additional caching due
to asynchronous allocation will be limited.
A limitation has been added to cnxk documentation warning the users
to adjust the local cache sizes accordingly.
Signed-off-by: Ashwin Sekhar T K
---
doc/guides/nics/cnxk.rst | 18
drivers/mempool/c
For non-EAL pthreads, rte_lcore_id() will not be valid.
So, batch allocation cannot be used as we won't have a
dedicated alloc buffer for the thread. So, fallback to
bulk alloc in such cases.
Fixes: 91531e63f43b ("mempool/cnxk: add cn10k batch dequeue")
Signed-off-by: As
led, the additional caching due
to asynchronous allocation will be limited.
A limitation has been added to cnxk documentation warning the users
to adjust the local cache sizes accordingly.
Signed-off-by: Ashwin Sekhar T K
---
doc/guides/nics/cnxk.rst | 18
drivers/mempool/c
Acked-by: Ashwin Sekhar T K
Ashwin Sekhar T K
> -Original Message-
> From: Rakesh Kudurumalla
> Sent: Wednesday, April 26, 2023 2:58 PM
> To: Olivier Matz
> Cc: dev@dpdk.org; Jerin Jacob Kollanukkaran ; Nithin
> Kumar Dabilpuram ; Rakesh Kudurumalla
>
> S
Acked-by: Ashwin Sekhar T K
> -Original Message-
> From: Thierry Herbelot
> Sent: Tuesday, June 20, 2023 3:14 PM
> To: dev@dpdk.org
> Cc: Thierry Herbelot ; Thomas Monjalon
> ; Nithin Kumar Dabilpuram
> ; Satha Koteswara Rao Kottidi
> ; Jerin Jacob Kollanuk
Hi Thierry,
Could you please add the same fix in npa_aura_pool_fini() as well.
Thanks
Ashwin Sekhar T K
> -Original Message-
> From: Thierry Herbelot
> Sent: Tuesday, June 20, 2023 2:22 PM
> To: dev@dpdk.org
> Cc: Thierry Herbelot ; Thomas Monjalon
> ; Nithi
Add new APIs for counting and extracting allocated objects
from a single cache line in the batch alloc memory.
Signed-off-by: Ashwin Sekhar T K
---
drivers/common/cnxk/roc_npa.h | 78 ++-
1 file changed, 67 insertions(+), 11 deletions(-)
diff --git a/drivers
Add new APIs for counting and extracting allocated objects
from a single cache line in the batch alloc memory.
Signed-off-by: Ashwin Sekhar T K
---
drivers/common/cnxk/roc_npa.h | 78 ++-
1 file changed, 67 insertions(+), 11 deletions(-)
diff --git a/drivers
Avoid waiting indefinitely when counting batch allocated
pointers by adding a wait timeout.
Fixes: 50d08d3934ec ("common/cnxk: fix batch alloc completion poll logic")
Signed-off-by: Ashwin Sekhar T K
---
drivers/common/cnxk/roc_npa.h| 15 +--
drivers/me
Add new APIs for counting and extracting allocated objects
from a single cache line in the batch alloc memory.
Signed-off-by: Ashwin Sekhar T K
---
drivers/common/cnxk/roc_npa.h | 78 ++-
1 file changed, 67 insertions(+), 11 deletions(-)
diff --git a/drivers
Avoid waiting indefinitely when counting batch alloc
pointers by adding a wait timeout.
Signed-off-by: Ashwin Sekhar T K
---
drivers/common/cnxk/roc_npa.h| 15 +--
drivers/mempool/cnxk/cn10k_mempool_ops.c | 3 ++-
2 files changed, 11 insertions(+), 7 deletions(-)
diff
Add new APIs for counting and extracting allocated objects
from a single cache line in the batch alloc memory.
Signed-off-by: Ashwin Sekhar T K
---
drivers/common/cnxk/roc_npa.h | 78 ++-
1 file changed, 67 insertions(+), 11 deletions(-)
diff --git a/drivers
Add ROC APIs which allows to create NPA auras independently and
attach it to an existing NPA pool. Also add API to destroy
NPA auras independently.
Signed-off-by: Ashwin Sekhar T K
---
drivers/common/cnxk/roc_npa.c | 219
drivers/common/cnxk/roc_npa.h | 4
set API.
Signed-off-by: Ashwin Sekhar T K
---
drivers/common/cnxk/roc_nix_queue.c | 2 +-
drivers/common/cnxk/roc_npa.c | 35 -
drivers/common/cnxk/roc_npa.h | 6 +
drivers/common/cnxk/roc_sso.c | 2 +-
drivers/common/cnxk
set API.
Signed-off-by: Ashwin Sekhar T K
---
drivers/common/cnxk/roc_nix_queue.c | 2 +-
drivers/common/cnxk/roc_npa.c | 35 -
drivers/common/cnxk/roc_npa.h | 6 +
drivers/common/cnxk/roc_sso.c | 2 +-
drivers/common/cnxk
using this pool.
Signed-off-by: Ashwin Sekhar T K
---
drivers/mempool/cnxk/cn10k_hwpool_ops.c | 211
drivers/mempool/cnxk/cnxk_mempool.h | 4 +
drivers/mempool/cnxk/meson.build| 1 +
3 files changed, 216 insertions(+)
create mode 100644 drivers/mempool
.
* rte_pmd_cnxk_mempool_mbuf_exchange() - Exchanges mbufs between any two
rte_mempool where the range check is disabled.
Signed-off-by: Ashwin Sekhar T K
---
doc/api/doxy-api-index.md | 1 +
doc/api/doxy-api.conf.in| 1 +
drivers/mempool/cnxk/cn10k_hwpool_ops.c | 63
set API.
Signed-off-by: Ashwin Sekhar T K
---
drivers/common/cnxk/roc_nix_queue.c | 2 +-
drivers/common/cnxk/roc_npa.c | 35 -
drivers/common/cnxk/roc_npa.h | 6 +
drivers/common/cnxk/roc_sso.c | 2 +-
drivers/common/cnxk
Use lower bits of pool_config to pass flags specific to
cnxk mempool PMD ops.
Signed-off-by: Ashwin Sekhar T K
---
drivers/mempool/cnxk/cnxk_mempool.h | 24
drivers/mempool/cnxk/cnxk_mempool_ops.c | 17 ++---
drivers/net/cnxk/cnxk_ethdev_sec.c | 25
set API.
Signed-off-by: Ashwin Sekhar T K
---
drivers/common/cnxk/roc_nix_queue.c | 2 +-
drivers/common/cnxk/roc_npa.c | 35 -
drivers/common/cnxk/roc_npa.h | 6 +
drivers/common/cnxk/roc_sso.c | 2 +-
drivers/common/cnxk
Use lower bits of pool_config to pass flags specific to
cnxk mempool PMD ops.
Signed-off-by: Ashwin Sekhar T K
---
drivers/mempool/cnxk/cnxk_mempool.h | 24
drivers/mempool/cnxk/cnxk_mempool_ops.c | 17 ++---
drivers/net/cnxk/cnxk_ethdev_sec.c | 25
.
* rte_pmd_cnxk_mempool_mbuf_exchange() - Exchanges mbufs between any two
rte_mempool where the range check is disabled.
Signed-off-by: Ashwin Sekhar T K
---
doc/api/doxy-api-index.md | 1 +
doc/api/doxy-api.conf.in| 1 +
drivers/mempool/cnxk/cn10k_hwpool_ops.c | 63
using this pool.
Signed-off-by: Ashwin Sekhar T K
---
drivers/mempool/cnxk/cn10k_hwpool_ops.c | 211
drivers/mempool/cnxk/cnxk_mempool.h | 4 +
drivers/mempool/cnxk/meson.build| 1 +
3 files changed, 216 insertions(+)
create mode 100644 drivers/mempool
Add ROC APIs which allows to create NPA auras independently and
attach it to an existing NPA pool. Also add API to destroy
NPA auras independently.
Signed-off-by: Ashwin Sekhar T K
---
drivers/common/cnxk/roc_npa.c | 219
drivers/common/cnxk/roc_npa.h | 4
Use lower bits of pool_config to pass flags specific to
cnxk mempool PMD ops.
Signed-off-by: Ashwin Sekhar T K
---
drivers/mempool/cnxk/cnxk_mempool.h | 24
drivers/mempool/cnxk/cnxk_mempool_ops.c | 17 ++---
drivers/net/cnxk/cnxk_ethdev_sec.c | 25
Add ROC APIs which allows to create NPA auras independently and
attach it to an existing NPA pool. Also add API to destroy
NPA auras independently.
Signed-off-by: Ashwin Sekhar T K
---
drivers/common/cnxk/roc_npa.c | 219
drivers/common/cnxk/roc_npa.h | 4
Fix typo in graph lib doc.
Fixes: 4dc6d8e63c168 ("doc: add graph library guide")
Signed-off-by: Ashwin Sekhar T K
---
doc/guides/prog_guide/graph_lib.rst | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/doc/guides/prog_guide/graph_lib.rst
b/doc/guides/
.
* rte_pmd_cnxk_mempool_mbuf_exchange() - Exchanges mbufs between any two
rte_mempool where the range check is disabled.
Signed-off-by: Ashwin Sekhar T K
---
drivers/mempool/cnxk/cn10k_hwpool_ops.c | 63 -
drivers/mempool/cnxk/cnxk_mempool.h | 4 ++
drivers/mempool/cnxk/meson.build
using this pool.
Signed-off-by: Ashwin Sekhar T K
---
drivers/mempool/cnxk/cn10k_hwpool_ops.c | 211
drivers/mempool/cnxk/cnxk_mempool.h | 4 +
drivers/mempool/cnxk/meson.build| 1 +
3 files changed, 216 insertions(+)
create mode 100644 drivers/mempool
set API.
Signed-off-by: Ashwin Sekhar T K
---
drivers/common/cnxk/roc_nix_queue.c | 2 +-
drivers/common/cnxk/roc_npa.c | 35 -
drivers/common/cnxk/roc_npa.h | 6 +
drivers/common/cnxk/roc_sso.c | 2 +-
drivers/common/cnxk
Add ROC APIs which allows to create NPA auras independently and
attach it to an existing NPA pool. Also add API to destroy
NPA auras independently.
Signed-off-by: Ashwin Sekhar T K
---
drivers/common/cnxk/roc_npa.c | 219
drivers/common/cnxk/roc_npa.h | 4
Use lower bits of pool_config to pass flags specific to
cnxk mempool PMD ops.
Signed-off-by: Ashwin Sekhar T K
---
drivers/mempool/cnxk/cnxk_mempool.h | 24
drivers/mempool/cnxk/cnxk_mempool_ops.c | 17 ++---
drivers/net/cnxk/cnxk_ethdev_sec.c | 25
pools must be disabled while exchanging mbufs.
Ashwin Sekhar T K (5):
mempool/cnxk: use pool config to pass flags
common/cnxk: add NPA aura create/destroy ROC APIs
mempool/cnxk: add NPA aura range get/set APIs
mempool/cnxk: add hwpool ops
mempool/cnxk: add support for exchanging mbufs
Avoid waiting indefinitely when counting batch alloc pointers by adding a
wait timeout.
Signed-off-by: Ashwin Sekhar T K
---
drivers/common/cnxk/roc_npa.h| 15 +--
drivers/mempool/cnxk/cn10k_mempool_ops.c | 3 ++-
2 files changed, 11 insertions(+), 7 deletions(-)
diff
Update the models where errata IPBUNPA-37480 is applicable.
Signed-off-by: Ashwin Sekhar T K
---
drivers/common/cnxk/roc_errata.h | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/common/cnxk/roc_errata.h b/drivers/common/cnxk/roc_errata.h
index 2d15e639b7
Ensure that all cnxk mempool aura bitmap accesses are synchronized.
Signed-off-by: Ashwin Sekhar T K
---
drivers/common/cnxk/roc_idev.c | 1 +
drivers/common/cnxk/roc_idev_priv.h | 1 +
drivers/common/cnxk/roc_npa.c | 29 -
drivers/common/cnxk/roc_npa.h
When SG2 descriptors are used and more than 5 segments
are present, in certain combination of segments the
number of descriptors required will be greater than
16.
In debug builds, add an assert to capture this scenario.
Signed-off-by: Ashwin Sekhar T K
---
drivers/net/cnxk/cn10k_tx.h | 20
Add support for creating packets with segments from different
pools. This is enabled by using the SG2 descriptors. SG2
descriptors are only used when the segment is to be freed
by the HW.
Signed-off-by: Ashwin Sekhar T K
---
drivers/net/cnxk/cn10k_tx.h | 161
Add a separate routine to handle no-fast-free offload
in vector Tx path for multisegmented packets.
Signed-off-by: Ashwin Sekhar T K
---
drivers/net/cnxk/cn10k_tx.h | 124 +---
1 file changed, 59 insertions(+), 65 deletions(-)
diff --git a/drivers/net/cnxk
In scenarios where rte_mempool_free() is called immediately
after rte_mempool_create_empty(), the NPA pool will not be
created. In such cases the free path should not call
roc_npa_pool_destroy().
Fixes: bbf19e89b87c ("mempool/cnxk: add generic operations")
Signed-off-by: Ashwin
In scenarios where rte_mempool_free() is called immediately
after rte_mempool_create_empty(), the NPA pool will not be
created. In such cases the free path should not call
roc_npa_pool_destroy().
Signed-off-by: Ashwin Sekhar T K
---
drivers/mempool/cnxk/cnxk_mempool_ops.c | 8
1 file
In scenarios where rte_mempool_free() is called immediately
after rte_mempool_create_empty(), the NPA pool will not be
created. In such cases the free path should not call
roc_npa_pool_destroy().
Signed-off-by: Ashwin Sekhar T K
---
drivers/mempool/cnxk/cnxk_mempool_ops.c | 8
1 file
Acked-by: Ashwin Sekhar T K
Extend openssl crypto PMD to support AES CMAC operations.
Signed-off-by: Ashwin Sekhar T K
---
drivers/crypto/openssl/openssl_pmd_private.h | 14 ++
drivers/crypto/openssl/rte_openssl_pmd.c | 138 ++-
drivers/crypto/openssl/rte_openssl_pmd_ops.c | 20 +++
3 files changed
Add support for aes cmac operations.
v2:
* Added support for openssl 3.0
v3:
* Fixed checkpatch warnings.
v4:
* Fixed further checkpatch warnings.
v5:
* Fixed duplicated preprocessor checks.
Ashwin Sekhar T K (1):
crypto/openssl: support aes cmac operations
drivers/crypto/openssl
Extend openssl crypto PMD to support AES CMAC operations.
Signed-off-by: Ashwin Sekhar T K
---
drivers/crypto/openssl/openssl_pmd_private.h | 14 ++
drivers/crypto/openssl/rte_openssl_pmd.c | 142 ++-
drivers/crypto/openssl/rte_openssl_pmd_ops.c | 20 +++
3 files changed
Add support for aes cmac operations.
v2:
* Added support for openssl 3.0
v3:
* Fixed checkpatch warnings.
v4:
* Fixed more checkpatch warnings.
Ashwin Sekhar T K (1):
crypto/openssl: support aes cmac operations
drivers/crypto/openssl/openssl_pmd_private.h | 14 ++
drivers/crypto/openssl
Extend openssl crypto PMD to support AES CMAC operations.
Signed-off-by: Ashwin Sekhar T K
---
drivers/crypto/openssl/openssl_pmd_private.h | 14 ++
drivers/crypto/openssl/rte_openssl_pmd.c | 142 ++-
drivers/crypto/openssl/rte_openssl_pmd_ops.c | 20 +++
3 files changed
Add support for aes cmac operations.
v2:
* Added support for openssl 3.0
v3:
* Fixed checkpatch warnings.
Ashwin Sekhar T K (1):
crypto/openssl: support aes cmac operations
drivers/crypto/openssl/openssl_pmd_private.h | 14 ++
drivers/crypto/openssl/rte_openssl_pmd.c | 142
Extend openssl crypto PMD to support AES CMAC operations.
Signed-off-by: Ashwin Sekhar T K
---
drivers/crypto/openssl/openssl_pmd_private.h | 14 ++
drivers/crypto/openssl/rte_openssl_pmd.c | 142 ++-
drivers/crypto/openssl/rte_openssl_pmd_ops.c | 20 +++
3 files changed
Add support for aes cmac operations.
v2:
* Added support for openssl 3.0
Ashwin Sekhar T K (1):
crypto/openssl: support aes cmac operations
drivers/crypto/openssl/openssl_pmd_private.h | 14 ++
drivers/crypto/openssl/rte_openssl_pmd.c | 142 ++-
drivers/crypto/openssl
Enable support for arm64 architecture in ipsec_mb. x86
specific code is conditionally compiled only for x86
architecture builds. Other architectures will be unsupported.
Signed-off-by: Ashwin Sekhar T K
---
drivers/crypto/ipsec_mb/ipsec_mb_private.c | 7 +++
drivers/crypto/ipsec_mb
Extend openssl crypto PMD to support CMAC operations.
Signed-off-by: Ashwin Sekhar T K
---
drivers/crypto/openssl/openssl_pmd_private.h | 9 ++
drivers/crypto/openssl/rte_openssl_pmd.c | 88
drivers/crypto/openssl/rte_openssl_pmd_ops.c | 20 +
3 files changed, 117
Enable compilation for non x86 architectures by conditionally
compiling x86 specific code.
Signed-off-by: Ashwin Sekhar T K
---
drivers/crypto/ipsec_mb/ipsec_mb_private.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/crypto/ipsec_mb/ipsec_mb_private.c
b/drivers/crypto/ipsec_mb
When counting the batch allocated pointers in cnxk mempool driver,
currently it always waits for in-flight batch operations to finish.
Add a provision to make this waiting optional.
Signed-off-by: Ashwin Sekhar T K
---
drivers/common/cnxk/roc_npa.h| 7 +--
drivers/mempool/cnxk
Batch op data is initialized inside mempool alloc. But
in case of empty mempools, the alloc function is not
called and hence the initialization of batch op data is
also not done. So ensure the validity of batch op data
inside mempool free.
Signed-off-by: Ashwin Sekhar T K
---
drivers/mempool
Fix bug in batch alloc issue failure path where it was
enqueuing invalid pointers back to the pool. The code
should rightly be falling back to default dequeue path
in such cases.
Fixes: 91531e63f4 ("mempool/cnxk: add cn10k batch dequeue")
Signed-off-by: Ashwin Sekhar T K
---
drive
Fix bug in batch alloc issue failure path where it was
enqueing invalid pointers back to the pool. The code
should rightly be falling back to default dequeue path
in such cases.
Fixes: 91531e63f4 ("mempool/cnxk: add cn10k batch dequeue")
Signed-off-by: Ashwin Sekhar T K
---
drive
Fix bug in batch alloc issue failure path.
Fixes: 91531e63f4 ("mempool/cnxk: add cn10k batch dequeue")
Signed-off-by: Ashwin Sekhar T K
---
drivers/mempool/cnxk/cn10k_mempool_ops.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/mempool/cnxk/cn10k_mempoo
Use lmtst burst when more than 15 pointers is requested
to be freed.
Signed-off-by: Ashwin Sekhar T K
---
drivers/common/cnxk/roc_npa.h | 86 +++
1 file changed, 68 insertions(+), 18 deletions(-)
diff --git a/drivers/common/cnxk/roc_npa.h b/drivers/common/cnxk
Wait for XAQ pool to get filled with the freed pointers
before proceeding.
Signed-off-by: Ashwin Sekhar T K
---
drivers/common/cnxk/roc_sso.c | 9 +
1 file changed, 9 insertions(+)
diff --git a/drivers/common/cnxk/roc_sso.c b/drivers/common/cnxk/roc_sso.c
index 45ff16ca0e..c1aa3324be
Wait for SQB pool to get filled with the freed pointers
before proceeding.
Signed-off-by: Ashwin Sekhar T K
---
drivers/common/cnxk/roc_nix_queue.c | 10 ++
1 file changed, 10 insertions(+)
diff --git a/drivers/common/cnxk/roc_nix_queue.c
b/drivers/common/cnxk/roc_nix_queue.c
index
Add roc_npa_aura_op_available_wait() API which can be used to wait
until an NPA pool gets filled up to a certain count of pointers.
Signed-off-by: Ashwin Sekhar T K
---
drivers/common/cnxk/roc_npa.h | 26 ++
1 file changed, 26 insertions(+)
diff --git a/drivers/common
NPA could take some time to reflect the pointers which
has been freed into pools. So, after populating a pool
with pointers, wait until the populated pointers are
reflected in the pool.
Ashwin Sekhar T K (3):
common/cnxk: add support to wait for pool filling
common/cnxk: wait for sqb pool to
Update the CPU directive in ROC NPA assembly code snippets.
Signed-off-by: Ashwin Sekhar T K
---
drivers/common/cnxk/roc_npa.h | 30 +-
1 file changed, 13 insertions(+), 17 deletions(-)
diff --git a/drivers/common/cnxk/roc_npa.h b/drivers/common/cnxk/roc_npa.h
index
Before issuing the batch alloc, we clear the first word of
cache lines so that NPA can update the status. Make sure that
this line clear is flushed before the batch alloc is issued.
Signed-off-by: Ashwin Sekhar T K
---
drivers/common/cnxk/roc_io.h | 12
drivers/common/cnxk
stack size requested is a multiple of 128B.
Signed-off-by: Ashwin Sekhar T K
---
drivers/common/cnxk/roc_npa.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/common/cnxk/roc_npa.c b/drivers/common/cnxk/roc_npa.c
index efcb7582eb..75fc22442f 100644
--- a/drivers/common/cnxk/roc_npa.c
ol HW operations")
Signed-off-by: Ashwin Sekhar T K
Acked-by: Jerin Jacob
---
drivers/common/cnxk/roc_npa.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/common/cnxk/roc_npa.c b/drivers/common/cnxk/roc_npa.c
index d064d125c1..a0d2cc8f19 100644
--- a/drivers/c
rk Pool Allocator
NPC -> Network Parser and CAM Unit
ROC -> Rest Of Chip
RQ -> Receive Queue
RVU -> Resource Virtualization Unit
SQ -> Send Queue
SSO -> Schedule Synchronize Order Unit
TIM -> Timer Unit
Signed-off-by: Ashwin Sekhar T K
---
devtools/words-case.t
etwork Parser and CAM Unit
ROC -> Rest Of Chip
RVU -> Resource Virtualization Unit
SSO -> Schedule Synchronize Order Unit
TIM -> Timer Unit
Signed-off-by: Ashwin Sekhar T K
---
devtools/words-case.txt | 11 +++
1 file changed, 11 insertions(+)
diff --git a/devtools/words-c
etwork Parser and CAM Unit
ROC -> Rest Of Chip
RVU -> Resource Virtualization Unit
SSO -> Schedule Syncronize Order Unit
TIM -> Timer Unit
Signed-off-by: Ashwin Sekhar T K
---
devtools/words-case.txt | 8
1 file changed, 8 insertions(+)
diff --git a/devtools/words-case.tx
Avoid using stashing option of stype in NPA in cn10k-a0 stepping.
This is a workaround for a HW Errata due to which NPA stashing operations
will never result in writing the data into L2 cache. But instead, it will
be written into LLC.
Signed-off-by: Ashwin Sekhar T K
Acked-by: Jerin Jacob
Make following updates to roc models.
- Use consistent upper/lower case in macros defining different
ROC models.
- Add api to detect cn96 Cx stepping.
- Make all current cn10k models as A0 stepping.
Signed-off-by: Ashwin Sekhar T K
---
drivers/common/cnxk/roc_model.c | 51
Avoid using stashing option of stype in NPA in cn10k-a0 stepping.
This is a workaround for a HW Errata due to which NPA stashing operations
will never result in writing the data into L2 cache. But instead, it will
be written into LLC.
Signed-off-by: Ashwin Sekhar T K
---
drivers/common/cnxk
Update roc models.
Signed-off-by: Ashwin Sekhar T K
---
drivers/common/cnxk/roc_model.c | 51 +++
drivers/common/cnxk/roc_model.h | 53 +
2 files changed, 67 insertions(+), 37 deletions(-)
diff --git a/drivers/common/cnxk/roc_model.c
Avoid using stype STSTP in batch alloc.
This is a workaround for errata IPBUNPA-37480.
Signed-off-by: Ashwin Sekhar T K
---
drivers/common/cnxk/roc_nix_queue.c | 5 +
drivers/common/cnxk/roc_nix_tm_ops.c | 8
drivers/common/cnxk/roc_npa.h| 2 +-
3 files changed, 14
NPA stack should be aligned to ROC cache line size.
Fixes: f765f5611240 ("common/cnxk: add NPA pool HW operations")
Signed-off-by: Ashwin Sekhar T K
---
drivers/common/cnxk/roc_npa.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/common/cnxk/roc_npa.c
Add the implementation for Marvell CN10k mempool batch dequeue op.
Signed-off-by: Ashwin Sekhar T K
---
drivers/mempool/cnxk/cn10k_mempool_ops.c | 72 +++-
1 file changed, 71 insertions(+), 1 deletion(-)
diff --git a/drivers/mempool/cnxk/cn10k_mempool_ops.c
b/drivers
Add the implementation for Marvell CN10k get count op.
Signed-off-by: Ashwin Sekhar T K
---
drivers/mempool/cnxk/cn10k_mempool_ops.c | 28 +++-
1 file changed, 27 insertions(+), 1 deletion(-)
diff --git a/drivers/mempool/cnxk/cn10k_mempool_ops.c
b/drivers/mempool/cnxk
Add the implementation for Marvell CN10k mempool batch enqueue op.
Signed-off-by: Ashwin Sekhar T K
---
drivers/mempool/cnxk/cn10k_mempool_ops.c | 28 +++-
1 file changed, 27 insertions(+), 1 deletion(-)
diff --git a/drivers/mempool/cnxk/cn10k_mempool_ops.c
b/drivers
: Ashwin Sekhar T K
---
doc/guides/mempool/cnxk.rst | 5 +
drivers/mempool/cnxk/cn10k_mempool_ops.c | 147 ++-
drivers/mempool/cnxk/cnxk_mempool.h | 2 +
drivers/mempool/cnxk/cnxk_mempool_ops.c | 11 +-
4 files changed, 160 insertions(+), 5 deletions(-)
diff
Add Marvell CN10k mempool ops and implement CN10k mempool alloc.
CN10k has 64 bytes L1D cache line size. Hence the CN10k mempool
alloc does not make the element size an odd multiple L1D cache
line size as NPA requires the element sizes to be multiples of
128 bytes.
Signed-off-by: Ashwin Sekhar T
Add Marvell CN9k mempool enqueue/dequeue. Marvell CN9k
supports burst dequeue which allows to dequeue up to 32
pointers using pipelined casp instructions.
Signed-off-by: Pavan Nikhilesh
Signed-off-by: Ashwin Sekhar T K
---
doc/guides/mempool/cnxk.rst | 4 +++
drivers/mempool/cnxk
Add Marvell CN9k mempool ops and implement CN9k mempool
alloc which makes sure that the element size always occupy
odd number of cachelines to ensure even distribution among
of elements among L1D cache sets.
Signed-off-by: Pavan Nikhilesh
Signed-off-by: Ashwin Sekhar T K
---
drivers/mempool
Register the CNXk mempool plt init callback which will set the
appropriate mempool ops to be used for the platform.
Signed-off-by: Ashwin Sekhar T K
---
drivers/mempool/cnxk/cnxk_mempool_ops.c | 15 +++
1 file changed, 15 insertions(+)
diff --git a/drivers/mempool/cnxk
Add generic CNXk mempool ops which will enqueue/dequeue
from pool one element at a time.
Signed-off-by: Pavan Nikhilesh
Signed-off-by: Ashwin Sekhar T K
---
drivers/mempool/cnxk/cnxk_mempool.h | 26
drivers/mempool/cnxk/cnxk_mempool_ops.c | 171
drivers
Add the implementation for CNXk mempool device
probe and remove.
Signed-off-by: Pavan Nikhilesh
Signed-off-by: Ashwin Sekhar T K
---
doc/guides/mempool/cnxk.rst | 23 +
drivers/mempool/cnxk/cnxk_mempool.c | 132 +++-
2 files changed, 151 insertions(+), 4
. Andreev
M: Andrew Rybchenko
F: drivers/mempool/bucket/
+Marvell cnxk
+M: Ashwin Sekhar T K
+M: Pavan Nikhilesh
+F: drivers/mempool/cnxk/
+F: doc/guides/mempool/cnxk.rst
+
Marvell OCTEON TX2
M: Jerin Jacob
M: Nithin Dabilpuram
diff --git a/doc/guides/mempool/cnxk.rst b/doc/guides/mempool
/octeontx2 driver once the 'CNXK' drivers are feature complete for
Marvell CN9K SoC.
Depends-on: series-16131 ("Add Marvell CNXK common driver")
v4:
- Added a bullet point for cnxk mempool driver in release_21_05.rst.
Ashwin Sekhar T K (11):
mempool/cnxk: add build infra and doc
Add the implementation for Marvell CN10k mempool batch dequeue op.
Signed-off-by: Ashwin Sekhar T K
---
drivers/mempool/cnxk/cn10k_mempool_ops.c | 72 +++-
1 file changed, 71 insertions(+), 1 deletion(-)
diff --git a/drivers/mempool/cnxk/cn10k_mempool_ops.c
b/drivers
Add the implementation for Marvell CN10k get count op.
Signed-off-by: Ashwin Sekhar T K
---
drivers/mempool/cnxk/cn10k_mempool_ops.c | 28 +++-
1 file changed, 27 insertions(+), 1 deletion(-)
diff --git a/drivers/mempool/cnxk/cn10k_mempool_ops.c
b/drivers/mempool/cnxk
1 - 100 of 197 matches
Mail list logo