[PATCH 2/4] drivers: crypto: add support for OCTEONTX2 CPT engine

2020-07-24 Thread Srujana Challa
Add support for the cryptographic acceleration unit (CPT) on OcteonTX2 CN96XX SoC. Signed-off-by: Srujana Challa --- drivers/crypto/marvell/octeontx2/otx2_cpt_common.h | 53 + .../crypto/marvell/octeontx2/otx2_cpt_hw_types.h | 567 + .../marvell/octeontx2/otx2_cpt_mbox_common.c

[PATCH 1/4] octeontx2-af: add support to manage the CPT unit

2020-07-24 Thread Srujana Challa
The Admin function (AF) manages hardware resources on the cryptographic acceleration unit(CPT). This patch adds a mailbox interface for PFs and VFs to configure hardware resources for cryptography and inline-ipsec. Signed-off-by: Srujana Challa --- drivers/net/ethernet/marvell/octeontx2/af

[PATCH 3/4] drivers: crypto: add the Virtual Function driver for OcteonTX2 CPT

2020-07-24 Thread Srujana Challa
Add support for the cryptographic accelerator unit virtual functions on OcteonTX2 96XX SoC. Signed-off-by: Srujana Challa --- .../crypto/marvell/octeontx2/otx2_cpt_hw_types.h |5 + drivers/crypto/marvell/octeontx2/otx2_cpt_reqmgr.h | 121 ++ drivers/crypto/marvell/octeontx2/otx2_cptlf.h

[PATCH 0/4] Add Support for Marvell OcteonTX2 Cryptographic

2020-07-24 Thread Srujana Challa
The following series adds support for Marvell Cryptographic Acceleration Unit(CPT) on OcteonTX2 CN96XX SoC. This series is tested with CRYPTO_EXTRA_TESTS enabled and CRYPTO_DISABLE_TESTS disabled. Srujana Challa (4): octeontx2-af: add support to manage the CPT unit drivers: crypto: add

[PATCH 4/4] crypto: marvell: enable OcteonTX2 cpt options for build

2020-07-24 Thread Srujana Challa
Add OcteonTX2 cpt options in crypto Kconfig and Makefile Signed-off-by: Srujana Challa --- drivers/crypto/marvell/Kconfig| 17 + drivers/crypto/marvell/Makefile | 1 + drivers/crypto/marvell/octeontx2/Makefile | 14 ++ 3 files changed, 32

RE: [PATCH 2/4] drivers: crypto: add support for OCTEONTX2 CPT engine

2020-07-27 Thread Srujana Challa
> -Original Message- > From: linux-crypto-ow...@vger.kernel.org ow...@vger.kernel.org> On Behalf Of David Miller > Sent: Saturday, July 25, 2020 8:45 AM > To: Srujana Challa > Cc: herb...@gondor.apana.org.au; net...@vger.kernel.org; linux- > cry...@vger.kernel

RE: [PATCH 2/4] drivers: crypto: add support for OCTEONTX2 CPT engine

2020-07-28 Thread Srujana Challa
> From: Srujana Challa > Date: Mon, 27 Jul 2020 14:12:46 + > > > On our test setup, the build is always successful, as we are adding > > "af/" subdirectory in ccflags list ([PATCH 4/4] crypto: marvell: > > enable OcteonTX2 cpt options for build). > &

[PATCH v2 0/3] Add Support for Marvell OcteonTX2 Cryptographic

