Skip to content

Add Support for Marvell OcteonTX2 CPT engine

Srujana Challa linux-crypto 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest9 patches 1 replyIn review
  2. v19 patches 1 replySuperseded

Changes in v2 from the cover letter

* Resolved compilation warning.

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/9drivers: crypto: add Marvell OcteonTX2 CPT PF driverdrivers/crypto/marvell/Kconfig drivers/crypto/marvell/Makefile drivers/crypto/marvell/octeontx2/Makefile +4 more+633 -00 replies
2/9crypto: octeontx2: add mailbox communication with AFdrivers/crypto/marvell/octeontx2/Makefile drivers/crypto/marvell/octeontx2/otx2_cpt_common.h drivers/crypto/marvell/octeontx2/otx2_cpt_mbox_common.c +3 more+236 -20 replies
3/9crypto: octeontx2: enable SR-IOV and mailbox communication with VFdrivers/crypto/marvell/octeontx2/otx2_cpt_common.h drivers/crypto/marvell/octeontx2/otx2_cptpf.h drivers/crypto/marvell/octeontx2/otx2_cptpf_main.c +1 more+583 -20 replies
4/9crypto: octeontx2: load microcode and create engine groupsdrivers/crypto/marvell/octeontx2/Makefile drivers/crypto/marvell/octeontx2/otx2_cpt_common.h drivers/crypto/marvell/octeontx2/otx2_cpt_mbox_common.c +5 more+1655 -20 replies
5/9crypto: octeontx2: add LF frameworkdrivers/crypto/marvell/octeontx2/Makefile drivers/crypto/marvell/octeontx2/otx2_cpt_common.h drivers/crypto/marvell/octeontx2/otx2_cpt_mbox_common.c +4 more+783 -10 replies
6/9crypto: octeontx2: add support to get engine capabilitiesdrivers/crypto/marvell/octeontx2/otx2_cpt_common.h drivers/crypto/marvell/octeontx2/otx2_cpt_reqmgr.h drivers/crypto/marvell/octeontx2/otx2_cptlf.h +5 more+350 -00 replies
7/9crypto: octeontx2: add virtual function driver supportdrivers/crypto/marvell/octeontx2/Makefile drivers/crypto/marvell/octeontx2/otx2_cpt_common.h drivers/crypto/marvell/octeontx2/otx2_cpt_mbox_common.c +3 more+373 -10 replies
8/9crypto: octeontx2: add support to process the crypto requestdrivers/crypto/marvell/octeontx2/Makefile drivers/crypto/marvell/octeontx2/otx2_cpt_common.h drivers/crypto/marvell/octeontx2/otx2_cpt_reqmgr.h +8 more+1034 -10 replies
9/9crypto: octeontx2: register with linux crypto frameworkdrivers/crypto/marvell/Kconfig drivers/crypto/marvell/octeontx2/Makefile drivers/crypto/marvell/octeontx2/otx2_cpt_reqmgr.h +4 more+1961 -20 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 0/9] Add Support for Marvell OcteonTX2 CPT engine

This series introduces crypto(CPT) drivers(PF & VF) for Marvell OcteonTX2 CN96XX Soc.

OcteonTX2 SOC's resource virtualization unit (RVU) supports multiple physical and virtual functions. Each of the PF/VF's functionality is determined by what kind of resources are attached to it. When the CPT block is attached to a VF, it can function as a security device.

The CPT PF driver is responsible for:
- Forwarding messages to/from VFs from/to admin function(AF),
- Enabling/disabling VFs,
- Loading/unloading microcode (creation/deletion of engine groups).

The CPT VF driver works as a crypto offload device.

This patch series includes:
- CPT PF driver patches that include AF<=>PF<=>VF mailbox communication, sriov_configure, and firmware load to the acceleration engines.
- CPT VF driver patches that include VF<=>PF mailbox communication and crypto offload support through the kernel cryptographic API.

This series is tested with CRYPTO_EXTRA_TESTS enabled and CRYPTO_DISABLE_TESTS disabled.

Changes since v1:
* Resolved compilation warning.

