From patchwork Wed May 9 09:26:42 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shreyansh Jain X-Patchwork-Id: 135233 Delivered-To: patch@linaro.org Received: by 10.46.151.6 with SMTP id r6csp5390736lji; Wed, 9 May 2018 02:10:31 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrT/qSEpYuqMV13FGY8G2RNKlwD3a/v3rt/m2HYvYYAZ3B4JHKwGTr5WqYhxBLy4revmzWj X-Received: by 10.28.216.9 with SMTP id p9mr5498045wmg.6.1525857031204; Wed, 09 May 2018 02:10:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525857031; cv=none; d=google.com; s=arc-20160816; b=xdqIsDbqyU2wQ4BdR/BX0jH432v+/wl6llOY8IV3ztrVEm5mN4D1QsMgbBHoi4Bgvu DpIciQWNEKgms2q9lEd3V96uRsX6TWEvFNjhx5xUomzNAdqUuLk69sMttbbu5WQQtha1 +EtTf7wB/MzZfFqCfTGpxXLqn6fbMZ5RYBD8pfDP34YnErojjQPGTe2cVgJo8ufCX5dP jIO8JWBsNcNSPKkkXdYuHwCkEeEnUOKO6k8oO0etWGN+b8qaZOmlAlWWCCY0WgzcJklO 7h7jv48+SI8qtPUb29eYSmmb3ADvHrYZ6WU2oDz0efa3GhkOeqfA39svxv1JCI6MleDA ODfw== 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:message-id:date:cc:to:from :dkim-signature:arc-authentication-results; bh=LQGuWnun2qL8+phqZFAMrTXrp9TLPyUyw6+aLniQVy0=; b=UFiwE+SPABJNu39SErcWTNweFYRCCuOi3de7nA1lYu8ary0SqkdxC14yUOmzSVea3I snQQPZig4Rd8zHM7VETgNTaugQHy7AWiz4LDXn6eWCke5tp6qjMd3xWvhcdF2Q3RMfyX RJbSEj2z9/HYM5fLAwwt1iR3Yf7AFftvxt6UXRmI83xUlRugMjKHetwd40CCpYlJTfwx uqYMa9QVNtA5cdXKIM6r+8VM/gh6w5lhlqlD4MX2MffybCRrUS4O0hgib2eQnH02YGnM ShNT5cmgZnitIgM3cLViIlfxOO5ea08oNTwVDJJOewvzcQT9PQnGWlznBN6n9zsTG5Bc xPXQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@nxp.com header.s=selector1 header.b=UXCN71Hh; 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 f128-v6si7553663wmf.10.2018.05.09.02.10.30; Wed, 09 May 2018 02:10:31 -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=UXCN71Hh; 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 CC55DAAF4; Wed, 9 May 2018 11:10:30 +0200 (CEST) Received: from EUR01-DB5-obe.outbound.protection.outlook.com (mail-db5eur01on0063.outbound.protection.outlook.com [104.47.2.63]) by dpdk.org (Postfix) with ESMTP id AB0B5AAD7 for ; Wed, 9 May 2018 11:10:28 +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=LQGuWnun2qL8+phqZFAMrTXrp9TLPyUyw6+aLniQVy0=; b=UXCN71HhBShB1zt/T83V4pF4hjBAJBGcO3T5fy0V8Z4LEQ0LS1kOmRPaKZZfKQFX7ijCbnrs/sm/+NH3A3oTS2MW+kzQF9luQqAJc7OXrrU4OhEWgROefMSidyKjqo5+YDpUveOnjqvl5B3TPXJAhppmAgvkM48OChL6N9ehuIk= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=shreyansh.jain@nxp.com; Received: from Tophie.ap.freescale.net (14.142.187.166) by HE1PR0402MB2779.eurprd04.prod.outlook.com (2603:10a6:3:d4::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.735.18; Wed, 9 May 2018 09:10:25 +0000 From: Shreyansh Jain To: pablo.de.lara.guarch@intel.com Cc: akhil.goyal@nxp.com, dev@dpdk.org, Hemant Agrawal Date: Wed, 9 May 2018 14:56:42 +0530 Message-Id: <20180509092642.9092-1-shreyansh.jain@nxp.com> X-Mailer: git-send-email 2.17.0 MIME-Version: 1.0 X-Originating-IP: [14.142.187.166] X-ClientProxiedBy: SG2PR0302CA0005.apcprd03.prod.outlook.com (2603:1096:3:2::15) To HE1PR0402MB2779.eurprd04.prod.outlook.com (2603:10a6:3:d4::13) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(5600026)(48565401081)(4534165)(7168020)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7193020); SRVR:HE1PR0402MB2779; X-Microsoft-Exchange-Diagnostics: 1; HE1PR0402MB2779; 3:DDvvl32goLEr0cJopwfp9KPZZdJnKOaZpfNO0sAlaVLA9UYxKddPv2xymp6plnknY5u0Xh1brSXFj+S+51OlefmyiI1LiDbVKqCulT1oIo7x+7avCXRU06kH07x2PLZnDEcq4nCyMGjn8M1CHt3iN5OM8y6AlVAhzeD/KD6KbJp4sh0p9QxB+1vA+gLc8RqbLqFjsYtDQ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KeI6s9b/72rWTfpnpcCrw3BfguYZ4KDEFJATys3MKtwCj1ATn2FsQhokmtblD2NLJYqNUA7n7mxWYPRFwG/YSKJfCeAaOad4UlCIrHXU2fbArFIVl90Mc0D78Iwc8zzvpzIz+pnT6+lGjMQr3LVu; 4:81Mj3ef7RT3/bqtwd/v2HXOx2atMMeM0aELFegsauToO/kJB1GQB+YLZN4CGHjII3SeC+x/AqZOoCmuAAcsPODZsQXsEFZV4ypUNDC4Phpj5HNyo6iWmeaZRewIIm3QQvCcz8nYt7CvPa5Ek8Y26d5fMQ+IXBkLuW7f+p3rzk1faqjOim6KomvQfL+czNY7NP6UFs4ftnucznJgeSHpTHURGf0zqVBHh8F/Bc+nzcY4VTKVIj35C/cewWZYKbQKzU+nKA1pfR8+NNmh8+VXOFC5rF2faMK8HN7xjdayGXoJmQLrz756sQwyWkZga8SMq X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(3231254)(944501410)(52105095)(3002001)(93006095)(93001095)(10201501046)(6055026)(149027)(150027)(6041310)(20161123562045)(20161123558120)(20161123564045)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(6072148)(201708071742011); SRVR:HE1PR0402MB2779; BCL:0; PCL:0; RULEID:; SRVR:HE1PR0402MB2779; X-Forefront-PRVS: 0667289FF8 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(396003)(39380400002)(366004)(346002)(39860400002)(376002)(189003)(199004)(6512007)(53936002)(186003)(55236004)(5660300001)(6486002)(6116002)(51416003)(68736007)(386003)(52116002)(1076002)(25786009)(6506007)(4326008)(5009440100003)(2351001)(2361001)(97736004)(3846002)(478600001)(26005)(7736002)(476003)(105586002)(2906002)(6916009)(48376002)(956004)(6666003)(50466002)(2616005)(486006)(8676002)(81156014)(81166006)(36756003)(66066001)(47776003)(305945005)(86362001)(16586007)(50226002)(44832011)(316002)(106356001)(8936002)(16526019)(1857600001)(110426005); DIR:OUT; SFP:1101; SCL:1; SRVR:HE1PR0402MB2779; H:Tophie.ap.freescale.net; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; Received-SPF: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; HE1PR0402MB2779; 23:7X7PPdk9wUmWGgRj95hhP5NemHk5NQzbh0fLAgd?= 8lMGVEdeAxXgpjRGqW5zA4roYtXjUh7CEPfBU8nXLwCd3mxVfuLOsO8yg/hLPHkfZj+AMbtLaWUe+X8kKYUqbzm5Jl43iwqDXenq6URLZrYQT23zCVHq6BiaBzKRGCM5niOOTNxERkMKd9oKgccHXEYmJknuastty8+GYCnULzZGlvidBo8lku8Y2BiKEy4mhL+/PPneHu+MWh1Qk2FuJc/LwAdLxYwuTSmP2yhY9FBHBoOJM5uBF4si7NPkB53wBogSYQoJZuoP8cpOmrXoVzHSE/2Faykl/WIZuO+ociYbnph/+e8fF5ggfdaJujyNAffO2EtsdgXme368poqhvrN19lRb7XelVWC7tJ/6d4Usd0lehOC4OlMt469JMbAuFtmYBo4HoiKzoKa9gmZ2iuUvYYQqBZfZODHRp4FNCxjUD+/wpunYpbFm51kR1uNk91SgxW3X40eTZEQw7+1hM0A3ykGJrwKeGFYP1SCwSausVpHKnxJRmySztkjcOIZG9U54johkghOe5JRZVaKLyFRTk6WPg1OKl+BgB9RVl5u69Q3I1twV2PrGM99RGzYeyK2Dw7UaXGtmaxDdMtreq7BZmY8KIj0kcAdVvnuAiE5bfj2jg2f/iSzp8Mwse9Blf3B4x4kulyd3Zp3xVD3LHijgUGlqMpLLyU00TPOjm6Rs7looqsYr4KjgYpK1WGbcVcM6l5AGeIWPf/ndqrVKHjeuOWe1aSqAhN5+1SIDkQDMiyozvho/skPJdD41W72q6RZ8hjf/FbqjUxN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bS70ud9XS+rn6zrw8gkmCocLYkuh1zubCBANLBIhJ4/QahXv9l9fay3F44JcOyujV3hf11PgWf6ZfwW6SptXrrFRF5v9hP4AxOm4K1cF3g94ipwg==; 5:WRU3ZozY+TCOoDU/HiXxofnsiZLsJpmiuOmFWpBB5tzPm3q+rSIo6VH/YjnFjSNH2Xk81jwxKjKVBGkW17jiKvs+poYrk0bWbnYHoaaSn+g4KN3B+VmGrOEOU+tKH0v907b5fnETS0yXKi/nHcr65fh6dQx/A7ZdFpf8TgZwovc=; 24:fGsvqUv/c63yUyOYTYskN/zzVsYwZNTK+5EiqhzYezRiaGaWHUEMel3aFDXLwqRMgIGzRp8xh9OfH6VtDTXfq1wa2dNz1jP+gEgxA4MQ3Hs= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; HE1PR0402MB2779; 7:G0+0ST0s+/XlHiP8pCEoDED3ggOEtD53wHuaLudaagQwCoe47ng9aRnULAFC/xk+PWYwwFk6H8mRqGh2y4vx/u49eFNRejjRYnINWWIKsWy94jBWM3JCANsrH86JNEWoEU1dAnPXYiMSY3XR5F8gqO9bdw7hoYadDWbvj8uqpCddFqTyqwn6/lhhqBBhRD4vu3JYp4pvIOjvvHAiDYEznVUUD75Cs/wlXl11zm2Jzw10jCjLVJPP7XLzVWO1HnL5 X-MS-Office365-Filtering-Correlation-Id: 0bf28e57-5a60-4bc0-f8c2-08d5b58cb457 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 May 2018 09:10:25.1631 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 0bf28e57-5a60-4bc0-f8c2-08d5b58cb457 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1PR0402MB2779 Subject: [dpdk-dev] [PATCH] crypto/dpaa2_sec: remove iova conversion for fle address 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" From: Hemant Agrawal fle is already in virtual addressing mode - no need to perform address conversion for it. Fixes: 8d1f3a5d751b ("crypto/dpaa2_sec: support crypto operation") Cc: akhil.goyal@nxp.com Signed-off-by: Hemant Agrawal --- drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) -- 2.17.0 Acked-by: Akhil Goyal diff --git a/drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c b/drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c index 58cbce868..56fa969d3 100644 --- a/drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c +++ b/drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c @@ -1261,8 +1261,7 @@ sec_fd_to_mbuf(const struct qbman_fd *fd, uint8_t driver_id) DPAA2_SEC_ERR("error: non inline buffer"); return NULL; } - op = (struct rte_crypto_op *)DPAA2_IOVA_TO_VADDR( - DPAA2_GET_FLE_ADDR((fle - 1))); + op = (struct rte_crypto_op *)DPAA2_GET_FLE_ADDR((fle - 1)); /* Prefeth op */ src = op->sym->m_src;