2020-08-07 Thread Srujana Challa
The following series adds support for Marvell Cryptographic Acceleration Unit(CPT) on OcteonTX2 CN96XX SoC. This series is tested with CRYPTO_EXTRA_TESTS enabled and CRYPTO_DISABLE_TESTS disabled. Changes since v1: * Moved Makefile changes from patch4 to patch2 and patch3. Srujana Challa (3

[PATCH v2 1/3] octeontx2-af: add support to manage the CPT unit

2020-08-07 Thread Srujana Challa
The Admin function (AF) manages hardware resources on the cryptographic acceleration unit(CPT). This patch adds a mailbox interface for PFs and VFs to configure hardware resources for cryptography and inline-ipsec. Signed-off-by: Srujana Challa --- drivers/net/ethernet/marvell/octeontx2/af

[PATCH v2 3/3] drivers: crypto: add the Virtual Function driver for OcteonTX2 CPT

2020-08-07 Thread Srujana Challa
Add support for the cryptographic accelerator unit virtual functions on OcteonTX2 96XX SoC. Signed-off-by: Srujana Challa --- drivers/crypto/marvell/Kconfig |4 + drivers/crypto/marvell/octeontx2/Makefile |5 +- .../crypto/marvell/octeontx2

[PATCH v2 2/3] drivers: crypto: add support for OCTEONTX2 CPT engine

2020-08-07 Thread Srujana Challa
Add support for the cryptographic acceleration unit (CPT) on OcteonTX2 CN96XX SoC. Signed-off-by: Srujana Challa --- drivers/crypto/marvell/Kconfig | 13 + drivers/crypto/marvell/Makefile|1 + drivers/crypto/marvell/octeontx2/Makefile

RE: [PATCH v2 2/3] drivers: crypto: add support for OCTEONTX2 CPT engine

2020-09-04 Thread Srujana Challa
> Subject: Re: [PATCH v2 2/3] drivers: crypto: add support for OCTEONTX2 CPT > engine > > On Fri, Aug 07, 2020 at 07:39:19PM +0530, Srujana Challa wrote: > > > > +#if defined(CONFIG_ARM64) > > +static inline long otx2_lmt_flush(void *ioreg) > > +{ > >

RE: [EXT] Re: [PATCH v2 2/3] drivers: crypto: add support for OCTEONTX2 CPT engine

2020-09-04 Thread Srujana Challa
> Subject: [EXT] Re: [PATCH v2 2/3] drivers: crypto: add support for OCTEONTX2 > CPT engine > > External Email > > -- > On Fri, Sep 04, 2020 at 01:45:38PM +, Srujana Challa wrote: > > > > T

RE: [EXT] Re: [PATCH v2 2/3] drivers: crypto: add support for OCTEONTX2 CPT engine

2020-09-08 Thread Srujana Challa
t; Sent: Friday, September 4, 2020 7:48 PM > > > To: Srujana Challa > > > Cc: da...@davemloft.net; net...@vger.kernel.org; linux- > > > cry...@vger.kernel.org; Suheil Chandran ; > > > Narayana Prasad Raju Athreya ; Sunil Kovvuri > > > Goutham ; Linu Cherian ;

[PATCH v3,net-next,2/4] octeontx2-af: add support to manage the CPT unit

2020-09-17 Thread Srujana Challa
Velumuri Signed-off-by: Lukas Bartosik Signed-off-by: Srujana Challa --- .../ethernet/marvell/octeontx2/af/Makefile| 3 +- .../net/ethernet/marvell/octeontx2/af/mbox.h | 85 + .../net/ethernet/marvell/octeontx2/af/rvu.c | 2 +- .../net/ethernet/marvell/octeontx2/af/rvu.h | 7

[PATCH v3,net-next,0/4] Add Support for Marvell OcteonTX2 Cryptographic

2020-09-17 Thread Srujana Challa
OcteonTx2 asm code to a header file under include/linux/soc/ Changes since v1: * Moved Makefile changes from patch4 to patch2 and patch3. Srujana Challa (3): octeontx2-pf: move asm code to include/linux/soc octeontx2-af: add support to manage the CPT unit drivers: crypto: add support for

[PATCH v3,net-next,1/4] octeontx2-pf: move asm code to include/linux/soc

2020-09-17 Thread Srujana Challa
/octeontx2/asm.h diff --git a/MAINTAINERS b/MAINTAINERS index 9a545a631f0d..95ddbb4f1a89 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -10431,6 +10431,7 @@ M: Srujana Challa L: linux-crypto@vger.kernel.org S: Maintained F: drivers/crypto/marvell/ +F: include/linux/soc/marvell

[PATCH v3,net-next,4/4] drivers: crypto: add the Virtual Function driver for OcteonTX2 CPT

2020-09-17 Thread Srujana Challa
Add support for the cryptographic accelerator unit virtual functions on OcteonTX2 96XX SoC. Signed-off-by: Suheil Chandran Signed-off-by: Lukas Bartosik Signed-off-by: Srujana Challa --- drivers/crypto/marvell/Kconfig|4 + drivers/crypto/marvell/octeontx2/Makefile

[PATCH v3,net-next,3/4] drivers: crypto: add support for OCTEONTX2 CPT engine

2020-09-17 Thread Srujana Challa
Add support for the cryptographic acceleration unit (CPT) on OcteonTX2 CN96XX SoC. Signed-off-by: Suheil Chandran Signed-off-by: Lukas Bartosik Signed-off-by: Srujana Challa --- drivers/crypto/marvell/Kconfig| 13 + drivers/crypto/marvell/Makefile |1

RE: [EXT] Re: [PATCH v3,net-next,0/4] Add Support for Marvell OcteonTX2 Cryptographic

2020-09-18 Thread Srujana Challa
> Subject: [EXT] Re: [PATCH v3,net-next,0/4] Add Support for Marvell OcteonTX2 > Cryptographic > > External Email > > -- > On Thu, 17 Sep 2020 18:58:31 +0530 Srujana Challa wrote: > > The follow

RE: [PATCH v3,net-next,0/4] Add Support for Marvell OcteonTX2 Cryptographic

2020-09-19 Thread Srujana Challa
> Subject: Re: [PATCH v3,net-next,0/4] Add Support for Marvell OcteonTX2 > Cryptographic > > On Thu, 2020-09-17 at 18:58 +0530, Srujana Challa wrote: > > The following series adds support for Marvell Cryptographic > > Acceleration > > Unit(CPT) on OcteonTX2 CN96XX

[PATCH v4,net-next,02/13] octeontx2-af: add mailbox interface for CPT

2020-10-09 Thread Srujana Challa
IPsec. Inline-IPsec mailbox messages are added here to provide the interface to Marvell VFIO drivers to allocate and configure HW resources for inline IPsec feature. Signed-off-by: Suheil Chandran Signed-off-by: Vidya Sagar Velumuri Signed-off-by: Srujana Challa --- .../ethernet/marvell/octeont

[PATCH v4,net-next,01/13] octeontx2-pf: move lmt flush to include/linux/soc

2020-10-09 Thread Srujana Challa
: Suheil Chandran Signed-off-by: Srujana Challa --- MAINTAINERS | 2 ++ .../marvell/octeontx2/nic/otx2_common.h | 13 + include/linux/soc/marvell/octeontx2/asm.h | 29 +++ 3 files changed, 32 insertions(+), 12 deletions

[PATCH v4,net-next,00/13] Add Support for Marvell OcteonTX2 Cryptographic

2020-10-09 Thread Srujana Challa
* Fixed C=1 warnings. * Added code to exit CPT VF driver gracefully. * Moved OcteonTx2 asm code to a header file under include/linux/soc/ Changes since v1: * Moved Makefile changes from patch4 to patch2 and patch3. Srujana Challa (13): octeontx2-pf: move lmt flush to include/linux/soc oct

[PATCH v4,net-next,05/13] crypto: octeontx2: add mailbox communication with AF

2020-10-09 Thread Srujana Challa
off-by: Srujana Challa --- drivers/crypto/marvell/octeontx2/Makefile | 3 +- .../marvell/octeontx2/otx2_cpt_common.h | 4 + .../marvell/octeontx2/otx2_cpt_mbox_common.c | 37 +++ drivers/crypto/marvell/octeontx2/otx2_cptpf.h | 12 +++ .../marvell/octeontx2/otx2_cptpf_

[PATCH v4,net-next,03/13] octeontx2-af: add debugfs entries for CPT block

2020-10-09 Thread Srujana Challa
trol registers. Usage: cat /sys/kernel/debug/octeontx2/cpt/cpt_lfs_info cpt_err_info: dump cpt error registers. Usage: /sys/kernel/debug/octeontx2/cpt/cpt_err_info Signed-off-by: Suheil Chandran Signed-off-by: Srujana Challa --- .../net/ethernet/marvell/octeontx2/af/rvu.h | 6 + .../marvell/

[PATCH v4,net-next,07/13] crypto: octeontx2: load microcode and create engine groups

2020-10-09 Thread Srujana Challa
AEs), and configures all engines. Signed-off-by: Suheil Chandran Signed-off-by: Srujana Challa --- drivers/crypto/marvell/octeontx2/Makefile |2 +- .../marvell/octeontx2/otx2_cpt_common.h | 42 + .../marvell/octeontx2/otx2_cpt_mbox_common.c | 77 + drivers/crypto/marvell

