Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp4428611rdb; Mon, 11 Dec 2023 21:18:02 -0800 (PST) X-Google-Smtp-Source: AGHT+IEz6rwvsq+MtSnqF6MApcwl8Hbyz8UiK/Y8Lus1oim3tRp9goDYvJ6vKzGpMk3gl/RNtMPt X-Received: by 2002:a05:6a00:6596:b0:6ce:50d0:355f with SMTP id hd22-20020a056a00659600b006ce50d0355fmr4872473pfb.67.1702358282041; Mon, 11 Dec 2023 21:18:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702358282; cv=none; d=google.com; s=arc-20160816; b=fRE/TV/cL2T2S8xXO35TC71VhqIFbE+WL7KBhT4B4RybhsMfw2UFqZsWFV/oIxep81 bN+l+JFsUJ5qn7LxnGjMi6MmTASQgPxKJuDYlGMFlCDqvFXvmUr1fZToqoVLAyBXPNXo wT0D6bKb2SODJXS7ZP5s987FRd3XmUEr4+7nP9e1Hs3ESbr3r83ocytIli/dJErgR0aO eVW7aZa2m8LqIlGp2xkwZ5jj6GmxnXhIjjsYwSR0j4s9t4mUk3qPIc7sVAmaxXG6rYUY PDehGSHaeqfrFBJ6q2ttVRl1GKKTeTeYNzLI7hkAwqnNNQBz00xktGwJAPlJ1iGEWRxP 8RWg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=wtiVCRd7XDB68Nejdxm1j2GaWUmA0b6kgAneCAUxm4k=; fh=ifa0Xq68mD109Gz0khd8ZOjXcbb8KEEjKiA/wXcE9P8=; b=vFsebTjm8i8gPJh1o5QTPB/DX5tiVI61Yui8s7m9Vs3dt9tjBnYwJ4FzEMskEA1X49 w8gxn6CGkbGOi+EPlZG0V03t28VunTbtRPMRSsaEKSWuNiEDLV5Be0wdsBGGoJSyvHl1 N5wOwXQSQjC9Zp/9itEHwcGZLJtNoZL9HpSxt2R3KEZuQBeIopXh8D1n5H31aMmv0maX XqytUqzeRTBJv8VMgNebdAfV/Ek2d+Vo+iWY7om9jz5PPN4r229TVL63DqFGOt9UyZPD KjTDnqpg23w9SxfWP8hjSle0Dj/A1l70Kq1nodpQErSzbJ27xtBfRmgxGXjJjNagQncU ZIrg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@marvell.com header.s=pfpt0220 header.b=R6bjtt05; spf=pass (google.com: domain of linux-crypto+bounces-722-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-crypto+bounces-722-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=REJECT dis=NONE) header.from=marvell.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id l20-20020a656814000000b005c622d45e68si7176128pgt.549.2023.12.11.21.18.01 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Dec 2023 21:18:02 -0800 (PST) Received-SPF: pass (google.com: domain of linux-crypto+bounces-722-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@marvell.com header.s=pfpt0220 header.b=R6bjtt05; spf=pass (google.com: domain of linux-crypto+bounces-722-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-crypto+bounces-722-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=REJECT dis=NONE) header.from=marvell.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id B15B1282D7C for ; Tue, 12 Dec 2023 05:18:01 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 273B4FC15; Tue, 12 Dec 2023 05:17:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=marvell.com header.i=@marvell.com header.b="R6bjtt05" X-Original-To: linux-crypto@vger.kernel.org Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2B40AD5; Mon, 11 Dec 2023 21:17:53 -0800 (PST) Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 3BBNtG6F029735; Mon, 11 Dec 2023 21:17:40 -0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h= from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding:content-type; s=pfpt0220; bh=wtiVCRd7 XDB68Nejdxm1j2GaWUmA0b6kgAneCAUxm4k=; b=R6bjtt05QOQ8rnrRly+yAo6C 923E4ofx/snOxwRjrhNVFIgrA9tP8zZLikpSeSL5CsU8sQCih/wiX+VEBkITB2HZ nkpkKfAHqSqcpNOq/dCssSHDDILwYGjtL6Yzek06Wf5t3/A728FrMZZG6J+CMtZz ZM65QlG9Taj6ZuyNWgCo68AdtsN+u3y/3sHOovsIOkNyQH17f+8wY3GkdVx6Er85 L6ZR5z6tio/6HRn5RpgWBY6kQ2XFloSHwbCAEQ3an7iGhF6/x9wmbUrnDvzSNd9a FgGxTMmFfE3HGc3C/tVwyV2tytfc4G3b2/vgiX75asFlpALNvu8eWgujPvKMLw== Received: from dc5-exch02.marvell.com ([199.233.59.182]) by mx0b-0016f401.pphosted.com (PPS) with ESMTPS id 3uvrmjqjac-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Mon, 11 Dec 2023 21:17:40 -0800 (PST) Received: from DC5-EXCH01.marvell.com (10.69.176.38) by DC5-EXCH02.marvell.com (10.69.176.39) with Microsoft SMTP Server (TLS) id 15.0.1497.48; Mon, 11 Dec 2023 21:17:37 -0800 Received: from maili.marvell.com (10.69.176.80) by DC5-EXCH01.marvell.com (10.69.176.38) with Microsoft SMTP Server id 15.0.1497.48 via Frontend Transport; Mon, 11 Dec 2023 21:17:37 -0800 Received: from localhost.localdomain (unknown [10.28.36.175]) by maili.marvell.com (Postfix) with ESMTP id EA5523F709A; Mon, 11 Dec 2023 21:17:31 -0800 (PST) From: Srujana Challa To: , , CC: , , , , , , , , , , , , , , , , Subject: [PATCH net-next v2 00/10] Add Marvell CPT CN10KB/CN10KA B0 support Date: Tue, 12 Dec 2023 10:47:20 +0530 Message-ID: <20231212051730.386088-1-schalla@marvell.com> X-Mailer: git-send-email 2.25.1 Precedence: bulk X-Mailing-List: linux-crypto@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Proofpoint-GUID: bWCdsGb9Wo7oDqSt-aI8NxZaHq_gkSLP X-Proofpoint-ORIG-GUID: bWCdsGb9Wo7oDqSt-aI8NxZaHq_gkSLP X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.997,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-12-09_02,2023-12-07_01,2023-05-22_02 Marvell OcteonTX2's next gen platform CN10KB/CN10KA B0 introduced changes in CPT SG input format(SGv2) to make it compatibile with NIX SG input format, to support inline IPsec in SG mode. This patchset modifies the octeontx2 CPT driver code to support SGv2 format for CN10KB/CN10KA B0. And also adds code to configure newly introduced HW registers. This patchset also implements SW workaround for couple of HW erratas. v2: - Addressed review comments. - Fixed sparse errors reported by kernel test robot. Nithin Dabilpuram (2): crypto/octeontx2: register error interrupts for inline cptlf crypto: octeontx2: support setting ctx ilen for inline CPT LF Srujana Challa (8): crypto: octeontx2: remove CPT block reset crypto: octeontx2: add SGv2 support for CN10KB or CN10KA B0 crypto: octeontx2: add devlink option to set max_rxc_icb_cnt crypto: octeontx2: add devlink option to set t106 mode crypto: octeontx2: remove errata workaround for CN10KB or CN10KA B0 chip. crypto: octeontx2: add LF reset on queue disable octeontx2-af: update CPT inbound inline IPsec mailbox crypto: octeontx2: add ctx_val workaround Documentation/crypto/device_drivers/index.rst | 9 + .../crypto/device_drivers/octeontx2.rst | 29 ++ Documentation/crypto/index.rst | 1 + drivers/crypto/marvell/octeontx2/cn10k_cpt.c | 87 ++++- drivers/crypto/marvell/octeontx2/cn10k_cpt.h | 27 ++ .../marvell/octeontx2/otx2_cpt_common.h | 62 +++- .../marvell/octeontx2/otx2_cpt_devlink.c | 89 +++++- .../marvell/octeontx2/otx2_cpt_hw_types.h | 9 +- .../marvell/octeontx2/otx2_cpt_mbox_common.c | 26 ++ .../marvell/octeontx2/otx2_cpt_reqmgr.h | 300 ++++++++++++++++++ drivers/crypto/marvell/octeontx2/otx2_cptlf.c | 133 +++++--- drivers/crypto/marvell/octeontx2/otx2_cptlf.h | 105 ++++-- drivers/crypto/marvell/octeontx2/otx2_cptpf.h | 4 + .../marvell/octeontx2/otx2_cptpf_main.c | 71 ++--- .../marvell/octeontx2/otx2_cptpf_mbox.c | 82 ++++- .../marvell/octeontx2/otx2_cptpf_ucode.c | 49 +-- .../marvell/octeontx2/otx2_cptpf_ucode.h | 3 +- drivers/crypto/marvell/octeontx2/otx2_cptvf.h | 2 + .../marvell/octeontx2/otx2_cptvf_algs.c | 31 ++ .../marvell/octeontx2/otx2_cptvf_algs.h | 5 + .../marvell/octeontx2/otx2_cptvf_main.c | 23 +- .../marvell/octeontx2/otx2_cptvf_mbox.c | 28 ++ .../marvell/octeontx2/otx2_cptvf_reqmgr.c | 162 +--------- .../net/ethernet/marvell/octeontx2/af/rvu.h | 20 ++ .../ethernet/marvell/octeontx2/af/rvu_cpt.c | 14 + .../ethernet/marvell/octeontx2/af/rvu_reg.h | 1 + 26 files changed, 1068 insertions(+), 304 deletions(-) create mode 100644 Documentation/crypto/device_drivers/index.rst create mode 100644 Documentation/crypto/device_drivers/octeontx2.rst -- 2.25.1