From patchwork Mon Apr 2 07:36:34 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hemant Agrawal X-Patchwork-Id: 132654 Delivered-To: patch@linaro.org Received: by 10.46.84.29 with SMTP id i29csp2290713ljb; Mon, 2 Apr 2018 00:39:47 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+mpioGU/Bi3JCe+Pob81rR6J6MvAPMvrdE7xnt2v1iza/jQm2yk9+BIS17d+YlOu/NM5FG X-Received: by 10.223.187.138 with SMTP id q10mr5357578wrg.62.1522654787463; Mon, 02 Apr 2018 00:39:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522654787; cv=none; d=google.com; s=arc-20160816; b=X0mvdH5GgjtvtfJg8d6RJvCBKz5meNvoZK6VnfWT+cCQ9rr52fn9lNW4Uhto9vLigc A0BeEYTb1lhzP21gdU5CT6ZtYmNJoHGsFi6C82S+yXalMJLpWZMbH4dMdUnYGUNXFSaI pe7BewTVRPFD7LCVWxE2QV2aQF/ZYitU5/E5NFzT12CGwlTgFgMKY0JtJsw3hwffwV5G J2Rk7dMWoTxO1Vter4Ks2c8YXh3LmWitVmsn2N1po3ESjhpiskCzSB2jRZnzH2zRkf7W yo2ozcpVUGCaDCIVsCNSKp1N2W+sDHQIud9bSKhMP0k6VYYbZXnRSHCUd8HPjui6ljc/ vMLQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject:spamdiagnosticmetadata :spamdiagnosticoutput:mime-version:references:in-reply-to:message-id :date:cc:to:from:dkim-signature:arc-authentication-results; bh=iuigkxmINobwIs2cgT1DvwWM3dT8En1NL1+lBUI0bLY=; b=wM9qIWNhtJC1b3AxBeb5dV1jx5edesztkf5MV58PRCyQVed+3DHBQ6FgGI78q0yzOU TzelItD5XCMvEAUOdgdG41cCujSJdPRAvGLGPDfrZkrB4jJbEWRkm/TTZjKWIx02sQtn pHMm7yxLu4gAj8UpcyAGNcav5b7yiKw4tZFt4S8tY2rlLNyf2zGsf5TdePakv1UZDvcu YFfDBZvX0QQ223QkTzQCmyeguBtC2DgOhbwD8Ydh0F3rIpkCO0LROXGvCoRhOIPZ7N9g mipfTpVcQqJhUtH77kHgsMBokhau4/7vrMhSse6AV0E2r+PoSGkFfe9+l/CpfhuAp8TY Kaug== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@nxp.com header.s=selector1 header.b=QKnsu9eP; spf=pass (google.com: domain of dev-bounces@dpdk.org designates 92.243.14.124 as permitted sender) smtp.mailfrom=dev-bounces@dpdk.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from dpdk.org (dpdk.org. [92.243.14.124]) by mx.google.com with ESMTP id b102si11116390wrd.490.2018.04.02.00.39.47; Mon, 02 Apr 2018 00:39:47 -0700 (PDT) Received-SPF: pass (google.com: domain of dev-bounces@dpdk.org designates 92.243.14.124 as permitted sender) client-ip=92.243.14.124; Authentication-Results: mx.google.com; dkim=fail header.i=@nxp.com header.s=selector1 header.b=QKnsu9eP; spf=pass (google.com: domain of dev-bounces@dpdk.org designates 92.243.14.124 as permitted sender) smtp.mailfrom=dev-bounces@dpdk.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id E80EAAAEB; Mon, 2 Apr 2018 09:38:40 +0200 (CEST) Received: from EUR01-HE1-obe.outbound.protection.outlook.com (mail-he1eur01on0062.outbound.protection.outlook.com [104.47.0.62]) by dpdk.org (Postfix) with ESMTP id 98BA4AAD5 for ; Mon, 2 Apr 2018 09:38:38 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=iuigkxmINobwIs2cgT1DvwWM3dT8En1NL1+lBUI0bLY=; b=QKnsu9ePgxM19OcB5pD9KgmIiCIpIzCr25+FdCd/Wrv8DpqIw3GOLKaCo7wXfzMlcmFN46KL49n3CNVn20ceLXqofdq52OSd3hz3AsmMRjM95F+S9aFPYmQmZAEs061PYqSMq88CBhnijvWD7wRJFbH6zI04puMeIfYugzro4tA= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=hemant.agrawal@nxp.com; Received: from bf-netperf1.ap.freescale.net (14.142.187.166) by AM2PR04MB0753.eurprd04.prod.outlook.com (2a01:111:e400:8411::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.609.10; Mon, 2 Apr 2018 07:38:35 +0000 From: Hemant Agrawal To: dev@dpdk.org Cc: pablo.de.lara.guarch@intel.com, akhil.goyal@nxp.com Date: Mon, 2 Apr 2018 13:06:34 +0530 Message-Id: <1522654594-2757-8-git-send-email-hemant.agrawal@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1522654594-2757-1-git-send-email-hemant.agrawal@nxp.com> References: <1522152039-32493-1-git-send-email-hemant.agrawal@nxp.com> <1522654594-2757-1-git-send-email-hemant.agrawal@nxp.com> MIME-Version: 1.0 X-Originating-IP: [14.142.187.166] X-ClientProxiedBy: MA1PR0101CA0048.INDPRD01.PROD.OUTLOOK.COM (2603:1096:a00:22::34) To AM2PR04MB0753.eurprd04.prod.outlook.com (2a01:111:e400:8411::13) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 42d562a1-82bf-4eb9-f1ca-08d5986cbe8e X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(48565401081)(5600026)(4604075)(4534165)(7168020)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7193020); SRVR:AM2PR04MB0753; X-Microsoft-Exchange-Diagnostics: 1; AM2PR04MB0753; 3:WH1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AmCkgA6O4VjbXuYj9s5PVSQh4KGxMx8aZJr6/4tCl+PgADpXny5a6W0S9md+fXqHBepBRhIqp8iY3fz1wVzKqf0oS8CBrksEkaScYMvxq0hdgnezoLNogIeKH1sMtbfo9tIUif/nNM2z9y4ciLMpU+haeLjc8zR6twyEwpdPYvSbhfj/suk4fbghMn9uJkDrzStJ/+NsA8/yhLBTu98+/gb2R+g9ZpXul8YoS+/Jt/6/F+am23MghDpqeJX+4HWjbUrD3kFtzMRSpO10TCKksN3tg7NcI3v0OKr9WRfsa+DXgcfuXe6fBL6YN0b75Ae4V5WnXNQ1YhkVy4c1EAsY5Xyajffsv; 4:6vTvObJJpr6SlDke7VQ/xx0Iugvj3GDmooyjxch1OGye0MQE0wgTUlrLXnuPAkJ3BwHiHbqSBCInEbnEtvUTcMDBBePxBY+XevP1msu7qG4R0kDichZjckFRj2vuPkO0z0zDTJQitcmZiISsXm7tDnHjxENchZ5cxNYSgzlDtaA/C5+XC5asHrZkYB+0l4/gwy21kzf+URY6PuD2H9NXHYtHWPLDkq/9Z3uZjFyvVUZqDDBRP0pMqvuIDfynekUsz5NNbgJ2T7NvUN1vqAFCJq39qTO0V5gyUQRaqIMvJaG7Jm63juCz4D9LAw3kcYa9xRwiC0RBQPTVV/EnH3z9Ph+AFcPd9IVibiEiN1drGms= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197)(275809806118684); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(10201501046)(93006095)(93001095)(3002001)(3231221)(944501327)(52105095)(6055026)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123564045)(20161123558120)(20161123562045)(6072148)(201708071742011); SRVR:AM2PR04MB0753; BCL:0; PCL:0; RULEID:; SRVR:AM2PR04MB0753; X-Forefront-PRVS: 0630013541 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(346002)(39380400002)(366004)(396003)(376002)(39860400002)(199004)(189003)(2616005)(106356001)(76176011)(68736007)(16526019)(50466002)(59450400001)(486005)(5009440100003)(55236004)(6116002)(48376002)(3846002)(11346002)(47776003)(16586007)(53936002)(66066001)(305945005)(316002)(386003)(6512007)(956004)(446003)(105586002)(7736002)(6506007)(186003)(486005)(2351001)(6916009)(26005)(476003)(4326008)(2361001)(36756003)(86362001)(478600001)(2906002)(5660300001)(8676002)(50226002)(8936002)(81156014)(81166006)(51416003)(6486002)(25786009)(97736004)(52116002)(110426004); DIR:OUT; SFP:1101; SCL:1; SRVR:AM2PR04MB0753; H:bf-netperf1.ap.freescale.net; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en; Received-SPF: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; AM2PR04MB0753; 23:n4Ic9WLr7ZrJFdYT3uQWypaP7KUawAtGChIcluqW1?= +RV9GFXR0yMM5K+/adRliBLkLYKgWi5MfdCL924XKd6ef9ZY2WyiiAFseXXokSlYj2Cnh4qbLv8WbrQCITYOPdftLME0zBNDEN9caCn9DHjUX4ZOW5oyyUNT2+dpDcVRn235oEUrr91fdtjwTyFUc84CN+BQA8aDOlkKqAct3K8wfgBsMJ4rz/NLagVk/IhOLA/Lx7Y7tx1wBleL+bwrZlL9BCzaB+FdKQGXoatH4opVWneaf1s584D6rachnGzwND6n1KDIZY38w69oXKisC5hoxTWdT7+/9QfFsEk/GRO0ls8Bn0s7nLDLjRhvPcbeV0hSDB6qzQNqe8X0dQeRPSMhzWvX3gzJQ0ELqCLoDcL5t6S47lS9jvLQ1tR40cwOrx2cIrV0aPQPam6dFeHX2C1iSPNsHT8fKEe2Ou3fh5IiFfosR0BVIqldjwdlG2FE3PARnsggAWIOodnl3noWBu5MJIrQimre+EbszlINTs1a7OabSOjyNhnwTaylMhz61eJu8xHxI/O0t3jm25LOHYEqldOhIVC4VMmr8rP/SzlXw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EQPu9BXLpMg5pv/Jb7ilX+HnqFYg6uEtetxaCeuEbBkV1HN6jTn7GqMDRVejqkOJsndSZZAZhQa06eLvsyfdxqTKmwsHgHw+o6LEuhz6reHLPbMClvDNz5u6zoamH7Zrilflk1+sL38BQ4uybVJCDUhy3ht8ph1zX0bpmMr/cU3IKgmqKS7FODowbcRzHhOPCfljEHEIIX3dO43+hsUq+fT41+Po+VfHfy08B/iwrQccbH/eSGI6m87Ask1I7JEkP2rTV+9bYtYqK4nUwtEaHqjDCebcdH7EReZtrSyvDKoenrWrULcbH0g5FKAc6yHIyuKUB8ihCDBM/s8+NgcJjMZfwcf9OeYECExffflewoOg==; 5:+I9wyb8HMtnRfaqzndj+d8uILV65yhOXNXWfDdbKvwrzwPP6vD7zFhhnf+df4pPMTzq8TSFeKHHGw86bv0NlbGoRwruVkWj+ptcLLvRyvm+eKNRiXZ6Y0fmbXNutKiJqcc9BAtOshKj6Ozkkk8pUtQmvoP89B14Y8QZxkEeOZpw=; 24:0xq4MjoA65QD+uDlEiUQ/hG14HDsycFCxQHRyjCTLHqMXwzHMMwXYcziC9SBg8pxaP67g4Jf8novmerTshwfAiTXJmrvP/HAm0HlC4FwMzg= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; AM2PR04MB0753; 7:UVy6n3ykmlzUphJ5ZgnZryfRTmJG+JjOYEs4eJAK45ePDPoDSdabmnimtCM69mR1CZl+h8/Inxl04T1X7R02wRiTyhaCljRFDVpLsY2LPtFWQ/ZGpyQv1QsCOQpYuyCAXkX4NIhVBYNTUW7T4gSfy4bIuhSi0d9I73b0npWh5+MOE786utS8V2fColJxbnGezyfPigq4L0zJI0EcnbIeaNMHnZXFMWX7vruzLsYulTLmG/5GREHMT9VuQlCUN/mC X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Apr 2018 07:38:35.3053 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 42d562a1-82bf-4eb9-f1ca-08d5986cbe8e X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM2PR04MB0753 Subject: [dpdk-dev] [PATCH v2 8/8] crypto/dpaa2_sec: fix OP storage for physical IOVA mode X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 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" op storage in fle is just for reference for post dq. So, don't convert it to iova mode. Fixes: 37f96eb01bce ("crypto/dpaa2_sec: support scatter gather") Cc: stable@dpdk.org Signed-off-by: Hemant Agrawal --- drivers/bus/fslmc/portal/dpaa2_hw_pvt.h | 2 -- drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c | 16 ++++++++-------- 2 files changed, 8 insertions(+), 10 deletions(-) -- 2.7.4 diff --git a/drivers/bus/fslmc/portal/dpaa2_hw_pvt.h b/drivers/bus/fslmc/portal/dpaa2_hw_pvt.h index 4a19d42..ac72049 100644 --- a/drivers/bus/fslmc/portal/dpaa2_hw_pvt.h +++ b/drivers/bus/fslmc/portal/dpaa2_hw_pvt.h @@ -305,7 +305,6 @@ static phys_addr_t dpaa2_mem_vtop(uint64_t vaddr) */ #define DPAA2_MBUF_VADDR_TO_IOVA(mbuf) ((mbuf)->buf_iova) -#define DPAA2_OP_VADDR_TO_IOVA(op) (op->phys_addr) /** * macro to convert Virtual address to IOVA @@ -326,7 +325,6 @@ static phys_addr_t dpaa2_mem_vtop(uint64_t vaddr) #else /* RTE_LIBRTE_DPAA2_USE_PHYS_IOVA */ #define DPAA2_MBUF_VADDR_TO_IOVA(mbuf) ((mbuf)->buf_addr) -#define DPAA2_OP_VADDR_TO_IOVA(op) (op) #define DPAA2_VADDR_TO_IOVA(_vaddr) (_vaddr) #define DPAA2_IOVA_TO_VADDR(_iova) (_iova) #define DPAA2_MODIFY_IOVA_TO_VADDR(_mem, _type) diff --git a/drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c b/drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c index 9a74845..50a301d 100644 --- a/drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c +++ b/drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c @@ -117,7 +117,7 @@ build_authenc_gcm_sg_fd(dpaa2_sec_session *sess, return -1; } memset(fle, 0, FLE_SG_MEM_SIZE); - DPAA2_SET_FLE_ADDR(fle, DPAA2_OP_VADDR_TO_IOVA(op)); + DPAA2_SET_FLE_ADDR(fle, op); DPAA2_FLE_SAVE_CTXT(fle, (size_t)priv); op_fle = fle + 1; @@ -268,7 +268,7 @@ build_authenc_gcm_fd(dpaa2_sec_session *sess, return -1; } memset(fle, 0, FLE_POOL_BUF_SIZE); - DPAA2_SET_FLE_ADDR(fle, DPAA2_OP_VADDR_TO_IOVA(op)); + DPAA2_SET_FLE_ADDR(fle, op); DPAA2_FLE_SAVE_CTXT(fle, (ptrdiff_t)priv); fle = fle + 1; sge = fle + 2; @@ -413,7 +413,7 @@ build_authenc_sg_fd(dpaa2_sec_session *sess, return -1; } memset(fle, 0, FLE_SG_MEM_SIZE); - DPAA2_SET_FLE_ADDR(fle, DPAA2_OP_VADDR_TO_IOVA(op)); + DPAA2_SET_FLE_ADDR(fle, op); DPAA2_FLE_SAVE_CTXT(fle, (ptrdiff_t)priv); op_fle = fle + 1; @@ -562,7 +562,7 @@ build_authenc_fd(dpaa2_sec_session *sess, return -1; } memset(fle, 0, FLE_POOL_BUF_SIZE); - DPAA2_SET_FLE_ADDR(fle, DPAA2_OP_VADDR_TO_IOVA(op)); + DPAA2_SET_FLE_ADDR(fle, op); DPAA2_FLE_SAVE_CTXT(fle, (ptrdiff_t)priv); fle = fle + 1; sge = fle + 2; @@ -691,7 +691,7 @@ static inline int build_auth_sg_fd( } memset(fle, 0, FLE_SG_MEM_SIZE); /* first FLE entry used to store mbuf and session ctxt */ - DPAA2_SET_FLE_ADDR(fle, DPAA2_OP_VADDR_TO_IOVA(op)); + DPAA2_SET_FLE_ADDR(fle, op); DPAA2_FLE_SAVE_CTXT(fle, (ptrdiff_t)priv); op_fle = fle + 1; ip_fle = fle + 2; @@ -772,7 +772,7 @@ build_auth_fd(dpaa2_sec_session *sess, struct rte_crypto_op *op, * to get the MBUF Addr from the previous FLE. * We can have a better approach to use the inline Mbuf */ - DPAA2_SET_FLE_ADDR(fle, DPAA2_OP_VADDR_TO_IOVA(op)); + DPAA2_SET_FLE_ADDR(fle, op); DPAA2_FLE_SAVE_CTXT(fle, (ptrdiff_t)priv); fle = fle + 1; @@ -864,7 +864,7 @@ build_cipher_sg_fd(dpaa2_sec_session *sess, struct rte_crypto_op *op, } memset(fle, 0, FLE_SG_MEM_SIZE); /* first FLE entry used to store mbuf and session ctxt */ - DPAA2_SET_FLE_ADDR(fle, DPAA2_OP_VADDR_TO_IOVA(op)); + DPAA2_SET_FLE_ADDR(fle, op); DPAA2_FLE_SAVE_CTXT(fle, (ptrdiff_t)priv); op_fle = fle + 1; @@ -986,7 +986,7 @@ build_cipher_fd(dpaa2_sec_session *sess, struct rte_crypto_op *op, * to get the MBUF Addr from the previous FLE. * We can have a better approach to use the inline Mbuf */ - DPAA2_SET_FLE_ADDR(fle, DPAA2_OP_VADDR_TO_IOVA(op)); + DPAA2_SET_FLE_ADDR(fle, op); DPAA2_FLE_SAVE_CTXT(fle, (ptrdiff_t)priv); fle = fle + 1; sge = fle + 2;