[PATCH v4,net-next,06/13] crypto: octeontx2: enable SR-IOV and mailbox communication with VF

2020-10-09 Thread Srujana Challa
adds support for this 'VF <=> PF <=> AF' mailbox communication. Signed-off-by: Suheil Chandran Signed-off-by: Srujana Challa --- .../marvell/octeontx2/otx2_cpt_common.h | 1 + drivers/crypto/marvell/octeontx2/otx2_cptpf.h | 19 ++ .../marvell/o

[PATCH v4,net-next,04/13] drivers: crypto: add Marvell OcteonTX2 CPT PF driver

2020-10-09 Thread Srujana Challa
. Signed-off-by: Suheil Chandran Signed-off-by: Srujana Challa --- drivers/crypto/marvell/Kconfig| 10 + drivers/crypto/marvell/Makefile | 1 + drivers/crypto/marvell/octeontx2/Makefile | 6 + .../marvell/octeontx2/otx2_cpt_common.h | 32

[PATCH v4,net-next,09/13] crypto: octeontx2: add support to get engine capabilities

2020-10-09 Thread Srujana Challa
Adds support to get engine capabilities and adds a new mailbox to share the engine capabilities to CPT VFIO drivers. Signed-off-by: Suheil Chandran Signed-off-by: Srujana Challa --- .../marvell/octeontx2/otx2_cpt_common.h | 36 .../marvell/octeontx2/otx2_cpt_reqmgr.h | 51

[PATCH v4,net-next,10/13] crypto: octeontx2: add mailbox for inline-IPsec RX LF cfg

2020-10-09 Thread Srujana Challa
Add new mailbox message to configure a LF for RX inline-IPsec. This message is added to serve Marvell CPT VFIO driver, since a VF can not send mailbox messages to admin function(AF) directly. Signed-off-by: Suheil Chandran Signed-off-by: Srujana Challa --- .../marvell/octeontx2

[PATCH v4,net-next,13/13] crypto: octeontx2: register with linux crypto framework

2020-10-09 Thread Srujana Challa
)), authenc(hmac(sha512),ecb(cipher_null)), rfc4106(gcm(aes)). Signed-off-by: Suheil Chandran Signed-off-by: Srujana Challa --- drivers/crypto/marvell/Kconfig|4 + drivers/crypto/marvell/octeontx2/Makefile |3 +- .../marvell/octeontx2/otx2_cpt_reqmgr.h |1

[PATCH v4,net-next,08/13] crypto: octeontx2: add LF framework

2020-10-09 Thread Srujana Challa
CPT RVU Local Functions(LFs) needs to be attached to the PF/VF to submit the instructions to CPT. This patch adds the interface to initialize and attach the LFs. It also adds interface to register the LF's interrupts. Signed-off-by: Suheil Chandran Signed-off-by: Srujana Challa --- dr

[PATCH v4,net-next,11/13] crypto: octeontx2: add virtual function driver support

2020-10-09 Thread Srujana Challa
Add support for the Marvell OcteonTX2 CPT virtual function driver. This patch includes probe, PCI specific initialization and interrupt handling. Signed-off-by: Suheil Chandran Signed-off-by: Srujana Challa --- drivers/crypto/marvell/octeontx2/Makefile | 4 +- .../marvell/octeontx2

[PATCH v4,net-next,12/13] crypto: octeontx2: add support to process the crypto request

2020-10-09 Thread Srujana Challa
Attach LFs to CPT VF to process the crypto requests and register LF interrupts. Signed-off-by: Suheil Chandran Signed-off-by: Srujana Challa --- drivers/crypto/marvell/octeontx2/Makefile | 2 +- .../marvell/octeontx2/otx2_cpt_reqmgr.h | 145 + drivers/crypto/marvell/octeontx2

[PATCH v5,net-next,04/13] drivers: crypto: add Marvell OcteonTX2 CPT PF driver

2020-10-12 Thread Srujana Challa
. Change-Id: I913cbdb1752bb747a4ce48f6bf2ee98a51cde82d Signed-off-by: Srujana Challa --- drivers/crypto/marvell/Kconfig| 10 + drivers/crypto/marvell/Makefile | 1 + drivers/crypto/marvell/octeontx2/Makefile | 6 + .../marvell/octeontx2/otx2_cpt_common.h

[PATCH v5,net-next,05/13] crypto: octeontx2: add mailbox communication with AF

2020-10-12 Thread Srujana Challa
nge-Id: I9826d1703a1a19c347c9e3f3cd6a395c5a64ab4c Signed-off-by: Srujana Challa --- drivers/crypto/marvell/octeontx2/Makefile | 3 +- .../marvell/octeontx2/otx2_cpt_common.h | 4 + .../marvell/octeontx2/otx2_cpt_mbox_common.c | 37 +++ drivers/crypto/marvell/octeontx2/otx2_cptpf.h | 12 +++ .../marvell/oct

[PATCH v5,net-next,00/13] Add Support for Marvell OcteonTX2 Cryptographic

