From patchwork Wed Aug 25 08:18:33 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hemant Agrawal X-Patchwork-Id: 502255 Delivered-To: patch@linaro.org Received: by 2002:a02:6f15:0:0:0:0:0 with SMTP id x21csp382629jab; Wed, 25 Aug 2021 01:22:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxyBaM3LYm0x+lTHhubLa/jfeA+hPr0ZDcVzQUahqFqyjIDaaVVVuAGYZ4zXYCd+Fql+A0F X-Received: by 2002:a17:906:c05a:: with SMTP id bm26mr8542115ejb.498.1629879776908; Wed, 25 Aug 2021 01:22:56 -0700 (PDT) Return-Path: Received: from mails.dpdk.org (mails.dpdk.org. [217.70.189.124]) by mx.google.com with ESMTP id i12si356791edc.235.2021.08.25.01.22.56; Wed, 25 Aug 2021 01:22:56 -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=Voqp403t; 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 ACAD3411FD; Wed, 25 Aug 2021 10:22:26 +0200 (CEST) Received: from EUR04-DB3-obe.outbound.protection.outlook.com (mail-eopbgr60078.outbound.protection.outlook.com [40.107.6.78]) by mails.dpdk.org (Postfix) with ESMTP id E00C5411FA for ; Wed, 25 Aug 2021 10:22:24 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=IXE3qyUvHylzgNhQLgAW1MMEIvt8rikXG+MsHXHkUtSlrBkglEzmcOjFg9bavMPmN5mOM2R0GDvvq82Af+jYPQOdol6RN2ljVf8dlwRvpBRnqEsnk1oyGq/BS+ELvMEB2ZQqcj0stBFq+RjPRrd6FKj783qyFsm+ffRbVGw1JAzDvrW+1eJShVUQE1okqDnLKWpYlRu4xfYfhofbGbdVFj+NpA5DtRxLouY8sVqKJyBV0GvAnd/mkrbR9mC0dkvdvv92Yp9cb7Q9dMGREc56u5G17xnkLI5r7deavpT2+SILRotsa1BmBDzn7x3LXkwMZSl6dBfUalW1AQk63em3bw== 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:X-MS-Exchange-SenderADCheck; bh=iH5cuKgZBTdYaSnoGB2/fO/69P0Gm9xN1QfkkCR4kfM=; b=K3ORUKfjYTDP8Clucy6sWOTWz3qTuHg2oLNkMT2fGM6uqIV7jnTN/UuHGtqvboie0Stge12d/JmSNmdNGcgFxO7Lbn6Pt1fA5nb7IAPj6OsyI3VYuQt/DPzSfbxvwjjWXiE2uLvD2kx9TCbqTzG0No8+FhS5MQ44/k3IGlNkvWUkx9kT+p1FF9kLlgfv1hUjjy/rdDsSWi+aDDeffpWLLobkNbgzx2REW3nFX/rQUOKeeqciBSdEOPY77R4q1xCY5aTvpS82PDNyzABYmbc9m00w3oGBWu0SCZ+lc9g9MnabjhXG/UXxmfd5gcmTC8nlk72DwzXqPfHa5AEe5bQIrg== 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=Voqp403tPrRNYCbNOqXk5HkQ4N+PVOWWGt1QY0VvZmXjpzHO/bEFcqO7W/l4Ymt5FAqu3AsdHPqYPaqBLgJ6umTuH9nSOAt4M6P/uCD8gXsebDX1e79cgr1OW15NufCDtSIE4q7zGeEPoXpodskalyHnm0DMYYNj69LdI3mgwQ0= 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 DU2PR04MB8934.eurprd04.prod.outlook.com (2603:10a6:10:2e1::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4457.17; Wed, 25 Aug 2021 08:22:24 +0000 Received: from DU2PR04MB8630.eurprd04.prod.outlook.com ([fe80::2590:514a:df1f:a793]) by DU2PR04MB8630.eurprd04.prod.outlook.com ([fe80::2590:514a:df1f:a793%8]) with mapi id 15.20.4436.025; Wed, 25 Aug 2021 08:22:24 +0000 From: Hemant Agrawal To: dev@dpdk.org, gakhil@marvell.com Cc: Franck LENORMAND Date: Wed, 25 Aug 2021 13:48:33 +0530 Message-Id: <20210825081837.23830-7-hemant.agrawal@nxp.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210825081837.23830-1-hemant.agrawal@nxp.com> References: <20210721073920.21893-1-hemant.agrawal@nxp.com> <20210825081837.23830-1-hemant.agrawal@nxp.com> X-ClientProxiedBy: SG2PR02CA0106.apcprd02.prod.outlook.com (2603:1096:4:92::22) 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 SG2PR02CA0106.apcprd02.prod.outlook.com (2603:1096:4:92::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4457.17 via Frontend Transport; Wed, 25 Aug 2021 08:22:22 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 2fa2469f-1b6e-4b05-0618-08d967a1770f X-MS-TrafficTypeDiagnostic: DU2PR04MB8934: 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: R3ps/q3oz9iYdJcTSt5l2pWTqv0kvaGY29vY9vdYCaJ0jQ82CL4OFinX5uy5aIliaFfiR9k9sQqr5TX2sAKlue8F7IwEgQmRic6zZ0a6dQlUsbraGY2Hz+gtoxqCtty0erPcFKnl2H2ylCbD8izeNVOpk9VEJbXCDd4WTTn2mx5AVnh7L8z+Sh4adDgrSYUnkgh50WyJX/nyZrJYfS6iAox7hv3tIlaVFutoiLbnm6V40inJQiJKnBmhHoN5Kb288xtFf+Ry9feihAk8jdoJPjZ743hkX3hhq/Uwg4QLEskrmwy8N8DaPTacUTrSHRKbgTjxWim33R9MzTEdYxlDmjIwP93UzZZpuz06xu5PuEBbC8qwmRU+KKtJ0lW8cjczn/AntyPOkUZzy1CIDxEbXr9Z5N9NzWCIEAoll9qcnhhYukBXwEhw3P8jdjdF9ZIEYfhEC+DMlhwTQupbZCXAWM3SXxoWK9mART3PAL+29552sY5TlqMEloZ+wnF6Ra4RFPYbw9MLkzLCgJLPhUg6nS6VKxuPeZJU6NMmyVuJsf3+FHvLIy1CX2EqizV4J1FEPFYSzJHnb9RSNawRMMtZc3fpxep5qZengfWo4G6js2LYiePIm6YFvk05erS9rU4jD0LqYye5PZPODJOEAmnl2DKiDXiCDavO/AqJwYO7z52TkuZgjyaOJN7yzNAPyvSGQ+TO/oHkltTs+8WqMZXBvg== 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)(346002)(366004)(396003)(376002)(39860400002)(136003)(6486002)(44832011)(6666004)(316002)(26005)(4326008)(5660300002)(6512007)(2906002)(186003)(8936002)(36756003)(38350700002)(38100700002)(478600001)(52116002)(2616005)(956004)(66476007)(66556008)(86362001)(8676002)(1076003)(66946007)(6506007)(83380400001); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 38RVoGhOKusFi5nbqVv+t5SB/axp87NwDZB7cqn+PD0m1jgZ6Vov6Kc4Nan+Zk6M2qHgiGcb+8h99/p0x51OrNCZPyCTaRjREodyctBSERqTgzBT7Q9ZH27QDPtuY9AolRr/GEj8Nn2B3PTVVhJMT2ue3AxWzlVfexo3TLm55fIoHtCphmH6bggXSUixgzI9s32PozLlfzn4azKJmHIZ2p37oQpTYZhtm0ExbPHby9uPvDCGvXMM0/xqFDeBjuLgk0vQJgRUy2WVwMD6/gxLTXzqIx8rNdQGoNPk+jFGHaQvs/H6fr0FfZyW1ejx2H6DLKyoEYVqiVDKGhduVwu0ZUtUI9KXGeYRcaX2QnCFjrYmSxjROXSYtHXmEEH9K1G+YXT1TH6t1CI3Jq1zZ4w9TS7hicevJAVkIwdWFRWdqUYVWhG2bRa/YEr5jtYK7mtriveAjQlz2uiKLzzfwzexgyYDjOhiq8M+G3uIr592vSNLpMMp5yMA6r0TiY9xV3LLHAkj3KGIdVtKh5UPoVyXWgWLU7wlifOXJK69UVKWYweG7Rm0L+mK60hDi/AfQ6z2M1xR6m2Gqla4WzoBDg0vYfIeihjOtSwAIujf+cEkjL9g7ZQcksvunLXIE7iEF6qMmwWkkttNEPrxeXLejyco1f5dY1Sly1lCD92bz19j3RvniPMi20At+fMeyVvBuXovmYwuTE0NVlbI9nJfo39lnJxUF5BPheW56h/9kuq8B6QDJTC/C1qFWxgFp5kMdBsdLLrSMbE+e0RdvlqG2lHjcfTdkM+wkxtqiiQRjGD3w8kIYMk0loH3pjExvP5ZS5b5C5NfGC6qF/dH/i/OfZCp/VQq3ug16WbhTU8bSozNcaCeU/hgNZ5ZrDqkontcNdtlR+Z4muiNSUAZvO/I2wp9FwwwDe5dYxcYOybqG+TrReSEw8qykHtF1zMkuxg/eRxzns50VjcI9zcgDOYGDjXnRoI9Ofc1Z2hESQblQLA0iWcL2wzm661eSyJIjypPmXpjlVu265nbnHhMUwbtGvxqH6HULSBb8eG3Vzmime/P7u1lDrdLl3zRhTuSPIxvYsGWQhp42tIfK32k4X2lxX+DrNJDKWgZ4gu7LCWfPnFrX2Zcjx8DeJ7QCrwYuC1jnY4ykZkZrB58ck2hgxkDp9DlrvDBM0TPvQOGoHpupvWiSe8OdVHc08JFWnlosq9aWqDprgRJ769nzsKQVzFNpTm2uDps7VcMppvlNgwYacKYYWQXCrDwNK5mKEgR6F2iQV0+gqNYO+sB9NOBDX+hOpQ4c8gT35emZOGVayQdYn96Lm8zQe56QGKGteEHHEI1bl/v X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 2fa2469f-1b6e-4b05-0618-08d967a1770f X-MS-Exchange-CrossTenant-AuthSource: DU2PR04MB8630.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Aug 2021 08:22:24.0100 (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: t7bPJyHyr4hWVk6ohopUu2r1rMk8ov6geWtia3vLjQbwdtZJQy9V9+l5PrNy2oQro7qP3CqtgLu3+z6nzPX3CQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU2PR04MB8934 Subject: [dpdk-dev] [PATCH v2 07/11] 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;