From patchwork Wed Sep 8 06:59: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: 507905 Delivered-To: patch@linaro.org Received: by 2002:a02:8629:0:0:0:0:0 with SMTP id e38csp335160jai; Wed, 8 Sep 2021 00:04:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwzplmWWB2AxhgcBcmcKsX9VYg4wg8p9qmhXOweveLPBylmy/ymqffohlaEQSQAlIKl0RSd X-Received: by 2002:a17:906:260b:: with SMTP id h11mr2481707ejc.215.1631084673292; Wed, 08 Sep 2021 00:04:33 -0700 (PDT) Return-Path: Received: from mails.dpdk.org (mails.dpdk.org. [217.70.189.124]) by mx.google.com with ESMTP id f7si1336270edw.309.2021.09.08.00.04.33; Wed, 08 Sep 2021 00:04:33 -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=JbI1ue0w; 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 990BC41153; Wed, 8 Sep 2021 09:04:11 +0200 (CEST) Received: from EUR04-DB3-obe.outbound.protection.outlook.com (mail-eopbgr60055.outbound.protection.outlook.com [40.107.6.55]) by mails.dpdk.org (Postfix) with ESMTP id 892D841150 for ; Wed, 8 Sep 2021 09:04:10 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=fRWWuSP6PR+ThOZGbSY1JGPA5ETv7/1uzydtqPo1QTPyCXsPeZCOs3fdk6yWzIoNut2ttV7I9g+lC1citUGNKrmtBOV8Y1cFeY4polfMNzAwTTwK5zKobSIlPaUOFVyWGZWluJZG8wV0/KuUlj88CPu9MifEq0q5pvu4RIyb/mlF3cCIUJkoqR8XLpRxgecYVH3+DfWXuMO1ghsjsFdlmXp/osCM+cbeeX+XcNlHbTbcXxhorA0OJMrDLPXag7UvxLHWBrd4JEc95imQ5UuCuTbeU+1+HWwDpPS2sTLlG+jLq9AjkZf/no9LHxPevX53xpJ+02bRIzbp7AWTXTLx/g== 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=azrl7sG9xf3IVx/n+tgGInyTKsv5phOVfGTZ43lyIIDOmyQUtTcq45wMInAZEFyzG7qldD+P6Pr/Kp/ca6s9Xw/sERn9MUDjSr+Nszr/SOIvOSewk9sF9SG8MlYUUsup9LllUyBl7UNlwVZp38C2BIZHiVC+6WWi8s9EvKWNtUtRAgLkAaO2PrQU4ZWu2PYB3cNvVR0cO4reGPgJ4GM9qcLAB3M1wydPnKotKwOrl1XhgT4w16hWjs9/n5Zzm/9gU8ZjpUWu1cx+9NDaP1/SSd3WcIrr+tw9WA9oW284UIR6kd8KJ8VtHhhdXxtZV5+hVO612OVjilbo9VyYPJvp8w== 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=JbI1ue0wdkvuWzcBM0znO/7iR/o1x81tXuQ8KCSRQKzZKiN5tv3bXx0n6PQHzwiajcv937Q5S7VUXv/l7oAfsN0hUGTgB9NivLa/BSO0A5/mGNhEuwjGnZuasrJdGE5SOpOIjcG9K7LkZymcTBP17UtVA8j24d0zpiIMYAhJVhU= 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 DU2PR04MB8903.eurprd04.prod.outlook.com (2603:10a6:10:2e2::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4478.22; Wed, 8 Sep 2021 07:04:10 +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; Wed, 8 Sep 2021 07:04:10 +0000 From: Hemant Agrawal To: dev@dpdk.org, gakhil@marvell.com Cc: Franck LENORMAND Date: Wed, 8 Sep 2021 12:29:49 +0530 Message-Id: <20210908065953.28349-6-hemant.agrawal@nxp.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210908065953.28349-1-hemant.agrawal@nxp.com> References: <20210907083953.8948-1-hemant.agrawal@nxp.com> <20210908065953.28349-1-hemant.agrawal@nxp.com> X-ClientProxiedBy: SG2PR01CA0087.apcprd01.prod.exchangelabs.com (2603:1096:3:15::13) 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 SG2PR01CA0087.apcprd01.prod.exchangelabs.com (2603:1096:3:15::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4500.14 via Frontend Transport; Wed, 8 Sep 2021 07:04:08 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 5725903f-a1c4-43a7-7b62-08d97296db34 X-MS-TrafficTypeDiagnostic: DU2PR04MB8903: 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: DYiO7lB09aHRTV2DfBmgAjA21Ld0UBtg066KV+s1morPu0Gr0JKlfiIqN93pEcxAHOtoVLS+UUZHpwq/DykMEQOLQgT5gvjSPwzEmmR0wZHfb5pjKfNHVnXbJwcfX7bOmRdoQDltbZ1eNDHNpo3aUy/WaRxEszWsCK2liA86Oyd3wSSmAV/OGjoUQ1rUYfrOrYyNmScbNfVY+58j0038/KXFu6BccLAfU4yOuzF8JrXx/SdCgwnAgSEWGFpOX1T3L2KbiHSYbu8wjfdhQMUKqTv4354z4caOn+IqWWkLM/W1ZgZw2nvrheAXskNZbYWlPLJyb4lHLVzrdEgx3kIefU5tLLilD/wMZ1iaLE05I0aNKPZisKoT8MVX6YHg9hGNIIkd2VNRmlVLEm1jRZxCuivuqEs06VdfEJKDUdFojaHvx/kKIkYl18+HUpY45m7HmVZO1O/+wMhoDFi5YbTtGfDA86RsoDfNYcX9i01uJahakWdqZK82uyCr1Q5YcYsA8TP61a1DMCB7w20EueFNQV9bHkt7bBNzA+nTUFbZpTtvFVbphDp6rSBJ4nJABA+U7Cs+B311N1u8SYMgLpCtnvZoKFiPJSZND9Maxgp5ifWMba4wKpxegllt2eaSNIBaObgcoqbzyymLEWDPGan+b7FbOCwZHOVh7inv77dCbHuZ2ek4bSDB2iZ/Q4ODZQ/b5FI8rndnM7RJ9QhFPh1LtQ== 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)(366004)(136003)(396003)(39860400002)(346002)(376002)(52116002)(38100700002)(956004)(478600001)(83380400001)(86362001)(5660300002)(38350700002)(6666004)(6486002)(316002)(1076003)(2906002)(4326008)(44832011)(6512007)(6506007)(2616005)(36756003)(8936002)(66946007)(66556008)(186003)(66476007)(26005)(8676002); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: bXc0kLrJ+iBetgC6I3UD2YXkxnv14PMmv6WP4bBFQaLMqed9RscmRWuJzESDAW7irt7EhxbL88PZxQ6cbMHFwYXlzVki1TZHMP4kwDmNwXtSirV2RcGod1usBGoJa978h95vaPbNQKzYhuIydLK1vECDeNLmgpj5lQiOBAqJYhoihSozHrGYDi4f/hK+dTEQkxyRFtEj2eA37GTibn3H7x7xEgDeTu2qhXmupsAd+rOUKuBiCkhOezfLpFmS+xwAKOQnaV8gehiQDVYRoDOHvIedNSte6pVV8NJNVRdYLfi5weTLQnHl31t2URuSZm8kwB5zaE2bZm9hleg2mIvYIG4h5b+p4XTMbNBrlbd7KPIyR6PyIq2k/pvuKFYouJeeXeM84rLPqr+mBjXfgpsDwQpJKIyak+csGzqVKyAtG0qbpmSaVjRhplSpVJHg9faJjeyHNf6vnDSBwNM5qNUnHOxO0vTM2M9ng1HJFWmo22KYHrcc+akeciwFgRqwVc1Wd3Gj8r34QU8wHE+qucspvlqQEowv9WiG32nxtXsDWhUIj4y5z2Pouwmo/MUO2GQG/WH9vqwYMwTFT/rjGuiipXbg6UNKhnDTC7YfNxIF5E01+ZS4Sz57/xqEXM5v2FYxuh1kcxrDLFjUVF6OCFgt5ruKNA7tJ7V0u4TLNnlm6EtPSy1u86SzHz14rTQHHi009Vi1XfikKLMZwm0ZNjwVMCtSpRQQ58b5+UJWQhzJ8xjaymv7k9M1Jp/gSiFkHIsFaU87tUzPLaGwStyItCiPXkiZ3C0oSiZ6RgZY/kzZR1TKhyc/ufA9AzQoTBMSn1gCFaEFAwXU6tEUbA15PW1xNiYYalKIPWILh1jDSeUKksw4DM8d89iqNo6I9+XmH6ViOUvtXvMpsVTlHLc3Og4dDL9mV/52EAG7dNQZhmtps6O6HWbwo34M08oDtjI7v52SOr4OdCEwBfvcjn4XUwazVeDbOX3/25PYc7sJRg/muuu1IL0XcB616CXcBowGP5VHcHKUve4032/nkpPfcnLaOF5mud2GE7jBGE+aEzylnuCrg0RQqS555zeE/ybUgFtUS4FGJQIc6JtAIeHnx8XHufK2J+NuGnkQKgZpCHVITT3mExK27P91NPJS8b2k8Wv6sqw2jzYdvLMdxqJ2wP/HTFEd5RiMrMsPrj6vUruXaR24rVouVNRSSqbtpkQIGtxI0IaumCBQQlgAeRgTXbfCjfp4dgLQFH68iNVmKiHVvA8aiEWg0HU5Ttpx1VAdV7+4hNmf5wUu4NlxCdv0ba3TPS+gVm+gECRFP/CDhU7oR0D8yxVgHXk/XZQGn4VpFKRi X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 5725903f-a1c4-43a7-7b62-08d97296db34 X-MS-Exchange-CrossTenant-AuthSource: DU2PR04MB8630.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 Sep 2021 07:04:09.9828 (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: X3a3TW3FFG8Zu4Gtegvu4ckMkKC5uvFAZGok6JAxB7QvBfLIY75Y1j8le8lJVjMDHT9mUNMz5A+Llaw0fAKNmQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU2PR04MB8903 Subject: [dpdk-dev] [PATCH v4 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;