2020-10-12 Thread Srujana Challa
eader file under include/linux/soc/ Changes since v1: * Moved Makefile changes from patch4 to patch2 and patch3. Srujana Challa (13): octeontx2-pf: move lmt flush to include/linux/soc octeontx2-af: add mailbox interface for CPT octeontx2-af: add debugfs entries for CPT block drivers: crypto

[PATCH v5,net-next,01/13] octeontx2-pf: move lmt flush to include/linux/soc

2020-10-12 Thread Srujana Challa
: I148c654bc0196826fd2664986d204f08c632f793 Signed-off-by: Srujana Challa --- MAINTAINERS | 2 ++ .../marvell/octeontx2/nic/otx2_common.h | 13 + include/linux/soc/marvell/octeontx2/asm.h | 29 +++ 3 files changed, 32 insertions

[PATCH v5,net-next,02/13] octeontx2-af: add mailbox interface for CPT

2020-10-12 Thread Srujana Challa
IPsec. Inline-IPsec mailbox messages are added here to provide the interface to Marvell VFIO drivers to allocate and configure HW resources for inline IPsec feature. Signed-off-by: Srujana Challa --- .../ethernet/marvell/octeontx2/af/Makefile| 3 +- .../net/ethernet/marvell/octeontx2/af/m

[PATCH v5,net-next,03/13] octeontx2-af: add debugfs entries for CPT block

2020-10-12 Thread Srujana Challa
trol registers. Usage: cat /sys/kernel/debug/octeontx2/cpt/cpt_lfs_info cpt_err_info: dump cpt error registers. Usage: /sys/kernel/debug/octeontx2/cpt/cpt_err_info Change-Id: Ia67d024dc70620147319c11516e7ce9f9cba0e85 Signed-off-by: Srujana Challa --- .../net/ethernet/marvell/octeontx2/af/rv

[PATCH v5,net-next,06/13] crypto: octeontx2: enable SR-IOV and mailbox communication with VF

2020-10-12 Thread Srujana Challa
adds support for this 'VF <=> PF <=> AF' mailbox communication. Change-Id: If95185c2aae4e777e382143ce5f76f3c0320ad8c Signed-off-by: Srujana Challa --- .../marvell/octeontx2/otx2_cpt_common.h | 1 + drivers/crypto/marvell/octeontx2/otx2_cptpf.h | 19 ++ .../marvell/o

[PATCH v5,net-next,11/13] crypto: octeontx2: add virtual function driver support

2020-10-12 Thread Srujana Challa
Add support for the Marvell OcteonTX2 CPT virtual function driver. This patch includes probe, PCI specific initialization and interrupt handling. Change-Id: Ib0c81fcc7c0d43144463c37e7ea0e954bafe4b62 Signed-off-by: Srujana Challa --- drivers/crypto/marvell/octeontx2/Makefile | 4

[PATCH v5,net-next,10/13] crypto: octeontx2: add mailbox for inline-IPsec RX LF cfg

2020-10-12 Thread Srujana Challa
Add new mailbox message to configure a LF for RX inline-IPsec. This message is added to serve Marvell CPT VFIO driver, since a VF can not send mailbox messages to admin function(AF) directly. Change-Id: I66c984eb3a865a28d59952e7210319c669ef9e6c Signed-off-by: Srujana Challa --- .../marvell

[PATCH v5,net-next,09/13] crypto: octeontx2: add support to get engine capabilities

2020-10-12 Thread Srujana Challa
Adds support to get engine capabilities and adds a new mailbox to share the engine capabilities to CPT VFIO drivers. Change-Id: Ic43320c02ca4595b5b82f1da9c7d3a070f046f55 Signed-off-by: Srujana Challa --- .../marvell/octeontx2/otx2_cpt_common.h | 36 .../marvell/octeontx2

[PATCH v5,net-next,13/13] crypto: octeontx2: register with linux crypto framework

2020-10-12 Thread Srujana Challa
)), authenc(hmac(sha512),ecb(cipher_null)), rfc4106(gcm(aes)). Change-Id: Icde4cd251a58185619806c310f42ef567b616db7 Signed-off-by: Srujana Challa --- drivers/crypto/marvell/Kconfig|4 + drivers/crypto/marvell/octeontx2/Makefile |3 +- .../marvell/octeontx2

[PATCH v5,net-next,08/13] crypto: octeontx2: add LF framework

2020-10-12 Thread Srujana Challa
CPT RVU Local Functions(LFs) needs to be attached to the PF/VF to submit the instructions to CPT. This patch adds the interface to initialize and attach the LFs. It also adds interface to register the LF's interrupts. Change-Id: I6a674bab7f905de63fed0a9b611ac4d69baa164f Signed-off-by: Sr

[PATCH v5,net-next,12/13] crypto: octeontx2: add support to process the crypto request

2020-10-12 Thread Srujana Challa
Attach LFs to CPT VF to process the crypto requests and register LF interrupts. Change-Id: Idd9b8ff9a435d9dfc2591f17a84d2f96206dd994 Signed-off-by: Srujana Challa --- drivers/crypto/marvell/octeontx2/Makefile | 2 +- .../marvell/octeontx2/otx2_cpt_reqmgr.h | 145 + drivers

[PATCH v5,net-next,07/13] crypto: octeontx2: load microcode and create engine groups

2020-10-12 Thread Srujana Challa
AEs), and configures all engines. Change-Id: Ib4178b64ad767e6ed4b013e63c99d70eca290753 Signed-off-by: Srujana Challa --- drivers/crypto/marvell/octeontx2/Makefile |2 +- .../marvell/octeontx2/otx2_cpt_common.h | 42 + .../marvell/octeontx2/otx2_cpt_mbox_common.c | 77 + drivers

RE: [PATCH v5,net-next,00/13] Add Support for Marvell OcteonTX2 Cryptographic

2020-10-12 Thread Srujana Challa
ot;Merge branch 'Offload-tc-vlan-mangle-to- > mscc_ocelot-switch'")' > Changes since v3: > * Splitup the patches into smaller patches with more informartion. > Changes since v2: > * Fixed C=1 warnings. > * Added code to exit CPT VF driver gracefu

