From: Tejasree Kondoj <ktejasree@marvell.com>
To: Akhil Goyal <gakhil@marvell.com>
Cc: Anoob Joseph <anoobj@marvell.com>,
Vidya Sagar Velumuri <vvelumuri@marvell.com>, <dev@dpdk.org>
Subject: [PATCH 03/13] crypto/cnxk: change capabilities as per firmware
Date: Wed, 19 Oct 2022 19:45:03 +0530 [thread overview]
Message-ID: <20221019141513.1969052-4-ktejasree@marvell.com> (raw)
In-Reply-To: <20221019141513.1969052-1-ktejasree@marvell.com>
Changing CPT engine capabilities structure as per
microcode.
Signed-off-by: Tejasree Kondoj <ktejasree@marvell.com>
---
drivers/common/cnxk/roc_mbox.h | 5 ++++-
drivers/crypto/cnxk/cnxk_cryptodev_ops.c | 4 +---
2 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/drivers/common/cnxk/roc_mbox.h b/drivers/common/cnxk/roc_mbox.h
index 66a1be387d..9b57b934b1 100644
--- a/drivers/common/cnxk/roc_mbox.h
+++ b/drivers/common/cnxk/roc_mbox.h
@@ -1517,7 +1517,10 @@ union cpt_eng_caps {
uint64_t __io kasumi : 1;
uint64_t __io des : 1;
uint64_t __io crc : 1;
- uint64_t __io reserved_14_63 : 50;
+ uint64_t __io mmul : 1;
+ uint64_t __io reserved_15_33 : 19;
+ uint64_t __io pdcp_chain : 1;
+ uint64_t __io reserved_35_63 : 29;
};
};
diff --git a/drivers/crypto/cnxk/cnxk_cryptodev_ops.c b/drivers/crypto/cnxk/cnxk_cryptodev_ops.c
index a5233a942a..e0ceaa32d5 100644
--- a/drivers/crypto/cnxk/cnxk_cryptodev_ops.c
+++ b/drivers/crypto/cnxk/cnxk_cryptodev_ops.c
@@ -449,9 +449,7 @@ cnxk_sess_fill(struct roc_cpt *roc_cpt, struct rte_crypto_sym_xform *xform,
bool pdcp_chain_supported = false;
bool ciph_then_auth = false;
- if (roc_cpt->cpt_revision == ROC_CPT_REVISION_ID_96XX_B0 ||
- roc_cpt->cpt_revision == ROC_CPT_REVISION_ID_96XX_C0 ||
- roc_cpt->cpt_revision == ROC_CPT_REVISION_ID_98XX)
+ if (roc_cpt->hw_caps[CPT_ENG_TYPE_SE].pdcp_chain)
pdcp_chain_supported = true;
if (xform == NULL)
--
2.25.1
next prev parent reply other threads:[~2022-10-19 14:15 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20221019141513.1969052-1-ktejasree@marvell.com>
2022-10-19 14:15 ` [PATCH 01/13] crypto/cnxk: fix length of AES-CMAC algo Tejasree Kondoj
2022-10-19 14:15 ` [PATCH 02/13] common/cnxk: set inplace bit of lookaside IPsec Tejasree Kondoj
2022-10-19 14:15 ` Tejasree Kondoj [this message]
2022-10-19 14:15 ` [PATCH 04/13] common/cnxk: support 103XX CPT Tejasree Kondoj
2022-10-19 14:15 ` [PATCH 05/13] common/cnxk: support custom UDP port values Tejasree Kondoj
2022-10-19 14:15 ` [PATCH 06/13] crypto/cnxk: update rlen calculation for lookaside mode Tejasree Kondoj
2022-10-19 14:15 ` [PATCH 07/13] crypto/cnxk: add support for DES and MD5 Tejasree Kondoj
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20221019141513.1969052-4-ktejasree@marvell.com \
--to=ktejasree@marvell.com \
--cc=anoobj@marvell.com \
--cc=dev@dpdk.org \
--cc=gakhil@marvell.com \
--cc=vvelumuri@marvell.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).