From patchwork Wed May 9 12:43:24 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shreyansh Jain X-Patchwork-Id: 135260 Delivered-To: patch@linaro.org Received: by 10.46.151.6 with SMTP id r6csp5575622lji; Wed, 9 May 2018 05:27:22 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqYzYUBFOEGBKY0ooHcFAcSwJiStPDFbNqkjR0TOSlBHJiigkIkLsy0Az6h1aW/bWkMKKbJ X-Received: by 2002:adf:9466:: with SMTP id 93-v6mr861193wrq.264.1525868842529; Wed, 09 May 2018 05:27:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525868842; cv=none; d=google.com; s=arc-20160816; b=Pu9R1Sy8L3TXSbGChR6WknApUZSTyvbI1cjsvLcURZi0kTg9vtKyVpFfEKfUoz0gvk twqd0XHfFx27hNknZArRBC132SlbK+BKZS+vB1103bpvbSYY9pj9U48srgk0zm5pnYBt EuGD4fb/ZtzsnEeRfSEzY9xPzVt7o/yOZxpOcoAJ/U3oE82GzLbR/BYSo5FR2JhqyATb /IrX3QGyPbF95VNxBTNWeT7Td68OsmrMqRhufLGRMY+/1d83DW6bA98nCzlR7AbFCSRu rTsbE74VZtBpthQ4P2sKFGNKbCQywp8T0CLilMwTMJUzuWl2wSZaYZw/x0dL1TJe+DDw 5PhA== 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=pcRohGQq95tBgc5ssQws1vp1L/iHRWlS+pSJZM81Qh8=; b=ilu4QcB1wuRcanzTrlxpxgPNnjGuc0JAIrdRD85SCmQ7JQptQafIFL3gr/K/g/xj9V xMfIptIi47+emv7sbuOiTIgSdFpVRHZCNWIlZoZaIEptbafqmLk8cQ5lnI9IrqbQ+1jA JauNK43OFBfu8H188i9xBBRZ+S6Bgs/Eaa4tYxoVXDuRdGKtxHSZXRK9U0YSxINGwdN7 OAwBqMoLUi7sTy89P5lWDYCh65Y1Dlp645geAoPNa4Ujt0BSPaixjkrRwAeQYV3Ucs4m EdyD3A538/5Okv8Rj4vlTH4E54saMYrfmjjoJ5L7SKL664fB77nw+emUjjn1ToqDKetp QLiw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@nxp.com header.s=selector1 header.b=lUp1ik8M; 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 o11-v6si7850763wmo.199.2018.05.09.05.27.22; Wed, 09 May 2018 05:27:22 -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=lUp1ik8M; 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 129827E93; Wed, 9 May 2018 14:27:21 +0200 (CEST) Received: from EUR03-DB5-obe.outbound.protection.outlook.com (mail-eopbgr40078.outbound.protection.outlook.com [40.107.4.78]) by dpdk.org (Postfix) with ESMTP id 6C5237CF6; Wed, 9 May 2018 14:27:20 +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=pcRohGQq95tBgc5ssQws1vp1L/iHRWlS+pSJZM81Qh8=; b=lUp1ik8MsEcRlZktV8v1i9Q4R+JuLySK3pkzFLkwKOMQeTfrzFjzKQ05Z+Xo1nx2x6OgnoM2EoLu5Nyex+mhA6cPGZs77AGtoE6foKYZ0s2Aay0OUZFL44lCSAyKa9ljK03z2UUI0Kbyi6Yxf0TYGwCZf135Ov8/Di2n/A6kdSc= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=shreyansh.jain@nxp.com; Received: from Tophie.ap.freescale.net (14.142.187.166) by VI1PR0402MB2784.eurprd04.prod.outlook.com (2603:10a6:800:ad::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.755.16; Wed, 9 May 2018 12:27:18 +0000 From: Shreyansh Jain To: pablo.de.lara.guarch@intel.com Cc: dev@dpdk.org, akhil.goyal@nxp.com, stable@dpdk.org, hemant.agrawal@nxp.com Date: Wed, 9 May 2018 18:13:24 +0530 Message-Id: <20180509124324.22258-1-shreyansh.jain@nxp.com> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180509092642.9092-1-shreyansh.jain@nxp.com> References: <20180509092642.9092-1-shreyansh.jain@nxp.com> MIME-Version: 1.0 X-Originating-IP: [14.142.187.166] X-ClientProxiedBy: BM1PR0101CA0029.INDPRD01.PROD.OUTLOOK.COM (2603:1096:b00:1a::15) To VI1PR0402MB2784.eurprd04.prod.outlook.com (2603:10a6:800:ad::14) 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:VI1PR0402MB2784; X-Microsoft-Exchange-Diagnostics: 1; VI1PR0402MB2784; 3:DstWF382fjZiaMvGrzUOWEzyHB4248uzzqMwgYh4LKZDYEef0bFNdpIVc1NiTpUmmLBOKpV5IzRapeKqVH07gVZ9MOA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G+MCxXmMQ3ryrVZ/9gFhz6EJX1LRAXIdIdkqv0nK09iWcL3gdi1kCX84zQIqTAEE6D1u4Hvg8VWKH8+XsiTLhwJPvuisUZGxfqMMLmW6zygXrnNnndjDBZHeBEktIINf2Y95KA2sNHiul9i8TNj88DmPvMNCWx7xELwen8lGHL2bEOI1mgaZEeoZ220dEsLsxB0e1HQr6EVDwKBncVojRRvkpI6pjGDPrZsOU3DogRd8tx9PqErap3E6aIYeEWBzU7X01TOU0; 4:T5iDJSZGV4rWa1ACbkOqlyhBfYgJ91JPGk74zcxFgAttJnFvObClyLZuL43Wtv5qvAVas+oXDkNeUmSsZolAeK+SaRF3WZJf8TQnB7wtDIiYgEU4IfuT0JNfU951eYm0W5bIFT3mEXD2EEs7izlYe6ahPWoQThc55BshjvMhpUBbF7RymgeuHiqw4DCSOyYpPIdriTCoSY8rZOa0L+9BuSBNtx/GzB4sYURt9dGtE9GiBm1CJ4KJlMF2mAvYBTIyZ3ko5sl5+m0p0aEcUNWzsQIlXNFYkeqaAQ22TmStdxifxtTtciL+91c4CGC6oUYjH7GB675DDOvwhM6vQ1kVI+jRcpw1PhMCgXwneQ/mNHs= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197)(275809806118684); X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(3002001)(10201501046)(93006095)(93001095)(3231254)(944501410)(52105095)(6055026)(149027)(150027)(6041310)(20161123558120)(20161123564045)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(6072148)(201708071742011); SRVR:VI1PR0402MB2784; BCL:0; PCL:0; RULEID:; SRVR:VI1PR0402MB2784; X-Forefront-PRVS: 0667289FF8 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(396003)(346002)(376002)(39860400002)(39380400002)(366004)(189003)(199004)(6486002)(6512007)(53936002)(305945005)(7736002)(36756003)(11346002)(44832011)(476003)(486006)(956004)(2616005)(446003)(47776003)(86362001)(16586007)(6916009)(6666003)(66066001)(316002)(6506007)(386003)(26005)(186003)(55236004)(51416003)(16526019)(52116002)(25786009)(50226002)(5660300001)(50466002)(68736007)(76176011)(105586002)(106356001)(3846002)(1076002)(6116002)(48376002)(97736004)(5009440100003)(478600001)(8936002)(4326008)(8676002)(2361001)(2351001)(81166006)(81156014)(2906002)(110426005); DIR:OUT; SFP:1101; SCL:1; SRVR:VI1PR0402MB2784; 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; VI1PR0402MB2784; 23:mZTusVWEYUnJaENkA4suo+8B6uGV0VOpHcIUjAZ?= yIZ/bM0zg/3/WzmGeEmgPR1nHmYAFcffm01um8qVacZxltrGEDeANSC98gUBs9GS5xo0B0jaMBZtDdr4QnVvUgZZqOINrJR3WnVEn+xIg15/a+jxlR8xsSeaYGOQmIsQ+zy9ygI2upiPlim/hqLBhhad74sXbDPbjgCwR5jrudUpIbBMAA5GKDDW0NdI9UM0mUSnFMokCwQdqARjX0yZe80CsguZ2h+IJrVoRqVPGAK5KQiW+pNLgj+SI2xSzaKuCJvx8dLAnvX8X/p0KrKOQzdc0lVRNQJ0mq22xpqkX4GkYlnmsb9rjqVEJX6qcUtP+iQD86bv7rmxDXoCnIaXPdsVnLyU7nySus+4ZHNd1pytILYrE8xitVf7K7RZoFgAg05pHAzP2tFiBN6OvXKjPh4Ma2oJAWJNCzLyxFvgrVGfE3z2ci3WPYqdRyVAHUkf+0vjKA0rtWYgSADtjWORg4S7MOuXMGe2ekVIRNKcfxwl7TfbqM4cL98RFJDHJU5lxjTwmnOt6TNmz/TdK8eeUajQEvhtsVRuN0NzsTBFQNjKvjh6RIQPFQ2ZHvfTBl/HGfP8Ey/kOKOtUB0jHwkH8MuHeleH9MOenNifvGgWSbpb7xOjCUCxEorNPEyOkqjElRop4lsiQVYf3tbem+xGWFmODeN8U3EEoSgAik9PneDTNE0DB2yu/vUfrjUNdsRT8JQoiEtOQ8CwwZQ2ZdAX+ye0b94YmPtiad22yEapBoXupQRAWATyY9n4+ssJ48MlgS4z+NBgOHramA3f/TrL1CqE2UvcurXTYnRA40fo1yZP0Z/P7/0qu3j2s7AENKU8i5gDxPP4wyVs4XJLvx8Pk6WWxVriAxxOzf5hR8lyv2L772DCflwq5p280GUirs48qIfLJTplbkj1wJnGc+qr1NUsUvVqSG52FwZwbpYjiwkb0fpuutVftKEvtRZx/q/tnxIG9C1qOIHuURlPh2VK4hKpIMZHbpaen+tvRHGlaboz41FFkelKuZOiOLhsUGTKYMJtmeKbjsDoNcpck5cIZZ1qQaXPFSZc4sja2JOrHR4SlbACd3bF4kKtEOoCDFcYuV3Vz/lbMXtZ/GRg+tXIIyZF7TU3vGaN3Sp0WlCYX/bUJ/mtOyimxHz0RoW9kQ7D24pVJkAe4iia71Itwp4IMl+yYWXEYqX86JN7fSsMzpiX5jVh8RwtRQ71KEpi/p+h69HgHzg1vUNkWUwQ2VqTHg9v+StRhEK4cAk4qNgESae5cp6iyQIdqZD3uoPINWCXwXGAnM2du3fGHNnr7bk5xprPv X-Microsoft-Antispam-Message-Info: i36VSaP5fwFtu0bgeCpyh4d3boAK5clTYeH4QXzm36k0/eE1xU7K27eXnitJ9keqhvzVVG8oVYJgH+VeOcqsF8GKch3tTolg+lkV1bMpuFNvJPVzrZJualeMZSBWOX2A5slDztfEY7/kF3cALiq1qAE4oeeglhAhByAlDRe2XkYozHo2eAAXpdEPP40/RpEt X-Microsoft-Exchange-Diagnostics: 1; VI1PR0402MB2784; 6:acsntZiMIRJfaN9M83WSz8765qq31O4UbFfeax7528VGF992vbtylY0RmH2j2mjnzec8zRTfhm7wfebOTmvCcsse4zrsc4486HH7+LyQPHRX05JxOwwtlhOFj6PwaeTc+UJ/5s60lLTfGHGAS1sbTvxbKwm14p4Ok1TzqpbKcbtuCSapWghDwDbSvQuL1eaya051fcAfvnqRrmmAxnOSflWPCq0U6tLaKpdMkr7XNGD1O6xmPQtQOtNFSbIECZAmhi2z1gUww4+wWg9Ck94UhsV53kQxsfQZ5JYNbItm3bXJGcaPZBFwvAzYna5AMv9yW91fk9iR+nkO/ltM3tqOJJA8Mfz0RXNLJBPToWJvKdmOfs0ISnjwZS5brj/qeG3wJ9MuABX7kyohif2bNLwIsIH0bScEbJ+T85uZfzmJGOsHOztHD4Pg6lonvpQW3ACvktmELe6IH/PoloicYjzitg==; 5:lF/LhbAusAinDvRBGTqt4duk+nmnOTU3g2t5ybmmfcV786YDQ3facz3GdHJuWDDPghH7rNZTfunoNz/AmFK9cf8Ay229BX3sHqbqlCflRUdI1BS8W2XpcZdSvsID0KRN9p4/5pYNH6EIaYPgRW5pMdkn2TAeDqpORYUoBBJSu/w=; 24:TionLxs1GLZONMrRjDYvmUwmVk91mJKKDcUeTrwhJZRI00yjz/dTXjJU7gpI4ADvfSazdSOhAKjxlTD/LvY0igW0GxLzksARF7mjCZVqQmI= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; VI1PR0402MB2784; 7:ELMuqaAH8f28H9b6J08uJ7sMTtI64fPIwpJ7s1CoYut3foCkcJ6PPeqE80+9BaAtOa/0YG2iFMRLpGqWMrej1PC0o8PJjGTnT7suV1dBARb0LcPErRJ4DzsvwEJ7g9IVUNftGzGlN1T2JoBNM+hB+feEgl3J6fDEe+93QJUvZPF92F2/Lm6BB24jnx+WDhKwGduDxsgcFVmqyPtdFQZRSDOdBJXTRzTsJacBjkAInDDGaAFJt713ulPsgNoSxxqm X-MS-Office365-Filtering-Correlation-Id: 0887b62a-e037-4bb4-0489-08d5b5a83525 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 May 2018 12:27:18.3544 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 0887b62a-e037-4bb4-0489-08d5b5a83525 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0402MB2784 Subject: [dpdk-dev] [PATCH v2] 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 Cc: stable@dpdk.org Signed-off-by: Hemant Agrawal Acked-by: Akhil Goyal --- v2: - fix 32 bit compilation issue drivers/bus/fslmc/portal/dpaa2_hw_pvt.h | 2 +- drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) -- 2.17.0 diff --git a/drivers/bus/fslmc/portal/dpaa2_hw_pvt.h b/drivers/bus/fslmc/portal/dpaa2_hw_pvt.h index b09218f27..820759360 100644 --- a/drivers/bus/fslmc/portal/dpaa2_hw_pvt.h +++ b/drivers/bus/fslmc/portal/dpaa2_hw_pvt.h @@ -199,7 +199,7 @@ enum qbman_fd_format { } while (0) #define DPAA2_SET_FLE_INTERNAL_JD(fle, len) ((fle)->frc = (0x80000000 | (len))) #define DPAA2_GET_FLE_ADDR(fle) \ - (uint64_t)((((uint64_t)((fle)->addr_hi)) << 32) + (fle)->addr_lo) + (size_t)((((uint64_t)((fle)->addr_hi)) << 32) + (fle)->addr_lo) #define DPAA2_SET_FLE_ADDR(fle, addr) do { \ (fle)->addr_lo = lower_32_bits((size_t)addr); \ (fle)->addr_hi = upper_32_bits((uint64_t)addr); \ 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;