[PATCH v6,net-next,00/13] Add Support for Marvell OcteonTX2 Cryptographic

2020-10-12 Thread Srujana Challa
eader file under include/linux/soc/ Changes since v1: * Moved Makefile changes from patch4 to patch2 and patch3. Srujana Challa (13): octeontx2-pf: move lmt flush to include/linux/soc octeontx2-af: add mailbox interface for CPT octeontx2-af: add debugfs entries for CPT block drivers: crypto

[PATCH v6,net-next,01/13] octeontx2-pf: move lmt flush to include/linux/soc

2020-10-12 Thread Srujana Challa
: Srujana Challa --- MAINTAINERS | 2 ++ .../marvell/octeontx2/nic/otx2_common.h | 13 + include/linux/soc/marvell/octeontx2/asm.h | 29 +++ 3 files changed, 32 insertions(+), 12 deletions(-) create mode 100644 include/linux/soc

[PATCH v6,net-next,04/13] drivers: crypto: add Marvell OcteonTX2 CPT PF driver

2020-10-12 Thread Srujana Challa
. Signed-off-by: Srujana Challa --- drivers/crypto/marvell/Kconfig| 10 + drivers/crypto/marvell/Makefile | 1 + drivers/crypto/marvell/octeontx2/Makefile | 6 + .../marvell/octeontx2/otx2_cpt_common.h | 32 ++ .../marvell/octeontx2

[PATCH v6,net-next,03/13] octeontx2-af: add debugfs entries for CPT block

2020-10-12 Thread Srujana Challa
trol registers. Usage: cat /sys/kernel/debug/octeontx2/cpt/cpt_lfs_info cpt_err_info: dump cpt error registers. Usage: /sys/kernel/debug/octeontx2/cpt/cpt_err_info Signed-off-by: Srujana Challa --- .../net/ethernet/marvell/octeontx2/af/rvu.h | 6 + .../marvell/octeontx2/af/rvu_debugfs.c|

[PATCH v6,net-next,05/13] crypto: octeontx2: add mailbox communication with AF

2020-10-12 Thread Srujana Challa
In the resource virtualization unit (RVU) each of the PF and AF (admin function) share a 64KB of reserved memory region for communication. This patch initializes PF <=> AF mailbox IRQs, registers handlers for processing these communication messages. Signed-off-by: Srujana Challa --- d

[PATCH v6,net-next,02/13] octeontx2-af: add mailbox interface for CPT

2020-10-12 Thread Srujana Challa
IPsec. Inline-IPsec mailbox messages are added here to provide the interface to Marvell VFIO drivers to allocate and configure HW resources for inline IPsec feature. Signed-off-by: Srujana Challa --- .../ethernet/marvell/octeontx2/af/Makefile| 3 +- .../net/ethernet/marvell/octeontx2/af/m

[PATCH v6,net-next,06/13] crypto: octeontx2: enable SR-IOV and mailbox communication with VF

2020-10-12 Thread Srujana Challa
adds support for this 'VF <=> PF <=> AF' mailbox communication. Signed-off-by: Srujana Challa --- .../marvell/octeontx2/otx2_cpt_common.h | 1 + drivers/crypto/marvell/octeontx2/otx2_cptpf.h | 19 ++ .../marvell/octeontx2/otx2_cptpf_main.c | 209 +++

[PATCH v6,net-next,07/13] crypto: octeontx2: load microcode and create engine groups

2020-10-12 Thread Srujana Challa
AEs), and configures all engines. Signed-off-by: Srujana Challa --- drivers/crypto/marvell/octeontx2/Makefile |2 +- .../marvell/octeontx2/otx2_cpt_common.h | 42 + .../marvell/octeontx2/otx2_cpt_mbox_common.c | 77 + drivers/crypto/marvell/octeontx2/otx2_cptpf.h |3

[PATCH v6,net-next,11/13] crypto: octeontx2: add virtual function driver support

2020-10-12 Thread Srujana Challa
Add support for the Marvell OcteonTX2 CPT virtual function driver. This patch includes probe, PCI specific initialization and interrupt handling. Signed-off-by: Srujana Challa --- drivers/crypto/marvell/octeontx2/Makefile | 4 +- .../marvell/octeontx2/otx2_cpt_common.h | 1

[PATCH v6,net-next,10/13] crypto: octeontx2: add mailbox for inline-IPsec RX LF cfg

2020-10-12 Thread Srujana Challa
Add new mailbox message to configure a LF for RX inline-IPsec. This message is added to serve Marvell CPT VFIO driver, since a VF can not send mailbox messages to admin function(AF) directly. Signed-off-by: Srujana Challa --- .../marvell/octeontx2/otx2_cpt_common.h | 12 +++ drivers

[PATCH v6,net-next,08/13] crypto: octeontx2: add LF framework

2020-10-12 Thread Srujana Challa
CPT RVU Local Functions(LFs) needs to be attached to the PF/VF to submit the instructions to CPT. This patch adds the interface to initialize and attach the LFs. It also adds interface to register the LF's interrupts. Signed-off-by: Srujana Challa --- drivers/crypto/marvell/octeontx2/Mak

[PATCH v6,net-next,12/13] crypto: octeontx2: add support to process the crypto request

2020-10-12 Thread Srujana Challa
Attach LFs to CPT VF to process the crypto requests and register LF interrupts. Signed-off-by: Srujana Challa --- drivers/crypto/marvell/octeontx2/Makefile | 2 +- .../marvell/octeontx2/otx2_cpt_reqmgr.h | 145 + drivers/crypto/marvell/octeontx2/otx2_cptlf.h | 7 + .../marvell

[PATCH v6,net-next,09/13] crypto: octeontx2: add support to get engine capabilities

