From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR01-HE1-obe.outbound.protection.outlook.com (mail-he1eur01on0055.outbound.protection.outlook.com [104.47.0.55]) by dpdk.org (Postfix) with ESMTP id D0AA21B134; Fri, 12 Oct 2018 12:05:42 +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:X-MS-Exchange-SenderADCheck; bh=t7IuKBNiEzu1lfkOiLjpIRNyuf3igIa8JGtdweN+ikc=; b=dwszcfYnZA4rUuIcQ9+fAqiIeAdURN9b/Hlp/uQUPXkq2q0gPkYFs16OZswaalNuM0lF5YUV7wBV9eqnvAXrdvcDVTqNUnQ2dO8zanKcOzpy2Q+gMYkZaz8iWVezrNt3A2pXJmAfJgkKSWPWb5MoFUIDRTNZv+ojOfTBXSX+ja0= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=shreyansh.jain@nxp.com; Received: from Tophie.ap.freescale.net (14.142.187.166) by AM0PR04MB4676.eurprd04.prod.outlook.com (2603:10a6:208:75::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1228.25; Fri, 12 Oct 2018 10:05:40 +0000 From: Shreyansh Jain To: thomas@monjalon.net Cc: ferruh.yigit@intel.com, dev@dpdk.org, Nipun Gupta , stable@dpdk.org Date: Fri, 12 Oct 2018 15:34:12 +0530 Message-Id: <20181012100426.29349-2-shreyansh.jain@nxp.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181012100426.29349-1-shreyansh.jain@nxp.com> References: <20180926180440.31726-1-shreyansh.jain@nxp.com> <20181012100426.29349-1-shreyansh.jain@nxp.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [14.142.187.166] X-ClientProxiedBy: BMXPR01CA0004.INDPRD01.PROD.OUTLOOK.COM (2603:1096:b00:d::14) To AM0PR04MB4676.eurprd04.prod.outlook.com (2603:10a6:208:75::18) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 07f8a592-8eb8-410c-3f8a-08d6302a44aa X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989299)(4534185)(7168020)(4627221)(201703031133081)(201702281549075)(8990200)(5600074)(711020)(4618075)(2017052603328)(7153060)(7193020); SRVR:AM0PR04MB4676; X-Microsoft-Exchange-Diagnostics: 1; AM0PR04MB4676; 3:0CnuenoFHjbmlNTnVnCQ7R1BEJ8vP5Lly0mLon5F+aK2VNNYVQTNw/DQghW0kvl8pBXNXHAAoz2lyf/NcxecU/IN0PaSvFOPwavmGDj5M3npXTkV+7G68RoaTtYGFMWg53BrFPPBehkIZwegmEqiXDp+HiMRBx8RP4OZ3l9QlDxARMMaokgTi+GF8pZIdD9U8dcV84T8dckUdSOHVvUxrBFDRom9PD/YtgVmgXiVh8Jd8V99W5vtyUyc9DwfFZSz; 25:Bewo+O/CPL9QJfGALDOJKANsUQd8js0RrT89/ErZkLQ+uYZHJYO26rh07xyw2JPBugDLFpD+R/bNoP9SxjbRdWJRFzOoBphrfSPnYNyMNZaoFvdzBn/+V8qD/oKfnj1+tyQCsywTrO/JRumj0v9+8k4tnCqSHRdGBOlM/Exp5lHLdqUGIwKKHaB90HYRZbtNFPXiijb3N5mao5bmGStR1E2+YmF3YknnBW4Ey3SR/Oo3P5ovMm+PsWlxG+duiue/Ul0OegMf8Bdyx2nx0xJnU6eUJhA1POnDcJtGks7Y6CQVGWEkXjvQ39L5ks7rEDhZWmhF6at5OCqvDnbaKEg6gA==; 31:NXSSKKh3DO3CYzCeiNtq1xMAZf3U+av+VchKdAhZw3L65JV2f/GlkTujyPu/Kh3JOnmGLxmLq/YnhQ5vd8O/M0HZ0Ixacq8ELTWZTa1v/2FMkErwVE6Oxx9mUlowwrHCx3GlU7wgBVMRaUs+zaqFzNo+A3kdhr2rbXg2rUFNtUyIGtK7SsuSgAh2oXCCWnFquAcdAYairISrrZnja/qkN8J8xOCUvoVkdrB/mbkLQqs= X-MS-TrafficTypeDiagnostic: AM0PR04MB4676: X-Microsoft-Exchange-Diagnostics: 1; AM0PR04MB4676; 20:YSY1ipNXM30YY8h1sXoD7uKAGArqW31rMCewuG3PUfXaUl0vbQEYAICar+M0clpr9MwTTUSCCahdND5Ok69fLQsIBoOK8d5g7eYzXDW/D9C4CgYrEGrJaVfk94KSS2ovEa4N3qXKiQAi/U3rJkdnB+DO1402aj1w0Vjk8xjN6Y2FWNlS+QBQZED03pzaLQsrDADJZKAZG5Fj3PVR+Wniaoowvzp8QSF8ULAZk/Ph+dM//2eMLzLLz4YnZojVsn5O72bGkG8QTQ71ut7DZnkBo1hDz7NPGgZCr6owusT4bu2F4wFVKFmGeGD4xlj/KwnmWcJuE5nNa/ODUVm8eWPTBtyTeH+7gtjP3AmSlU6eoqtjJenaT8A246IJc6TpHa0WwfeovZz1yGnOpe5YOMUdH56q9RvlrU9+LTKfQvIJBrMOMdeZwg7L8TV5F6XhZcZJbKIamUXEmpu7qI2vx0zpjLimHlBRoGBe2MdpAG6naIdHqlDHHPvOdQS+xd695i1W; 4:mTuCcE+S5MPUbx83EU3J7lEKT9eerRAhVb3CrcSOqL+/kHcVJADCEmFVc/Ud2gevdA58kHk9WMtOIMS2ynzBt7gYKm+qslkSIUeR8JxEzOkjs+Nu1l9+0IHW80rxPaugUts0neRDGYcXzJ0sQudjzceCmcoVo05Yit1l26TeAJiZMg8HzEiyc/iN2vEU5P1dMmOcuJS9e+KhrR19tWEjjejfSi4U7sFUoFlXUNlG0uHZhtaP2WDvt9h0o2VcrJ2jOCEGdO2wbUhOu8654lxv0JvuV+yW0NIz9t5JmIJxo2RrMJ7ITr35R/7jn/Bze4Hp 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)(5005006)(8121501046)(93006095)(93001095)(10201501046)(3002001)(3231355)(944501410)(52105095)(6055026)(149066)(150057)(6041310)(20161123558120)(20161123562045)(20161123564045)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(201708071742011)(7699051); SRVR:AM0PR04MB4676; BCL:0; PCL:0; RULEID:; SRVR:AM0PR04MB4676; X-Forefront-PRVS: 0823A5777B X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(376002)(396003)(346002)(366004)(136003)(39860400002)(199004)(189003)(2906002)(52116002)(16526019)(14444005)(53936002)(8676002)(478600001)(186003)(386003)(446003)(105586002)(7736002)(106356001)(6512007)(6116002)(86362001)(3846002)(81156014)(50226002)(68736007)(1076002)(47776003)(5660300001)(6506007)(8936002)(78486009)(36756003)(316002)(26005)(66066001)(6666004)(25786009)(55236004)(81166006)(11346002)(48376002)(76176011)(44832011)(2361001)(956004)(51416003)(2616005)(97736004)(1006002)(50466002)(486006)(476003)(305945005)(16586007)(6916009)(4326008)(6486002)(2351001)(110426005); DIR:OUT; SFP:1101; SCL:1; SRVR:AM0PR04MB4676; H:Tophie.ap.freescale.net; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; Received-SPF: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; AM0PR04MB4676; 23:FlkRiu0eEkdrmKm7a6kRQKuwM/mF0hgCh4gwmR8vQ?= =?us-ascii?Q?ztjh8QV/zKeCd7R0OOy6zQSa7FlBNWen59vveWI2wG9yOV7cBYgHbpnN/v9n?= =?us-ascii?Q?5Sv0xCse4HKL1T2cZTrM2bqnjzzBSI7MyUlvtE8tmnJqNMbYapx3BUob77Z2?= =?us-ascii?Q?pYx0p1P6xuBvN3Pxmby9EEG0KFzGLnKGoyZRXMu9BpZj+1WoV4eLe5H3Yvne?= =?us-ascii?Q?6pjlAFPdyOJ0PcS3Dd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IgRjWl/S/Jb/Abgi73D7yVRvjJu2L9SA5nPjdoR5Dxxt/K3vGj602m4Q5E3CHrssUWYvSBT6sxpGM+Up3r1Gt0wlR7DeREVbN1A6BwcMcxDbanXzcuFxY9ONlihANaBJmXPY+BH7ydswBye/MwOVgpuFDQ==; 5:ZaXfgmz81PbR/SmZcvuQE9+X7JVNaNpuLEN0hs/YSRoaiBEZhO7+l1q7iiW5M9eIZtc9nDP5eoagPTV508lolne9936bHtIZ5T/JZx3yCNKaD5vTlPLNArB7yB6i0O0HqQs02aPcl6IyQ1gxdv9qLA4h5AivhVuPmDFugIR9JOo=; 7:6WkuK/7It1sTF60dnuc3jN6igSiG4kjMLI4k13AqYwa3E+jYY+jho/xObqdx8buH3mp3W5M4SJ+lIaOGfk3cLmaafvNp1Sfwug6Sg4y1ORWZ+kOSMfz5aDBgmLhrEm9X2D0M6FmEBi1Fvw4rV4V+FDMh3iMT6WJHkLkBnL9rMByMhGuLi+95J81PQKGYAjgUgHblDvp47ZiRsByf4MfWaVDdflKx5P1tZawqEvjYXEEye51LzLBhVDUVYw4ei3eT SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Oct 2018 10:05:40.6813 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 07f8a592-8eb8-410c-3f8a-08d6302a44aa X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR04MB4676 Subject: [dpdk-dev] [PATCH v3 01/15] net/dpaa2: fix IOVA conversion for congestion memory 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: , X-List-Received-Date: Fri, 12 Oct 2018 10:05:43 -0000 From: Nipun Gupta The code was incorrectly using the Virtual mode, whent the IOVA mode was set as Physical. Fixes: 5ae1edff6895 ("dpaa2: prepare for 32-bit build") Cc: stable@dpdk.org Signed-off-by: Nipun Gupta --- drivers/net/dpaa2/dpaa2_ethdev.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/net/dpaa2/dpaa2_ethdev.c b/drivers/net/dpaa2/dpaa2_ethdev.c index 880034fcf..9ae326023 100644 --- a/drivers/net/dpaa2/dpaa2_ethdev.c +++ b/drivers/net/dpaa2/dpaa2_ethdev.c @@ -568,7 +568,8 @@ dpaa2_dev_tx_queue_setup(struct rte_eth_dev *dev, */ cong_notif_cfg.threshold_exit = CONG_EXIT_TX_THRESHOLD; cong_notif_cfg.message_ctx = 0; - cong_notif_cfg.message_iova = (size_t)dpaa2_q->cscn; + cong_notif_cfg.message_iova = + (size_t)DPAA2_VADDR_TO_IOVA(dpaa2_q->cscn); cong_notif_cfg.dest_cfg.dest_type = DPNI_DEST_NONE; cong_notif_cfg.notification_mode = DPNI_CONG_OPT_WRITE_MEM_ON_ENTER | -- 2.17.1