From patchwork Tue Sep 7 08:39:49 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hemant Agrawal X-Patchwork-Id: 507523 Delivered-To: patch@linaro.org Received: by 2002:a02:8629:0:0:0:0:0 with SMTP id e38csp4033192jai; Tue, 7 Sep 2021 01:45:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwzh4ovdj9B696skEM9w/zuTX0y+8qtLC+6Sw9uP9wcksObS+AYw4m3ZUjszStH/48RGDLb X-Received: by 2002:aa7:c884:: with SMTP id p4mr16956239eds.203.1631004305191; Tue, 07 Sep 2021 01:45:05 -0700 (PDT) Return-Path: Received: from mails.dpdk.org (mails.dpdk.org. [217.70.189.124]) by mx.google.com with ESMTP id z1si11156177edd.89.2021.09.07.01.45.05; Tue, 07 Sep 2021 01:45:05 -0700 (PDT) Received-SPF: pass (google.com: domain of dev-bounces@dpdk.org designates 217.70.189.124 as permitted sender) client-ip=217.70.189.124; Authentication-Results: mx.google.com; dkim=fail header.i=@nxp.com header.s=selector2 header.b="TztQoDw/"; arc=fail (signature failed); spf=pass (google.com: domain of dev-bounces@dpdk.org designates 217.70.189.124 as permitted sender) smtp.mailfrom=dev-bounces@dpdk.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id F16944114A; Tue, 7 Sep 2021 10:44:42 +0200 (CEST) Received: from EUR04-HE1-obe.outbound.protection.outlook.com (mail-eopbgr70082.outbound.protection.outlook.com [40.107.7.82]) by mails.dpdk.org (Postfix) with ESMTP id E1AC541147 for ; Tue, 7 Sep 2021 10:44:41 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=oThZ/pbk+MRRG0no736j7JqPUY8v23Fq6DoCW6HqC0DOCDBuZBadjfPqSFDEUMm0sCenQvq97GcJjN6ZZpeyZHYDrhJ4gCWXbdXDr8gEYyL+l25KDpfreaGxl2NUldJHikR7YixPFCvBIzrrgjud7KET7iKJyOF+e89Fwoq/eP3dSpbBT8jrRUZ3DLjPm07suwv79KgDz63yWHjzCTwRPiiuICmS7kO3zsveGxoX7xDdxl/fCNOL0DC0TzBsH/hTwctZtZOHeDt2n9vKULRnjwED6pfxyie/lHd7kt9XRrkeS1lD+fibnwjriujSOCfM9xW9bz83aEr1PtvpSRejlg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=iH5cuKgZBTdYaSnoGB2/fO/69P0Gm9xN1QfkkCR4kfM=; b=db3ZC7FDDCXMuVFBFYjJmUlp/Wv3wxYr73aSYcZkKbAbsWAX4Zx7zM2FCOuc4J6eZWB6RS7r4JdEQPWy3Eyim14v0ELjMaAgvQ+fe8jeUCaeIb827WwCFvBYKvfuGmrZr8FYGyMc2pAWS9Y5vd4DsP/4hfCG+BNvwRR+PK4hiwPQDy0bLOM2m9I7OsqpMrwqLQn7sQxgcSmH46vKXcw2XwHoY2VlBKO0t3PqNHrY75KA2KMB7PUMXpTR0YCd5dymeSfQCc7/3P6tQLxIkY2zIOX5EHfXmKSw9ftXDgZHAZy7fRHbdmY7aVF1N5RkY7n/lv45gzwe/jOobU2jT7vvoQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=iH5cuKgZBTdYaSnoGB2/fO/69P0Gm9xN1QfkkCR4kfM=; b=TztQoDw/+X35PCYraQwuBVQxK7iZY66uvB0oQGWa5fbuXEQnR7aZtbhQlNZY5saV5RFgyuPfy5gebooXSi+AZaIFu8cUHGvCbKSteiMjfS4qD3g0u5Xw1Vnayq/hRghsMF54708PciJdsz5URROyY06BOChdvB9YAydQFXmctnc= Authentication-Results: dpdk.org; dkim=none (message not signed) header.d=none;dpdk.org; dmarc=none action=none header.from=nxp.com; Received: from DU2PR04MB8630.eurprd04.prod.outlook.com (2603:10a6:10:2dd::15) by DU2PR04MB8949.eurprd04.prod.outlook.com (2603:10a6:10:2e0::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4500.14; Tue, 7 Sep 2021 08:44:41 +0000 Received: from DU2PR04MB8630.eurprd04.prod.outlook.com ([fe80::945d:e362:712d:1b80]) by DU2PR04MB8630.eurprd04.prod.outlook.com ([fe80::945d:e362:712d:1b80%4]) with mapi id 15.20.4478.025; Tue, 7 Sep 2021 08:44:41 +0000 From: Hemant Agrawal To: dev@dpdk.org, gakhil@marvell.com Cc: Franck LENORMAND Date: Tue, 7 Sep 2021 14:09:49 +0530 Message-Id: <20210907083953.8948-6-hemant.agrawal@nxp.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210907083953.8948-1-hemant.agrawal@nxp.com> References: <20210825081837.23830-1-hemant.agrawal@nxp.com> <20210907083953.8948-1-hemant.agrawal@nxp.com> X-ClientProxiedBy: SGBP274CA0024.SGPP274.PROD.OUTLOOK.COM (2603:1096:4:b0::36) To DU2PR04MB8630.eurprd04.prod.outlook.com (2603:10a6:10:2dd::15) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from dpdk-xeon.ap.freescale.net (92.120.0.67) by SGBP274CA0024.SGPP274.PROD.OUTLOOK.COM (2603:1096:4:b0::36) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4478.20 via Frontend Transport; Tue, 7 Sep 2021 08:44:39 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: d88afe7c-8634-4d1a-3045-08d971dbbb9e X-MS-TrafficTypeDiagnostic: DU2PR04MB8949: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:7691; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: bcYUe9dRt/sltQ4TusJLSNM6W7/agPVmYQaZKkSTuKPVWAPXjn+PrQBNzWvNKSTmfaeMfEmGbgBZh9dQydc62/QKIxmOo7ZapBDMOFT9c7KLG2FThVumz2WnPz9KaAA+trPrblVN+3cmaOZWhPTwpI2ZrEZ3msB4JpyO1lERKvLKyuP7SetZD5R7ydBacCHOV5134j/SomPoI1NqUheqi3np1NyawvJBzURnXRBDh4ujSKLwjVD+mqJjVKeOaihMMYnkr3LXO+0sfqBCLoE2op2bD221+43qCr7QGd/79Fk30BcL5LgRC92ppeKZO3+InfeAw6089gfsvdnQznPGUz+qoQ2kQUn62BVTiVtZ+fQ12f0aXNPWeKuxIlkYuG8j79Nxzfoh2OIJ95VgUQ7o4Gz8RKtcsgvPc+FigvAZeBqT9BJSRoEkx2IkelD2asLRV9dKGduDx/5M3dOLJCATPiI43N32Jh1KbT+kXPbbb7XV5Uaw2X7rygZquJqK9B0u6pp6rCOKlHsiUyoELqhydyt3j0zmYiPAPP6R/DCiP0Uoj1yrteRE7OpXf0katn0lhbIS1aucbRSmInmc9At0LRrxQoRSJnKLPO2ToIPGevBHw3tt029RyF9+USY3tsF4BMeZf7n6z1BcW/oPM9qqsqH2pKQeOycunK6cjX3cBm/09TBU1EZjtQd9x0Q+D37BIqtbQYsG3WcKYlv5+G1fSg== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DU2PR04MB8630.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(396003)(366004)(136003)(376002)(346002)(39860400002)(86362001)(36756003)(38100700002)(38350700002)(316002)(44832011)(52116002)(6506007)(6512007)(186003)(2906002)(956004)(6666004)(5660300002)(8936002)(8676002)(6486002)(2616005)(26005)(1076003)(83380400001)(4326008)(66946007)(478600001)(66556008)(66476007); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: YL9InBKgajNZW06jGM/tucol78puaoM5WAfVsG2HJxBrceLDTHSV8coRwuD2H1Uv9AsTt6SKFwfAcBy+uVA73+Dm2x2TWc+SqzzuGXEQMrpdn8hNFvbc8N5/q+2z/Syocc30eyrziu9iAQkfFP9QUiiyipRHFhCsOC6AcbjABnqArrATlTiuUwSamFnZTfdmpz+ncp9T4+C7cU7laAm3SpV/WNOmFx46SRvOQJ26uaOzKUwRI9d5aj7jUKA+yi5pxi/AH6Qy20bAlBqNMijIn/nLoGAPDfE3njhsaqsBJdB9qLZwOMg4JZ2PZThvT2lkHvPijIKmpcZN4jfjshSsxb7GvGp1OjA1vf/uUi4rkp76Nc942WngkVZpvhcsUlfPkMIlJRsnHj9k5Q8agLFKbKci11iBiIcrF/FGqZ1CDRi6eF9K0mroAhEZjWvZzpzlFBBIMC9QZsZc2oryYxWrwv/a0vs1zJzcG1kSVeUsbZfKfldaddXP6kuLYjhPJITdaALR52Sk1nj5e5YaSOxdpbFD1Uc4NcQpZEXW1XPmI8wEkgkV/QcniIY6L3y2GGUhHu+Q7Gu5mPjifWG+uGzyZS3ft5LXb5ozpE8VHJnKHESSC4vD41jE4uZp/sMiM8AQxHTeY5fztKvvU6mraT4dF0SskxtBLVmmadGzdzBaEBK4VuttXT8i3HqZ0mEAPvMfC8zrriXAcu3V0FcTAW3HUCALZQ7kcVrY9UBoetbtYhBVtLAU/UOfO6UIvybNCGtxbTenzZFhQKs9dBcsVdggCqTvCMrLOKg/iFsooMluGcCNc5zCkKj9shyidUBc+ZWYK/nhowT3IMUPwsDqAO8coWbhXOTgsOoT86llR9KZGlAzpm7ZIlYH07/dvmcrk4UwgdQgwzBHnTgxMipQqrK/7NXjdoRKKng94Yo026Bs7aS/3r4rdJ9uVUr7ZOcwSLDCJBvK4n1GI7DkEs3DZ2Sf7ogbEqJGicT/4LwQlAMIAKq6MxCjSwH9eSergKKf+wI2IRcYMnqcizyeE2mn54B8HHSYgs35KCw93PKPfMcH/66n10TH7BwfN8FlSHd3XEp57vGI65+FH5DE79RvOiOx1DeLBbPx+utUujGTpg5pjFBkK+qo0+OlgSQYrkCKzr9Wdi47yX9fDZgNQQ3rxCpuBgH7Y1NVkC4bOtVhUCRSyh+GH4qnCmMp6Mkf267j7LEz0jMhPr1/NQm+nXOjC+FL2tSU2DtFT26qrYXnA78ZbDih4f34jaCnOkHKLIuGU5kuYVo7T+ZtHcnixkFu62o0NbAU+kyj4QBDV5u1uSLaITHRUJPBSMG7EAfrbbIz7r9F X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: d88afe7c-8634-4d1a-3045-08d971dbbb9e X-MS-Exchange-CrossTenant-AuthSource: DU2PR04MB8630.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Sep 2021 08:44:41.1826 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 65InO/FYOv7BaStaDHgQW3VABoI0OpKfIq7qTaRgUOQkkq4mPVe8Zi0rPMtG39AbQe5BovNCKFUyiQ2O2iIFQQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU2PR04MB8949 Subject: [dpdk-dev] [PATCH v3 06/10] common/dpaax: caamflib do not clear DPOVRD X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" From: Franck LENORMAND For SDAP, we are not using the protocol operation to perform 4G/LTE operation so the DPOVRD option is not used. Removing it save some space in the descriptor buffer and execution time. Signed-off-by: Franck LENORMAND --- drivers/common/dpaax/caamflib/desc/pdcp.h | 14 ++++++++------ drivers/common/dpaax/caamflib/desc/sdap.h | 2 +- 2 files changed, 9 insertions(+), 7 deletions(-) -- 2.17.1 diff --git a/drivers/common/dpaax/caamflib/desc/pdcp.h b/drivers/common/dpaax/caamflib/desc/pdcp.h index e97d58cbc1..5b3d846099 100644 --- a/drivers/common/dpaax/caamflib/desc/pdcp.h +++ b/drivers/common/dpaax/caamflib/desc/pdcp.h @@ -2546,7 +2546,8 @@ static inline int insert_hfn_ov_op(struct program *p, uint32_t shift, enum pdb_type_e pdb_type, - unsigned char era_2_sw_hfn_ovrd) + unsigned char era_2_sw_hfn_ovrd, + bool clear_dpovrd_at_end) { uint32_t imm = PDCP_DPOVRD_HFN_OV_EN; uint16_t hfn_pdb_offset; @@ -2597,13 +2598,14 @@ insert_hfn_ov_op(struct program *p, MATHB(p, MATH0, SHLD, MATH0, MATH0, 8, 0); MOVE(p, MATH0, 0, DESCBUF, hfn_pdb_offset, 4, IMMED); - if (rta_sec_era >= RTA_SEC_ERA_8) + if (clear_dpovrd_at_end && (rta_sec_era >= RTA_SEC_ERA_8)) { /* * For ERA8, DPOVRD could be handled by the PROTOCOL command * itself. For now, this is not done. Thus, clear DPOVRD here * to alleviate any side-effects. */ MATHB(p, DPOVRD, AND, ZERO, DPOVRD, 4, STL); + } SET_LABEL(p, keyjump); PATCH_JUMP(p, pkeyjump, keyjump); @@ -2989,7 +2991,7 @@ cnstr_shdsc_pdcp_c_plane_encap(uint32_t *descbuf, SET_LABEL(p, pdb_end); err = insert_hfn_ov_op(p, sn_size, pdb_type, - era_2_sw_hfn_ovrd); + era_2_sw_hfn_ovrd, true); if (err) return err; @@ -3143,7 +3145,7 @@ cnstr_shdsc_pdcp_c_plane_decap(uint32_t *descbuf, SET_LABEL(p, pdb_end); err = insert_hfn_ov_op(p, sn_size, pdb_type, - era_2_sw_hfn_ovrd); + era_2_sw_hfn_ovrd, true); if (err) return err; @@ -3319,7 +3321,7 @@ cnstr_shdsc_pdcp_u_plane_encap(uint32_t *descbuf, } SET_LABEL(p, pdb_end); - err = insert_hfn_ov_op(p, sn_size, pdb_type, era_2_sw_hfn_ovrd); + err = insert_hfn_ov_op(p, sn_size, pdb_type, era_2_sw_hfn_ovrd, true); if (err) return err; @@ -3523,7 +3525,7 @@ cnstr_shdsc_pdcp_u_plane_decap(uint32_t *descbuf, } SET_LABEL(p, pdb_end); - err = insert_hfn_ov_op(p, sn_size, pdb_type, era_2_sw_hfn_ovrd); + err = insert_hfn_ov_op(p, sn_size, pdb_type, era_2_sw_hfn_ovrd, true); if (err) return err; diff --git a/drivers/common/dpaax/caamflib/desc/sdap.h b/drivers/common/dpaax/caamflib/desc/sdap.h index f1c49ea3e6..d5d5850b4f 100644 --- a/drivers/common/dpaax/caamflib/desc/sdap.h +++ b/drivers/common/dpaax/caamflib/desc/sdap.h @@ -990,7 +990,7 @@ cnstr_shdsc_pdcp_sdap_u_plane(uint32_t *descbuf, SET_LABEL(p, pdb_end); /* Inser the HFN override operation */ - err = insert_hfn_ov_op(p, sn_size, pdb_type, era_2_sw_hfn_ovrd); + err = insert_hfn_ov_op(p, sn_size, pdb_type, era_2_sw_hfn_ovrd, false); if (err) return err;