2020-10-12 Thread Srujana Challa
Adds support to get engine capabilities and adds a new mailbox to share the engine capabilities to CPT VFIO drivers. Signed-off-by: Srujana Challa --- .../marvell/octeontx2/otx2_cpt_common.h | 36 .../marvell/octeontx2/otx2_cpt_reqmgr.h | 51 ++ drivers/crypto/marvell

[PATCH v6,net-next,13/13] crypto: octeontx2: register with linux crypto framework

2020-10-12 Thread Srujana Challa
)), authenc(hmac(sha512),ecb(cipher_null)), rfc4106(gcm(aes)). Signed-off-by: Srujana Challa --- drivers/crypto/marvell/Kconfig|4 + drivers/crypto/marvell/octeontx2/Makefile |3 +- .../marvell/octeontx2/otx2_cpt_reqmgr.h |1 + .../marvell/octeontx2

[PATCH v7,net-next,01/13] octeontx2-pf: move lmt flush to include/linux/soc

2020-10-12 Thread Srujana Challa
: Suheil Chandran Signed-off-by: Srujana Challa --- MAINTAINERS | 2 ++ .../marvell/octeontx2/nic/otx2_common.h | 13 + include/linux/soc/marvell/octeontx2/asm.h | 29 +++ 3 files changed, 32 insertions(+), 12 deletions

[PATCH v7,net-next,00/13] Add Support for Marvell OcteonTX2 Cryptographic

2020-10-12 Thread Srujana Challa
gracefully. * Moved OcteonTx2 asm code to a header file under include/linux/soc/ Changes since v1: * Moved Makefile changes from patch4 to patch2 and patch3. Srujana Challa (13): octeontx2-pf: move lmt flush to include/linux/soc octeontx2-af: add mailbox interface for CPT octeontx2-af: ad

[PATCH v7,net-next,03/13] octeontx2-af: add debugfs entries for CPT block

2020-10-12 Thread Srujana Challa
trol registers. Usage: cat /sys/kernel/debug/octeontx2/cpt/cpt_lfs_info cpt_err_info: dump cpt error registers. Usage: /sys/kernel/debug/octeontx2/cpt/cpt_err_info Signed-off-by: Suheil Chandran Signed-off-by: Srujana Challa --- .../net/ethernet/marvell/octeontx2/af/rvu.h | 6 + .../marvell/

[PATCH v7,net-next,02/13] octeontx2-af: add mailbox interface for CPT

2020-10-12 Thread Srujana Challa
IPsec. Inline-IPsec mailbox messages are added here to provide the interface to Marvell VFIO drivers to allocate and configure HW resources for inline IPsec feature. Signed-off-by: Suheil Chandran Signed-off-by: Vidya Sagar Velumuri Signed-off-by: Srujana Challa --- .../ethernet/marvell/octeont

[PATCH v7,net-next,04/13] drivers: crypto: add Marvell OcteonTX2 CPT PF driver

2020-10-12 Thread Srujana Challa
. Signed-off-by: Suheil Chandran Signed-off-by: Srujana Challa --- drivers/crypto/marvell/Kconfig| 10 + drivers/crypto/marvell/Makefile | 1 + drivers/crypto/marvell/octeontx2/Makefile | 6 + .../marvell/octeontx2/otx2_cpt_common.h | 32

[PATCH v7,net-next,06/13] crypto: octeontx2: enable SR-IOV and mailbox communication with VF

2020-10-12 Thread Srujana Challa
adds support for this 'VF <=> PF <=> AF' mailbox communication. Signed-off-by: Suheil Chandran Signed-off-by: Srujana Challa --- .../marvell/octeontx2/otx2_cpt_common.h | 1 + drivers/crypto/marvell/octeontx2/otx2_cptpf.h | 19 ++ .../marvell/o

[PATCH v7,net-next,05/13] crypto: octeontx2: add mailbox communication with AF

2020-10-12 Thread Srujana Challa
off-by: Srujana Challa --- drivers/crypto/marvell/octeontx2/Makefile | 3 +- .../marvell/octeontx2/otx2_cpt_common.h | 4 + .../marvell/octeontx2/otx2_cpt_mbox_common.c | 37 +++ drivers/crypto/marvell/octeontx2/otx2_cptpf.h | 12 +++ .../marvell/octeontx2/otx2_cptpf_

[PATCH v7,net-next,07/13] crypto: octeontx2: load microcode and create engine groups

2020-10-12 Thread Srujana Challa
AEs), and configures all engines. Signed-off-by: Suheil Chandran Signed-off-by: Srujana Challa --- drivers/crypto/marvell/octeontx2/Makefile |2 +- .../marvell/octeontx2/otx2_cpt_common.h | 42 + .../marvell/octeontx2/otx2_cpt_mbox_common.c | 77 + drivers/crypto/marvell

[PATCH v7,net-next,10/13] crypto: octeontx2: add mailbox for inline-IPsec RX LF cfg

2020-10-12 Thread Srujana Challa
Add new mailbox message to configure a LF for RX inline-IPsec. This message is added to serve Marvell CPT VFIO driver, since a VF can not send mailbox messages to admin function(AF) directly. Signed-off-by: Suheil Chandran Signed-off-by: Srujana Challa --- .../marvell/octeontx2

[PATCH v7,net-next,11/13] crypto: octeontx2: add virtual function driver support

2020-10-12 Thread Srujana Challa
Add support for the Marvell OcteonTX2 CPT virtual function driver. This patch includes probe, PCI specific initialization and interrupt handling. Signed-off-by: Suheil Chandran Signed-off-by: Srujana Challa --- drivers/crypto/marvell/octeontx2/Makefile | 4 +- .../marvell/octeontx2

[PATCH v7,net-next,13/13] crypto: octeontx2: register with linux crypto framework

2020-10-12 Thread Srujana Challa
)), authenc(hmac(sha512),ecb(cipher_null)), rfc4106(gcm(aes)). Signed-off-by: Suheil Chandran Signed-off-by: Srujana Challa --- drivers/crypto/marvell/Kconfig|4 + drivers/crypto/marvell/octeontx2/Makefile |3 +- .../marvell/octeontx2/otx2_cpt_reqmgr.h |1