Srujana Challa (9):
drivers: crypto: add Marvell OcteonTX2 CPT PF driver
crypto: octeontx2: add mailbox communication with AF
crypto: octeontx2: enable SR-IOV and mailbox communication with VF
crypto: octeontx2: load microcode and create engine groups
crypto: octeontx2: add LF framework
crypto: octeontx2: add support to get engine capabilities
crypto: octeontx2: add virtual function driver support
crypto: octeontx2: add support to process the crypto request
crypto: octeontx2: register with linux crypto framework

 drivers/crypto/marvell/Kconfig                |   14 +
 drivers/crypto/marvell/Makefile               |    1 +
 drivers/crypto/marvell/octeontx2/Makefile     |   10 +
 .../marvell/octeontx2/otx2_cpt_common.h       |  137 ++
 .../marvell/octeontx2/otx2_cpt_hw_types.h     |  464 +++++
 .../marvell/octeontx2/otx2_cpt_mbox_common.c  |  202 ++
 .../marvell/octeontx2/otx2_cpt_reqmgr.h       |  197 ++
 drivers/crypto/marvell/octeontx2/otx2_cptlf.c |  429 ++++
 drivers/crypto/marvell/octeontx2/otx2_cptlf.h |  353 ++++
 drivers/crypto/marvell/octeontx2/otx2_cptpf.h |   61 +
 .../marvell/octeontx2/otx2_cptpf_main.c       |  713 +++++++
 .../marvell/octeontx2/otx2_cptpf_mbox.c       |  356 ++++
 .../marvell/octeontx2/otx2_cptpf_ucode.c      | 1415 +++++++++++++
 .../marvell/octeontx2/otx2_cptpf_ucode.h      |  162 ++
 drivers/crypto/marvell/octeontx2/otx2_cptvf.h |   29 +
 .../marvell/octeontx2/otx2_cptvf_algs.c       | 1758 +++++++++++++++++
 .../marvell/octeontx2/otx2_cptvf_algs.h       |  178 ++
 .../marvell/octeontx2/otx2_cptvf_main.c       |  410 ++++
 .../marvell/octeontx2/otx2_cptvf_mbox.c       |  167 ++
 .../marvell/octeontx2/otx2_cptvf_reqmgr.c     |  541 +++++
 20 files changed, 7597 insertions(+)
 create mode 100644 drivers/crypto/marvell/octeontx2/Makefile
 create mode 100644 drivers/crypto/marvell/octeontx2/otx2_cpt_common.h
 create mode 100644 drivers/crypto/marvell/octeontx2/otx2_cpt_hw_types.h
 create mode 100644 drivers/crypto/marvell/octeontx2/otx2_cpt_mbox_common.c
 create mode 100644 drivers/crypto/marvell/octeontx2/otx2_cpt_reqmgr.h
 create mode 100644 drivers/crypto/marvell/octeontx2/otx2_cptlf.c
 create mode 100644 drivers/crypto/marvell/octeontx2/otx2_cptlf.h
 create mode 100644 drivers/crypto/marvell/octeontx2/otx2_cptpf.h
 create mode 100644 drivers/crypto/marvell/octeontx2/otx2_cptpf_main.c
 create mode 100644 drivers/crypto/marvell/octeontx2/otx2_cptpf_mbox.c
 create mode 100644 drivers/crypto/marvell/octeontx2/otx2_cptpf_ucode.c
 create mode 100644 drivers/crypto/marvell/octeontx2/otx2_cptpf_ucode.h
 create mode 100644 drivers/crypto/marvell/octeontx2/otx2_cptvf.h
 create mode 100644 drivers/crypto/marvell/octeontx2/otx2_cptvf_algs.c
 create mode 100644 drivers/crypto/marvell/octeontx2/otx2_cptvf_algs.h
 create mode 100644 drivers/crypto/marvell/octeontx2/otx2_cptvf_main.c
 create mode 100644 drivers/crypto/marvell/octeontx2/otx2_cptvf_mbox.c
 create mode 100644 drivers/crypto/marvell/octeontx2/otx2_cptvf_reqmgr.c
Signature · 1 line
2.29.0