From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR03-VE1-obe.outbound.protection.outlook.com (mail-eopbgr50063.outbound.protection.outlook.com [40.107.5.63]) by dpdk.org (Postfix) with ESMTP id 37A041B462; Wed, 26 Sep 2018 20:05:49 +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=22j9nQk2zdT8iu6fVPO2Hjegsqa538KymOXMV9paBwc=; b=VIzfQWyY+73tmbb++APL32VCN0HaRqV7nQakA4jVhFv0C8vpb0gFNFUbMpOQrpW/X5yagJL77qno5/MOw2m2s9ZK85PfGMYU/+aggR35zJiRBxKXmGg7Qxi7HvIlyiG51LqoDu/3trhOiYylDp6TR7QOhK2nCvQ7rPetGnjAMyk= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=shreyansh.jain@nxp.com; Received: from Tophie.ap.freescale.net (14.142.187.166) by AM6PR04MB4679.eurprd04.prod.outlook.com (2603:10a6:20b:1c::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1164.22; Wed, 26 Sep 2018 18:05:46 +0000 From: Shreyansh Jain To: dev@dpdk.org, ferruh.yigit@intel.com Cc: thomas@monjalon.net, Nipun Gupta , stable@dpdk.org Date: Wed, 26 Sep 2018 23:34:26 +0530 Message-Id: <20180926180440.31726-2-shreyansh.jain@nxp.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180926180440.31726-1-shreyansh.jain@nxp.com> References: <20180917103631.32304-1-shreyansh.jain@nxp.com> <20180926180440.31726-1-shreyansh.jain@nxp.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [14.142.187.166] X-ClientProxiedBy: MA1PR0101CA0014.INDPRD01.PROD.OUTLOOK.COM (2603:1096:a00:21::24) To AM6PR04MB4679.eurprd04.prod.outlook.com (2603:10a6:20b:1c::18) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: f1b5685e-02c1-4512-bb4a-08d623daafe7 X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989299)(4534165)(7168020)(4627221)(201703031133081)(201702281549075)(8990200)(5600074)(711020)(4618075)(2017052603328)(7153060)(7193020); SRVR:AM6PR04MB4679; X-Microsoft-Exchange-Diagnostics: 1; AM6PR04MB4679; 3:txs18aggsi3SwiQ7OJhUAXutVDPSdvBZiT8o7k7CVvlE09kaLCUcdYoBNfXPNzdebkicKKSs3gzVv9J7D9DS2nllvi9MtGpORx4QNDAoQ1xrQA1sCo2Bbsqg4niy5yV2WsiA7hr4Kv0KLIHkbDlueK1Vt2Nq/FQdpXn341z+R0trsM+wvqOzszjuVh4wO39UWbIIfuK8+0OeBaYvvYijX/ovhnspRM3O08mwWXfz88vE4IakZho7R1ygRj9Em/ya; 25:iid+fMpQHCoOgnUnk9fL8M3+ea7MgXdKJ0wCquXfuwrAVGF84f0m+6OLc7+l9EMYYbZizaYqJU8G8Qk/hBoJb5neLovCC9AzKHfP5n7oWdwlrVJKb7dAPAiqBQniCM1FMJfLJM4raYezSlDJ1OVGPTVNUIWXQhP2zo9rljgjT+DDpWhRSrA9aAkp7mG8Ud+kRd2L+3c/A4/3bQ/0QtNrO2/IRWbSZDb7hDk23AedBCBk++vRiVNpK1cG3j5nyDJaHIRbdcx/rWIKh8+X+pJCFpxWdsJGcirQMyqWOFj1f+APXcFNJSyEcuRFWDhuzwf9j85Hytw7I63EBL5GlSNWYQ==; 31:jgFnjmQDSME4vUGdEuDRZOch/ORWQX9bbSSu/53KEKDwz2YuOzRGBkiX2bDf37bWw0yeoxOdBEL8tlJAnqKpc8gxMU1R54ZHk7YulPqsZLw/pWtmu7G/A3cRYGGGrpmPgJdkovuseORbFO2yPTLhXBndsPtlYy+5ynsglTzMAIXu50tHk+jwvKLbuXg8cO82sS+f4cbCk/rc7R/qckmJeiar/1/RrUME+DnZp2Ssx6I= X-MS-TrafficTypeDiagnostic: AM6PR04MB4679: X-Microsoft-Exchange-Diagnostics: 1; AM6PR04MB4679; 20:9hBHXx/o7+ZAXZ7iZjYKAolFr+NAtIMG6ypQbF71jSTcwkLDNpvZpQ1/+OEFWQ7MKHVgRC4UpMU5AKp0Dcz2jq0vG57Ss9SNF33zsospk7jkezEEOKsGTXm9ewiWCZLE+pDmoWW8Iwg5fxudHz5pDuPTEcBSoyOazXA/itokcQuX0cF0RWL/DDfdY+94PSk2HpYlx2h5upTcvuRXMXH45W84L1RZvg99VqZcZwQL1MP6plZagYuMXXa7i5x6nJ+N9LVeSLrS8VkpKlyfj7J087ncMZ6uAvD4URYvgGIp+Qqup5yyQTxURtxYvm0/NTSefEktw0yPFg+bsmuw/gKzL/P3drc/QvU9SGDj7YFSlc7IaoQAExiBarOMWIrENGrDQgt/JJyCQvEZod+8pBrWke0sUVVc5/IpZ80gLsWjwC/O4my0dV0oVY/RsIHSCBYUZKb+x4El5wlAQ+S7307nw3ALldHLD/WkmRK93Hjg4y4T67lxMNafUqviOJGbZjuR; 4:2/RdNDI3RNBu8HjyKw3HToCaztda47BVEnvhMPiBXsmNGPVvjm+7PPbd/9CGxDnMnSiD8cfLIAaCxeswiAp//J6uyQCkxxaP9VtYmNJpUOmptHy9JhDzJ4lZq3XkiAcTzHTezIHLrHdYzznti1E7dxzyiPUBWa+8ym26bJpVv8b/i/l6TWBGFcFaWPGJXuvuYQbRY7VP18uhhsuDiiobpArc8XqeOlcQUjUDqLypLubAItkW0PdDOMuH1B8YayKW5b+oTIb49LxYWpLj50BObtLc8qrQRf4b9vt//CBmI3gCqIYtAEdUfvDPb6KXWWNS 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)(3231355)(944501410)(52105095)(3002001)(6055026)(149066)(150057)(6041310)(20161123564045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123562045)(20161123558120)(20161123560045)(201708071742011)(7699051); SRVR:AM6PR04MB4679; BCL:0; PCL:0; RULEID:; SRVR:AM6PR04MB4679; X-Forefront-PRVS: 08076ABC99 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(376002)(136003)(396003)(346002)(366004)(39860400002)(189003)(199004)(11346002)(50226002)(446003)(47776003)(44832011)(956004)(476003)(106356001)(486006)(2616005)(6512007)(66066001)(305945005)(7736002)(6486002)(105586002)(36756003)(86362001)(478600001)(8936002)(16526019)(81166006)(50466002)(186003)(26005)(25786009)(8676002)(55236004)(48376002)(81156014)(4326008)(3846002)(6116002)(1076002)(6666003)(52116002)(34290500001)(5009440100003)(2906002)(16586007)(51416003)(316002)(97736004)(6506007)(76176011)(5660300001)(386003)(68736007)(14444005)(53936002)(110426005); DIR:OUT; SFP:1101; SCL:1; SRVR:AM6PR04MB4679; 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; AM6PR04MB4679; 23:d+DCsZ1dnWPn5cn1NA+QthstAoGia2rFm2p9WKqHd?= =?us-ascii?Q?AWuoD/V/BCti4fZPfZCtS5WvKoFXr7vPA3mQnzVKVp4KUGvlhwPeZ6HMogWq?= =?us-ascii?Q?6eWZPkc8mHcC6HYl/m2A/paisbsAZ3pkuSkk9OnPpIjUkzCBCkTSUbb+tTZB?= =?us-ascii?Q?HG0kPnBgl3n2MTqM69a2peNG0thnA3AS6BHAdiQanxw4tr3OSXzw/8iVEAEZ?= =?us-ascii?Q?/69QfFfWsjl6WQQvsnOOn5Hhs8yzuG/Gxble9WixWdzXMwvNUd/e7VVoU99q?= =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zLkDxXzXrdGfvXzDvp46BXcytHKR1inhw==; 5:X4tLxpQwbqEzu0MQeVNDF8yIirvxWDKKlsnV5LPT7J6qwrjewL+OQsGUYzxJ56da6UoeYYn2S/tnsAtnAdhOIXA3P5vrFwxjCmqW9hx8klwxMZBB7E4arEVsEvBsCYXVy3+L5+aorwnnHO1SM6CPzSTWhih04er3LnN+hmVt/5o=; 7:qui2sIHlqalOM67IRNnoCcIIgHOx8rUl+PC0ghPGXG+oEnE1OY45PS5cipOlPs/hd3y8kIZa5VJ7RNWrPLauCBr1WYoMXrgQL4WJgwTVfpuR++Rl+HKhnsrAVA3Vp+CE8+7y7Q+M3lS55oPILsV8i/AsDTe8YHBcMG3bxeOMpZxPKmX6AMnzG0brGZSWyd14MuhH2JGlZRP/oInwQY7uCun7i6guog3EH01AkE1AwKWve+McNzXsHtPB+eUKadJM SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Sep 2018 18:05:46.1483 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: f1b5685e-02c1-4512-bb4a-08d623daafe7 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM6PR04MB4679 Subject: [dpdk-dev] [PATCH v2 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: Wed, 26 Sep 2018 18:05:49 -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 8d3d54bfe..5bbbdf74e 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