[PATCH v7,net-next,08/13] crypto: octeontx2: add LF framework

2020-10-12 Thread Srujana Challa
CPT RVU Local Functions(LFs) needs to be attached to the PF/VF to submit the instructions to CPT. This patch adds the interface to initialize and attach the LFs. It also adds interface to register the LF's interrupts. Signed-off-by: Suheil Chandran Signed-off-by: Srujana Challa --- dr

[PATCH v7,net-next,12/13] crypto: octeontx2: add support to process the crypto request

2020-10-12 Thread Srujana Challa
Attach LFs to CPT VF to process the crypto requests and register LF interrupts. Signed-off-by: Suheil Chandran Signed-off-by: Srujana Challa --- drivers/crypto/marvell/octeontx2/Makefile | 2 +- .../marvell/octeontx2/otx2_cpt_reqmgr.h | 145 + drivers/crypto/marvell/octeontx2

[PATCH v7,net-next,09/13] crypto: octeontx2: add support to get engine capabilities

2020-10-12 Thread Srujana Challa
Adds support to get engine capabilities and adds a new mailbox to share the engine capabilities to CPT VFIO drivers. Signed-off-by: Suheil Chandran Signed-off-by: Srujana Challa --- .../marvell/octeontx2/otx2_cpt_common.h | 36 .../marvell/octeontx2/otx2_cpt_reqmgr.h | 51

RE: [EXT] Re: [PATCH v7,net-next,07/13] crypto: octeontx2: load microcode and create engine groups

2020-10-15 Thread Srujana Challa
> Subject: [EXT] Re: [PATCH v7,net-next,07/13] crypto: octeontx2: load microcode > and create engine groups > > External Email > > -- > On Mon, 12 Oct 2020 16:27:13 +0530 Srujana Challa wrote: > > +

RE: [EXT] Re: [PATCH v7,net-next,04/13] drivers: crypto: add Marvell OcteonTX2 CPT PF driver

2020-10-15 Thread Srujana Challa
> Subject: [EXT] Re: [PATCH v7,net-next,04/13] drivers: crypto: add Marvell > OcteonTX2 CPT PF driver > > External Email > > -- > On Mon, 12 Oct 2020 16:27:10 +0530 Srujana Challa wrote: > > +

[PATCH v8,net-next,03/12] octeontx2-af: add debugfs entries for CPT block

2020-10-19 Thread Srujana Challa
cpt_err_info: dump cpt error registers. Usage: cat /sys/kernel/debug/octeontx2/cpt/cpt_err_info Signed-off-by: Suheil Chandran Signed-off-by: Srujana Challa --- .../net/ethernet/marvell/octeontx2/af/rvu.h | 1 + .../marvell/octeontx2/af/rvu_debugfs.c| 304 ++ 2 files changed

[PATCH v8,net-next,01/12] octeontx2-pf: move lmt flush to include/linux/soc

2020-10-19 Thread Srujana Challa
: Suheil Chandran Signed-off-by: Srujana Challa --- MAINTAINERS | 2 ++ .../marvell/octeontx2/nic/otx2_common.h | 13 + include/linux/soc/marvell/octeontx2/asm.h | 29 +++ 3 files changed, 32 insertions(+), 12 deletions

[PATCH v8,net-next,02/12] octeontx2-af: add mailbox interface for CPT

2020-10-19 Thread Srujana Challa
ff-by: Suheil Chandran Signed-off-by: Srujana Challa --- .../ethernet/marvell/octeontx2/af/Makefile| 3 +- .../net/ethernet/marvell/octeontx2/af/mbox.h | 33 +++ .../net/ethernet/marvell/octeontx2/af/rvu.c | 2 +- .../net/ethernet/marvell/octeontx2/af/rvu.h | 1 + .../ethernet/ma

[PATCH v8,net-next,04/12] drivers: crypto: add Marvell OcteonTX2 CPT PF driver

2020-10-19 Thread Srujana Challa
. Signed-off-by: Suheil Chandran Signed-off-by: Srujana Challa --- drivers/crypto/marvell/Kconfig| 10 + drivers/crypto/marvell/Makefile | 1 + drivers/crypto/marvell/octeontx2/Makefile | 6 + .../marvell/octeontx2/otx2_cpt_common.h | 32

[PATCH v8,net-next,05/12] crypto: octeontx2: add mailbox communication with AF

2020-10-19 Thread Srujana Challa
off-by: Srujana Challa --- drivers/crypto/marvell/octeontx2/Makefile | 3 +- .../marvell/octeontx2/otx2_cpt_common.h | 4 + .../marvell/octeontx2/otx2_cpt_mbox_common.c | 37 +++ drivers/crypto/marvell/octeontx2/otx2_cptpf.h | 12 +++ .../marvell/octeontx2/otx2_cptpf_

[PATCH v8,net-next,00/12] Add Support for Marvell OcteonTX2

2020-10-19 Thread Srujana Challa
ion. Changes since v2: * Fixed C=1 warnings. * Added code to exit CPT VF driver gracefully. * Moved OcteonTx2 asm code to a header file under include/linux/soc/ Changes since v1: * Moved Makefile changes from patch4 to patch2 and patch3. Srujana Challa (12): octeontx2-pf: move lmt flush to i

[PATCH v8,net-next,09/12] crypto: octeontx2: add support to get engine capabilities

2020-10-19 Thread Srujana Challa
Adds support to get engine capabilities and adds a new mailbox to share capabilities with VF driver. Signed-off-by: Suheil Chandran Signed-off-by: Srujana Challa --- .../marvell/octeontx2/otx2_cpt_common.h | 36 .../marvell/octeontx2/otx2_cpt_reqmgr.h | 51 ++ drivers

[PATCH v8,net-next,10/12] crypto: octeontx2: add virtual function driver support

