Add Support for Marvell OcteonTX2 Cryptographic
Subsystems (5)
Srujana Challa
maintainercover Add Support for Marvell OcteonTX2 Cryptographic
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 support for OCTEONTX2 CPT engine
drivers: crypto: add the Virtual Function driver for OcteonTX2 CPT
crypto: marvell: enable OcteonTX2 cpt options for build
drivers/crypto/marvell/Kconfig | 17 + drivers/crypto/marvell/Makefile | 1 + drivers/crypto/marvell/octeontx2/Makefile | 14 + drivers/crypto/marvell/octeontx2/otx2_cpt_common.h | 53 + .../crypto/marvell/octeontx2/otx2_cpt_hw_types.h | 572 ++++++ .../marvell/octeontx2/otx2_cpt_mbox_common.c | 286 +++ .../marvell/octeontx2/otx2_cpt_mbox_common.h | 100 + drivers/crypto/marvell/octeontx2/otx2_cpt_reqmgr.h | 202 ++ drivers/crypto/marvell/octeontx2/otx2_cptlf.h | 370 ++++ drivers/crypto/marvell/octeontx2/otx2_cptlf_main.c | 964 +++++++++ drivers/crypto/marvell/octeontx2/otx2_cptpf.h | 79 + drivers/crypto/marvell/octeontx2/otx2_cptpf_main.c | 599 ++++++ drivers/crypto/marvell/octeontx2/otx2_cptpf_mbox.c | 694 +++++++ .../crypto/marvell/octeontx2/otx2_cptpf_ucode.c | 2173 ++++++++++++++++++++ .../crypto/marvell/octeontx2/otx2_cptpf_ucode.h | 180 ++ drivers/crypto/marvell/octeontx2/otx2_cptvf.h | 29 + drivers/crypto/marvell/octeontx2/otx2_cptvf_algs.c | 1708 +++++++++++++++ drivers/crypto/marvell/octeontx2/otx2_cptvf_algs.h | 172 ++ drivers/crypto/marvell/octeontx2/otx2_cptvf_main.c | 229 +++ drivers/crypto/marvell/octeontx2/otx2_cptvf_mbox.c | 189 ++ .../crypto/marvell/octeontx2/otx2_cptvf_reqmgr.c | 543 +++++ drivers/net/ethernet/marvell/octeontx2/af/Makefile | 2 +- drivers/net/ethernet/marvell/octeontx2/af/mbox.h | 85 + drivers/net/ethernet/marvell/octeontx2/af/rvu.c | 2 +- drivers/net/ethernet/marvell/octeontx2/af/rvu.h | 7 + .../net/ethernet/marvell/octeontx2/af/rvu_cpt.c | 343 +++ .../ethernet/marvell/octeontx2/af/rvu_debugfs.c | 342 +++ .../net/ethernet/marvell/octeontx2/af/rvu_nix.c | 76 + .../net/ethernet/marvell/octeontx2/af/rvu_reg.h | 65 +- 29 files changed, 10088 insertions(+), 8 deletions(-) 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_mbox_common.h create mode 100644 drivers/crypto/marvell/octeontx2/otx2_cpt_reqmgr.h create mode 100644 drivers/crypto/marvell/octeontx2/otx2_cptlf.h create mode 100644 drivers/crypto/marvell/octeontx2/otx2_cptlf_main.c 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 create mode 100644 drivers/net/ethernet/marvell/octeontx2/af/rvu_cpt.c
Signature · 1 line
1.9.1
Srujana Challa
maintainerPATCH 1/4 octeontx2-af: add support to manage the CPT unit
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.
--- drivers/net/ethernet/marvell/octeontx2/af/Makefile | 2 +- drivers/net/ethernet/marvell/octeontx2/af/mbox.h | 85 +++++ drivers/net/ethernet/marvell/octeontx2/af/rvu.c | 2 +- drivers/net/ethernet/marvell/octeontx2/af/rvu.h | 7 + .../net/ethernet/marvell/octeontx2/af/rvu_cpt.c | 343 +++++++++++++++++++++ .../ethernet/marvell/octeontx2/af/rvu_debugfs.c | 342 ++++++++++++++++++++ .../net/ethernet/marvell/octeontx2/af/rvu_nix.c | 76 +++++ .../net/ethernet/marvell/octeontx2/af/rvu_reg.h | 65 +++- 8 files changed, 914 insertions(+), 8 deletions(-) create mode 100644 drivers/net/ethernet/marvell/octeontx2/af/rvu_cpt.c
drivers/net/ethernet/marvell/octeontx2/af/Makefile +1 -1
@@ -8,4 +8,4 @@ obj-$(CONFIG_OCTEONTX2_AF) += octeontx2_af.o octeontx2_mbox-y := mbox.o octeontx2_af-y := cgx.o rvu.o rvu_cgx.o rvu_npa.o rvu_nix.o \ - rvu_reg.o rvu_npc.o rvu_debugfs.o + rvu_reg.o rvu_npc.o rvu_debugfs.o rvu_cpt.o
drivers/net/ethernet/marvell/octeontx2/af/mbox.h +85 -0
107 lines not on this page · raw message
drivers/net/ethernet/marvell/octeontx2/af/rvu.c +1 -1
@@ -1022,7 +1022,7 @@ int rvu_mbox_handler_ready(struct rvu *rvu, struct msg_req *req,/* Get current count of a RVU block's LF/slots * provisioned to a given RVU func. */ -static u16 rvu_get_rsrc_mapcount (struct rvu_pfvf *pfvf,int blktype) +u16 rvu_get_rsrc_mapcount (struct rvu_pfvf *pfvf,int blktype) {switch (blktype) {case BLKTYPE_NPA :
drivers/net/ethernet/marvell/octeontx2/af/rvu.h +7 -0
@@ -42,6 +42,10 @@ struct dump_ctx {bool all; }; +struct cpt_dump_ctx { +char e_type[NAME_SIZE ]; +}; +struct rvu_debugfs {struct dentry *root;struct dentry *cgx_root;
@@ -50,11 +54,13 @@ struct rvu_debugfs {struct dentry *npa;struct dentry *nix;struct dentry *npc; +struct dentry *cpt;struct dump_ctx npa_aura_ctx;struct dump_ctx npa_pool_ctx;struct dump_ctx nix_cq_ctx;struct dump_ctx nix_rq_ctx;struct dump_ctx nix_sq_ctx; +struct cpt_dump_ctx cpt_ctx;int npa_qsize_id;int nix_qsize_id; };
@@ -408,6 +414,7 @@ static inline bool is_rvu_fwdata_valid(struct rvu *rvu)int rvu_lf_reset (struct rvu *rvu,struct rvu_block *block,int lf);int rvu_get_blkaddr (struct rvu *rvu,int blktype,u16 pcifunc);int rvu_poll_reg (struct rvu *rvu,u64 block,u64 offset,u64 mask,bool zero); +u16 rvu_get_rsrc_mapcount (struct rvu_pfvf *pfvf,int blktype);/* RVU HW reg validation */ enum regmap_block {
drivers/net/ethernet/marvell/octeontx2/af/rvu_cpt.c new file +343 -0
343 lines not on this page · raw message
drivers/net/ethernet/marvell/octeontx2/af/rvu_debugfs.c +342 -0
354 lines not on this page · raw message
drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c +76 -0
79 lines not on this page · raw message
drivers/net/ethernet/marvell/octeontx2/af/rvu_reg.h +59 -6
77 lines not on this page · raw message
Signature · 1 line
1.9.1
Srujana Challa
maintainerPATCH 4/4 crypto: marvell: enable OcteonTX2 cpt options for build
In reply to Srujana ChallaAdd OcteonTX2 cpt options in crypto Kconfig and Makefile
--- drivers/crypto/marvell/Kconfig | 17 +++++++++++++++++ drivers/crypto/marvell/Makefile | 1 + drivers/crypto/marvell/octeontx2/Makefile | 14 ++++++++++++++ 3 files changed, 32 insertions(+) create mode 100644 drivers/crypto/marvell/octeontx2/Makefile
drivers/crypto/marvell/Kconfig +17 -0
@@ -35,3 +35,20 @@ config CRYPTO_DEV_OCTEONTX_CPT To compile this driver as module, choose M here: the modules will be called octeontx-cpt and octeontx-cptvf + +config CRYPTO_DEV_OCTEONTX2_CPT + tristate "Support for Marvell OcteonTX2 CPT driver" + depends on ARCH_THUNDER || COMPILE_TEST + depends on PCI_MSI && 64BIT + depends on CRYPTO_LIB_AES + select OCTEONTX2_MBOX + select CRYPTO_SKCIPHER + select CRYPTO_HASH + select CRYPTO_AEAD + select CRYPTO_DEV_MARVELL + help + This driver allows you to utilize the Marvell Cryptographic + Accelerator Unit(CPT) found in OcteonTX2 series of processors. + + To compile this driver as module, choose M here: + the modules will be called octeontx2-cpt and octeontx2-cptvf
drivers/crypto/marvell/Makefile +1 -0
@@ -2,3 +2,4 @@ obj-$(CONFIG_CRYPTO_DEV_MARVELL_CESA) += cesa/ obj-$(CONFIG_CRYPTO_DEV_OCTEONTX_CPT) += octeontx/ +obj-$(CONFIG_CRYPTO_DEV_OCTEONTX2_CPT) += octeontx2/
drivers/crypto/marvell/octeontx2/Makefile new file +14 -0
@@ -0,0 +1,14 @@ +# SPDX-License-Identifier: GPL-2.0-only +obj-$(CONFIG_CRYPTO_DEV_OCTEONTX2_CPT) += octeontx2-cpt.o octeontx2-cptvf.o + +common-objs := otx2_cpt_mbox_common.o +octeontx2-cpt-objs := otx2_cptpf_main.o otx2_cptpf_mbox.o otx2_cptpf_ucode.o \ + ${common-objs} +octeontx2-cptvf-objs := otx2_cptvf_main.o otx2_cptvf_mbox.o otx2_cptlf_main.o \ + otx2_cptvf_reqmgr.o otx2_cptvf_algs.o + +ifeq ($(CONFIG_CRYPTO_DEV_OCTEONTX2_CPT), m) + octeontx2-cptvf-objs += ${common-objs} +endif + +ccflags-y += -I$(src)/../../../net/ethernet/marvell/octeontx2/af/
Signature · 1 line
1.9.1
Srujana Challa
maintainerPATCH 2/4 drivers: crypto: add support for OCTEONTX2 CPT engine
In reply to Srujana ChallaAdd support for the cryptographic acceleration unit (CPT) on OcteonTX2 CN96XX SoC.
--- 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 | 286 +++ .../marvell/octeontx2/otx2_cpt_mbox_common.h | 100 + drivers/crypto/marvell/octeontx2/otx2_cpt_reqmgr.h | 81 + drivers/crypto/marvell/octeontx2/otx2_cptlf.h | 365 ++++ drivers/crypto/marvell/octeontx2/otx2_cptpf.h | 79 + drivers/crypto/marvell/octeontx2/otx2_cptpf_main.c | 599 ++++++ drivers/crypto/marvell/octeontx2/otx2_cptpf_mbox.c | 694 +++++++ .../crypto/marvell/octeontx2/otx2_cptpf_ucode.c | 2173 ++++++++++++++++++++ .../crypto/marvell/octeontx2/otx2_cptpf_ucode.h | 180 ++ drivers/crypto/marvell/octeontx2/otx2_cptvf.h | 24 + 12 files changed, 5201 insertions(+) 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_mbox_common.h create mode 100644 drivers/crypto/marvell/octeontx2/otx2_cpt_reqmgr.h 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
drivers/crypto/marvell/octeontx2/otx2_cpt_common.h new file +53 -0
@@ -0,0 +1,53 @@ +/* SPDX-License-Identifier: GPL-2.0-only +* Copyright (C) 2020 Marvell. +*/ + +#ifndef __OTX2_CPT_COMMON_H +#define __OTX2_CPT_COMMON_H + +#include <linux/pci.h> +#include <linux/types.h> +#include <linux/module.h> +#include <linux/delay.h> +#include <linux/crypto.h> +#include "otx2_cpt_hw_types.h" +#include "rvu.h" + +#define OTX2_CPT_MAX_VFS_NUM 128 +#define OTX2_CPT_MAX_LFS_NUM 64 + +#define OTX2_CPT_RVU_PFFUNC (pf, func) \ + ((((pf) & RVU_PFVF_PF_MASK) << RVU_PFVF_PF_SHIFT) | \ + (((func) & RVU_PFVF_FUNC_MASK) << RVU_PFVF_FUNC_SHIFT)) + +#define OTX2_CPT_RVU_FUNC_ADDR_S (blk, slot, offs) \ + (((blk) << 20) | ((slot) << 12) | (offs)) + +#define OTX2_CPT_DMA_MINALIGN 128 +#define OTX2_CPT_INVALID_CRYPTO_ENG_GRP 0xFF + +#define OTX2_CPT_NAME_LENGTH 64 + +#define BAD_OTX2_CPT_ENG_TYPE OTX2_CPT_MAX_ENG_TYPES + +enum otx2_cpt_eng_type { +OTX2_CPT_AE_TYPES =1 , +OTX2_CPT_SE_TYPES =2 , +OTX2_CPT_IE_TYPES =3 , +OTX2_CPT_MAX_ENG_TYPES , +}; + +static inline void otx2_cpt_write64 (void __iomem *reg_base,u64 blk,u64 slot, +u64 offs,u64 val) +{ +writeq_relaxed (val, reg_base + +OTX2_CPT_RVU_FUNC_ADDR_S (blk, slot, offs)); +} + +static inline u64 otx2_cpt_read64 (void __iomem *reg_base,u64 blk,u64 slot, +u64 offs) +{ +return readq_relaxed (reg_base + +OTX2_CPT_RVU_FUNC_ADDR_S (blk, slot, offs)); +} +#endif /* __OTX2_CPT_COMMON_H */
drivers/crypto/marvell/octeontx2/otx2_cpt_hw_types.h new file +567 -0
567 lines not on this page · raw message
drivers/crypto/marvell/octeontx2/otx2_cpt_mbox_common.c new file +286 -0
286 lines not on this page · raw message
drivers/crypto/marvell/octeontx2/otx2_cpt_mbox_common.h new file +100 -0
100 lines not on this page · raw message
drivers/crypto/marvell/octeontx2/otx2_cpt_reqmgr.h new file +81 -0
81 lines not on this page · raw message
drivers/crypto/marvell/octeontx2/otx2_cptlf.h new file +365 -0
365 lines not on this page · raw message
drivers/crypto/marvell/octeontx2/otx2_cptpf.h new file +79 -0
79 lines not on this page · raw message
drivers/crypto/marvell/octeontx2/otx2_cptpf_main.c new file +599 -0
599 lines not on this page · raw message
drivers/crypto/marvell/octeontx2/otx2_cptpf_mbox.c new file +694 -0
694 lines not on this page · raw message
drivers/crypto/marvell/octeontx2/otx2_cptpf_ucode.c new file +2173 -0
176 lines not on this page · raw message
drivers/crypto/marvell/octeontx2/otx2_cptpf_ucode.h new file +180 -0
180 lines not on this page · raw message
drivers/crypto/marvell/octeontx2/otx2_cptvf.h new file +24 -0
Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
Signature · 1 line
1.9.1
Part of the diff is not shown here. View the raw message.
Srujana Challa
maintainerPATCH 3/4 drivers: crypto: add the Virtual Function driver for OcteonTX2 CPT
In reply to Srujana ChallaAdd support for the cryptographic accelerator unit virtual functions on OcteonTX2 96XX SoC.
--- .../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 | 5 + drivers/crypto/marvell/octeontx2/otx2_cptlf_main.c | 964 +++++++++++ drivers/crypto/marvell/octeontx2/otx2_cptvf.h | 5 + drivers/crypto/marvell/octeontx2/otx2_cptvf_algs.c | 1708 ++++++++++++++++++++ drivers/crypto/marvell/octeontx2/otx2_cptvf_algs.h | 172 ++ drivers/crypto/marvell/octeontx2/otx2_cptvf_main.c | 229 +++ drivers/crypto/marvell/octeontx2/otx2_cptvf_mbox.c | 189 +++ .../crypto/marvell/octeontx2/otx2_cptvf_reqmgr.c | 536 ++++++ 10 files changed, 3934 insertions(+) create mode 100644 drivers/crypto/marvell/octeontx2/otx2_cptlf_main.c 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
drivers/crypto/marvell/octeontx2/otx2_cpt_hw_types.h +5 -0
@@ -104,6 +104,11 @@#define OTX2_CPT_LMT_LFBASE BIT_ULL(OTX2_CPT_RVU_FUNC_BLKADDR_SHIFT)#define OTX2_CPT_LMT_LF_LMTLINEX (a) (OTX2_CPT_LMT_LFBASE | 0x000 | \ (a) << 12) +/* RVU VF registers */ +#define OTX2_RVU_VF_INT (0x20) +#define OTX2_RVU_VF_INT_W1S (0x28) +#define OTX2_RVU_VF_INT_ENA_W1S (0x30) +#define OTX2_RVU_VF_INT_ENA_W1C (0x38)/* * Enumeration otx2_cpt_ucode_error_code_e
drivers/crypto/marvell/octeontx2/otx2_cpt_reqmgr.h +121 -0
131 lines not on this page · raw message
drivers/crypto/marvell/octeontx2/otx2_cptlf.h +5 -0
@@ -362,4 +362,9 @@ static inline void otx2_cpt_send_cmd(union otx2_cpt_inst_s *cptinst, } while (!ret); } + +int otx2_cptvf_lf_init (struct pci_dev *pdev,void *reg_base, +struct otx2_cptlfs_info *lfs,int lfs_num); +int otx2_cptvf_lf_shutdown (struct pci_dev *pdev,struct otx2_cptlfs_info *lfs); +#endif /* __OTX2_CPTLF_H */
drivers/crypto/marvell/octeontx2/otx2_cptlf_main.c new file +964 -0
964 lines not on this page · raw message
drivers/crypto/marvell/octeontx2/otx2_cptvf.h +5 -0
@@ -21,4 +21,9 @@ struct otx2_cptvf_dev { struct workqueue_struct *pfvf_mbox_wq; }; +irqreturn_t otx2_cptvf_pfvf_mbox_intr (int irq,void *arg); +void otx2_cptvf_pfvf_mbox_handler (struct work_struct *work); +int otx2_cptvf_send_eng_grp_num_msg (struct otx2_cptvf_dev *cptvf,int eng_type); +int otx2_cptvf_send_kcrypto_limits_msg (struct otx2_cptvf_dev *cptvf); +#endif /* __OTX2_CPTVF_H */
drivers/crypto/marvell/octeontx2/otx2_cptvf_algs.c new file +1708 -0
1,708 lines not on this page · raw message
drivers/crypto/marvell/octeontx2/otx2_cptvf_algs.h new file +172 -0
168 lines not on this page · raw message
drivers/crypto/marvell/octeontx2/otx2_cptvf_main.c new file +229 -0
229 lines not on this page · raw message
drivers/crypto/marvell/octeontx2/otx2_cptvf_mbox.c new file +189 -0
189 lines not on this page · raw message
drivers/crypto/marvell/octeontx2/otx2_cptvf_reqmgr.c new file +536 -0
536 lines not on this page · raw message
The rest of this diff is not shown. View the raw message.
Signature · 1 line
1.9.1
Part of the diff is not shown here. View the raw message.
kernel test robot
build botRe: [PATCH 4/4] crypto: marvell: enable OcteonTX2 cpt options for build
In reply to Srujana ChallaI love your patch! Yet something to improve:
Hi Srujana,
I love your patch! Yet something to improve:
[auto build test ERROR on cryptodev/master]
[also build test ERROR on crypto/master sparc-next/master linus/master v5.8-rc6 next-20200724] [If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]
url: https://github.com/0day-ci/linux/commits/Srujana-Challa/Add-Support-for-Marvell-OcteonTX2-Cryptographic/20200724-211100 base: https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git master config: x86_64-allyesconfig (attached as .config) compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project 1d09ecf36175f7910ffedd6d497c07b5c74c22fb)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross
# install x86_64 cross compiling tool for clang build
# apt-get install binutils-x86-64-linux-gnu
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
All errors (new ones prefixed by >>):
In file included from drivers/crypto/marvell/octeontx2/otx2_cptpf_main.c:5:
In file included from drivers/crypto/marvell/octeontx2/otx2_cpt_mbox_common.h:8:
In file included from drivers/crypto/marvell/octeontx2/otx2_cptpf.h:8:
In file included from drivers/crypto/marvell/octeontx2/otx2_cptpf_ucode.h:12:
>> drivers/crypto/marvell/octeontx2/otx2_cpt_common.h:14:10: fatal error: 'rvu.h' file not found
#include "rvu.h"
^~~~~~~
1 error generated.
--
In file included from drivers/crypto/marvell/octeontx2/otx2_cptvf_reqmgr.c:4:
>> drivers/crypto/marvell/octeontx2/otx2_cptvf.h:8:10: fatal error: 'mbox.h' file not found
#include "mbox.h"
^~~~~~~~1 error generated.
vim +14 drivers/crypto/marvell/octeontx2/otx2_cpt_common.h
9b59f386596e8e1 Srujana Challa 2020-07-24 7 9b59f386596e8e1 Srujana Challa 2020-07-24 8 #include <linux/pci.h> 9b59f386596e8e1 Srujana Challa 2020-07-24 9 #include <linux/types.h> 9b59f386596e8e1 Srujana Challa 2020-07-24 10 #include <linux/module.h> 9b59f386596e8e1 Srujana Challa 2020-07-24 11 #include <linux/delay.h> 9b59f386596e8e1 Srujana Challa 2020-07-24 12 #include <linux/crypto.h> 9b59f386596e8e1 Srujana Challa 2020-07-24 13 #include "otx2_cpt_hw_types.h" 9b59f386596e8e1 Srujana Challa 2020-07-24 @14 #include "rvu.h"
9b59f386596e8e1 Srujana Challa 2020-07-24 15
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
kernel test robot
build botRe: [PATCH 4/4] crypto: marvell: enable OcteonTX2 cpt options for build
In reply to Srujana ChallaI love your patch! Yet something to improve:
Hi Srujana,
I love your patch! Yet something to improve:
[auto build test ERROR on cryptodev/master]
[also build test ERROR on crypto/master sparc-next/master linus/master v5.8-rc6 next-20200724] [If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]
url: https://github.com/0day-ci/linux/commits/Srujana-Challa/Add-Support-for-Marvell-OcteonTX2-Cryptographic/20200724-211100 base: https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git master config: ia64-allmodconfig (attached as .config) compiler: ia64-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=ia64
If you fix the issue, kindly add following tag as appropriate
All errors (new ones prefixed by >>):
In file included from drivers/crypto/marvell/octeontx2/otx2_cptpf_ucode.h:12,
from drivers/crypto/marvell/octeontx2/otx2_cptpf.h:8, from drivers/crypto/marvell/octeontx2/otx2_cpt_mbox_common.h:8, from drivers/crypto/marvell/octeontx2/otx2_cptpf_main.c:5:
>> drivers/crypto/marvell/octeontx2/otx2_cpt_common.h:14:10: fatal error: rvu.h: No such file or directory
14 | #include "rvu.h"
| ^~~~~~~
compilation terminated.
--
In file included from drivers/crypto/marvell/octeontx2/otx2_cptvf_reqmgr.c:4:
>> drivers/crypto/marvell/octeontx2/otx2_cptvf.h:8:10: fatal error: mbox.h: No such file or directory
8 | #include "mbox.h"
| ^~~~~~~~compilation terminated.
vim +14 drivers/crypto/marvell/octeontx2/otx2_cpt_common.h
9b59f386596e8e Srujana Challa 2020-07-24 7 9b59f386596e8e Srujana Challa 2020-07-24 8 #include <linux/pci.h> 9b59f386596e8e Srujana Challa 2020-07-24 9 #include <linux/types.h> 9b59f386596e8e Srujana Challa 2020-07-24 10 #include <linux/module.h> 9b59f386596e8e Srujana Challa 2020-07-24 11 #include <linux/delay.h> 9b59f386596e8e Srujana Challa 2020-07-24 12 #include <linux/crypto.h> 9b59f386596e8e Srujana Challa 2020-07-24 13 #include "otx2_cpt_hw_types.h" 9b59f386596e8e Srujana Challa 2020-07-24 @14 #include "rvu.h"
9b59f386596e8e Srujana Challa 2020-07-24 15
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
David Miller
maintainerRe: [PATCH 2/4] drivers: crypto: add support for OCTEONTX2 CPT engine
In reply to Srujana ChallaFrom: Srujana Challa <[email protected]>
Date: Fri, 24 Jul 2020 18:38:02 +0530
Quoted 10 lines
drivers/crypto/marvell/octeontx2/otx2_cpt_common.h new file +4
-0@@ -0,0 +1,53 @@ +/* SPDX-License-Identifier: GPL-2.0-only +* Copyright (C) 2020 Marvell. +*/ +
drivers/crypto/marvell/octeontx2/otx2_cpt_common.h line 14
Quoted 10 lines
drivers/crypto/marvell/octeontx2/otx2_cpt_common.h new file +10
-0+#ifndef __OTX2_CPT_COMMON_H +#define __OTX2_CPT_COMMON_H + +#include <linux/pci.h> +#include <linux/types.h> +#include <linux/module.h> +#include <linux/delay.h> +#include <linux/crypto.h> +#include "otx2_cpt_hw_types.h" +#include "rvu.h"
How can this build? "rvu.h" is in the "af/" subdirectory.
Hi Srujana,
Quoted 54 lines · Srujana Challa
The following series adds support for Marvell Cryptographic Acceleration Unit(CPT) on OcteonTX2 CN96XX SoC.
This series is tested withCRYPTO_EXTRA_TESTSenabled andCRYPTO_DISABLE_TESTSdisabled.Srujana Challa (4):
octeontx2-af: add support to manage the CPT unit
drivers: crypto: add support for OCTEONTX2 CPT engine
drivers: crypto: add the Virtual Function driver for OcteonTX2 CPT
crypto: marvell: enable OcteonTX2 cpt options for builddrivers/crypto/marvell/Kconfig | 17 + drivers/crypto/marvell/Makefile | 1 + drivers/crypto/marvell/octeontx2/Makefile | 14 + drivers/crypto/marvell/octeontx2/otx2_cpt_common.h | 53 + .../crypto/marvell/octeontx2/otx2_cpt_hw_types.h | 572 ++++++ .../marvell/octeontx2/otx2_cpt_mbox_common.c | 286 +++ .../marvell/octeontx2/otx2_cpt_mbox_common.h | 100 + drivers/crypto/marvell/octeontx2/otx2_cpt_reqmgr.h | 202 ++ drivers/crypto/marvell/octeontx2/otx2_cptlf.h | 370 ++++ drivers/crypto/marvell/octeontx2/otx2_cptlf_main.c | 964 +++++++++ drivers/crypto/marvell/octeontx2/otx2_cptpf.h | 79 + drivers/crypto/marvell/octeontx2/otx2_cptpf_main.c | 599 ++++++ drivers/crypto/marvell/octeontx2/otx2_cptpf_mbox.c | 694 +++++++ .../crypto/marvell/octeontx2/otx2_cptpf_ucode.c | 2173 ++++++++++++++++++++ .../crypto/marvell/octeontx2/otx2_cptpf_ucode.h | 180 ++ drivers/crypto/marvell/octeontx2/otx2_cptvf.h | 29 + drivers/crypto/marvell/octeontx2/otx2_cptvf_algs.c | 1708 +++++++++++++++ drivers/crypto/marvell/octeontx2/otx2_cptvf_algs.h | 172 ++ drivers/crypto/marvell/octeontx2/otx2_cptvf_main.c | 229 +++ drivers/crypto/marvell/octeontx2/otx2_cptvf_mbox.c | 189 ++ .../crypto/marvell/octeontx2/otx2_cptvf_reqmgr.c | 543 +++++ drivers/net/ethernet/marvell/octeontx2/af/Makefile | 2 +- drivers/net/ethernet/marvell/octeontx2/af/mbox.h | 85 + drivers/net/ethernet/marvell/octeontx2/af/rvu.c | 2 +- drivers/net/ethernet/marvell/octeontx2/af/rvu.h | 7 + .../net/ethernet/marvell/octeontx2/af/rvu_cpt.c | 343 +++ .../ethernet/marvell/octeontx2/af/rvu_debugfs.c | 342 +++ .../net/ethernet/marvell/octeontx2/af/rvu_nix.c | 76 + .../net/ethernet/marvell/octeontx2/af/rvu_reg.h | 65 +- 29 files changed, 10088 insertions(+), 8 deletions(-) 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_mbox_common.h create mode 100644 drivers/crypto/marvell/octeontx2/otx2_cpt_reqmgr.h create mode 100644 drivers/crypto/marvell/octeontx2/otx2_cptlf.h create mode 100644 drivers/crypto/marvell/octeontx2/otx2_cptlf_main.c 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
Quoted 8 lines
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 create mode 100644 drivers/net/ethernet/marvell/octeontx2/af/rvu_cpt.c
Please include everyone in./scripts/get_maintainer.pl drivers/net/ethernet/marvell/octeontx2/ or atleast./scripts/get_maintainer.pl drivers/net/ethernet/marvell/octeontx2/af/
Thanks,
Sundeep
Quoted 4 lines
--
1.9.1
Srujana Challa
maintainerRE: [PATCH 2/4] drivers: crypto: add support for OCTEONTX2 CPT engine
In reply to David MillerQuoted 29 lines
-----Original Message-----
From: [email protected] <linux-crypto- [email protected]> On Behalf Of David Miller
Sent: Saturday, July 25, 2020 8:45 AM
To: Srujana Challa <[email protected]>
Cc: [email protected]; [email protected]; linux- [email protected]; Suheil Chandran <[email protected]>; Narayana Prasad Raju Athreya <[email protected]>; Sunil Kovvuri Goutham <[email protected]>
Subject: Re: [PATCH 2/4] drivers: crypto: add support for OCTEONTX2 CPT engineFrom: Srujana Challa <[email protected]>
Date: Fri, 24 Jul 2020 18:38:02 +0530Review
Quoted 1 line
(quoted diff) +0
-0
b/drivers/crypto/marvell/octeontx2/otx2_cpt_common.hQuoted 13 lines
new file mode 100644
index 0000000..00cd534drivers/crypto/marvell/octeontx2/otx2_cpt_common.h new file +8
-0@@ -0,0 +1,53 @@ +/* SPDX-License-Identifier: GPL-2.0-only +* Copyright (C) 2020 Marvell. +*/ + +#ifndef __OTX2_CPT_COMMON_H +#define __OTX2_CPT_COMMON_H + +#include <linux/pci.h>
Quoted 8 lines
drivers/crypto/marvell/octeontx2/otx2_cpt_common.h line 14
Quoted 6 lines
drivers/crypto/marvell/octeontx2/otx2_cpt_common.h new file +6
-0+#include <linux/types.h> +#include <linux/module.h> +#include <linux/delay.h> +#include <linux/crypto.h> +#include "otx2_cpt_hw_types.h" +#include "rvu.h" How can this build? "
rvu.h" is in the "af/" subdirectory.
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).
David Miller
maintainerRe: [PATCH 2/4] drivers: crypto: add support for OCTEONTX2 CPT engine
From: Srujana Challa <[email protected]>
Date: Mon, 27 Jul 2020 14:12:46 +0000
Quoted 3 lines
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).
A patch series must be fully bisectable, the tree must build properly at every step of the way.
Srujana Challa
maintainerRE: [PATCH 2/4] drivers: crypto: add support for OCTEONTX2 CPT engine
Quoted 9 lines
From: Srujana Challa <[email protected]>
Date: Mon, 27 Jul 2020 14:12:46 +0000Quoted 3 lines
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).A patch series must be fully bisectable, the tree must build properly at every step of the way.
Yes the patches are bisectable. There are no build issues as driver is not enabled for compilation until the final patch is applied. If this breakup of patches is not acceptable, I will redo the patches to move the Makefile changes into this patch.