2020-10-19 Thread Srujana Challa
Add support for the Marvell OcteonTX2 CPT virtual function driver. This patch includes probe, PCI specific initialization and interrupt handling. Signed-off-by: Suheil Chandran Signed-off-by: Srujana Challa --- drivers/crypto/marvell/octeontx2/Makefile | 4 +- .../marvell/octeontx2

[PATCH v8,net-next,07/12] crypto: octeontx2: load microcode and create engine groups

2020-10-19 Thread Srujana Challa
AEs), and configures all engines. Signed-off-by: Suheil Chandran Signed-off-by: Srujana Challa --- drivers/crypto/marvell/octeontx2/Makefile |2 +- .../marvell/octeontx2/otx2_cpt_common.h | 42 + .../marvell/octeontx2/otx2_cpt_mbox_common.c | 77 + drivers/crypto/marvell

[PATCH v8,net-next,11/12] crypto: octeontx2: add support to process the crypto request

2020-10-19 Thread Srujana Challa
Attach LFs to CPT VF to process the crypto requests and register LF interrupts. Signed-off-by: Suheil Chandran Signed-off-by: Srujana Challa --- drivers/crypto/marvell/octeontx2/Makefile | 2 +- .../marvell/octeontx2/otx2_cpt_common.h | 3 + .../marvell/octeontx2

[PATCH v8,net-next,08/12] crypto: octeontx2: add LF framework

2020-10-19 Thread Srujana Challa
CPT RVU Local Functions(LFs) needs to be attached to the PF/VF to submit the instructions to CPT. This patch adds the interface to initialize and attach the LFs. It also adds interface to register the LF's interrupts. Signed-off-by: Suheil Chandran Signed-off-by: Srujana Challa --- dr

[PATCH v8,net-next,06/12] crypto: octeontx2: enable SR-IOV and mailbox communication with VF

2020-10-19 Thread Srujana Challa
adds support for this 'VF <=> PF <=> AF' mailbox communication. Signed-off-by: Suheil Chandran Signed-off-by: Srujana Challa --- .../marvell/octeontx2/otx2_cpt_common.h | 1 + drivers/crypto/marvell/octeontx2/otx2_cptpf.h | 19 ++ .../marvell/o

[PATCH v8,net-next,12/12] crypto: octeontx2: register with linux crypto framework

2020-10-19 Thread Srujana Challa
)), authenc(hmac(sha512),ecb(cipher_null)), rfc4106(gcm(aes)). Signed-off-by: Suheil Chandran Signed-off-by: Srujana Challa --- drivers/crypto/marvell/Kconfig|4 + drivers/crypto/marvell/octeontx2/Makefile |3 +- .../marvell/octeontx2/otx2_cpt_reqmgr.h |1

[PATCH v8,net-next,12/12] crypto: octeontx2: register with linux crypto framework

2020-10-28 Thread Srujana Challa
)), authenc(hmac(sha512),ecb(cipher_null)), rfc4106(gcm(aes)). Signed-off-by: Suheil Chandran Signed-off-by: Srujana Challa --- drivers/crypto/marvell/Kconfig|4 + drivers/crypto/marvell/octeontx2/Makefile |3 +- .../marvell/octeontx2/otx2_cpt_reqmgr.h |1

[PATCH v8,net-next,06/12] crypto: octeontx2: enable SR-IOV and mailbox communication with VF

2020-10-28 Thread Srujana Challa
adds support for this 'VF <=> PF <=> AF' mailbox communication. Signed-off-by: Suheil Chandran Signed-off-by: Srujana Challa --- .../marvell/octeontx2/otx2_cpt_common.h | 1 + drivers/crypto/marvell/octeontx2/otx2_cptpf.h | 19 ++ .../marvell/o

[PATCH v8,net-next,11/12] crypto: octeontx2: add support to process the crypto request

2020-10-28 Thread Srujana Challa
Attach LFs to CPT VF to process the crypto requests and register LF interrupts. Signed-off-by: Suheil Chandran Signed-off-by: Srujana Challa --- drivers/crypto/marvell/octeontx2/Makefile | 2 +- .../marvell/octeontx2/otx2_cpt_common.h | 3 + .../marvell/octeontx2

[PATCH v8,net-next,04/12] drivers: crypto: add Marvell OcteonTX2 CPT PF driver

2020-10-28 Thread Srujana Challa
. Signed-off-by: Suheil Chandran Signed-off-by: Srujana Challa --- drivers/crypto/marvell/Kconfig| 10 + drivers/crypto/marvell/Makefile | 1 + drivers/crypto/marvell/octeontx2/Makefile | 6 + .../marvell/octeontx2/otx2_cpt_common.h | 32

[PATCH v8,net-next,09/12] crypto: octeontx2: add support to get engine capabilities

2020-10-28 Thread Srujana Challa
Adds support to get engine capabilities and adds a new mailbox to share capabilities with VF driver. Signed-off-by: Suheil Chandran Signed-off-by: Srujana Challa --- .../marvell/octeontx2/otx2_cpt_common.h | 36 .../marvell/octeontx2/otx2_cpt_reqmgr.h | 51 ++ drivers

[PATCH v8,net-next,00/12] Add Support for Marvell OcteonTX2

2020-10-28 Thread Srujana Challa
ion. Changes since v2: * Fixed C=1 warnings. * Added code to exit CPT VF driver gracefully. * Moved OcteonTx2 asm code to a header file under include/linux/soc/ Changes since v1: * Moved Makefile changes from patch4 to patch2 and patch3. Srujana Challa (12): octeontx2-pf: move lmt flush to i

[PATCH v8,net-next,07/12] crypto: octeontx2: load microcode and create engine groups

2020-10-28 Thread Srujana Challa
AEs), and configures all engines. Signed-off-by: Suheil Chandran Signed-off-by: Srujana Challa --- drivers/crypto/marvell/octeontx2/Makefile |2 +- .../marvell/octeontx2/otx2_cpt_common.h | 42 + .../marvell/octeontx2/otx2_cpt_mbox_common.c | 77 + drivers/crypto/marvell

  1   2   >