From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM02-CY1-obe.outbound.protection.outlook.com (mail-cys01nam02on0089.outbound.protection.outlook.com [104.47.37.89]) by dpdk.org (Postfix) with ESMTP id 5C04B7CF8 for ; Tue, 11 Jul 2017 08:18:14 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=CAVIUMNETWORKS.onmicrosoft.com; s=selector1-cavium-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=3txd0tNUPA6UFiMH+K4B5O0qhCZQUaY7MpgSKDKh13A=; b=O7ucaN03I285jlXkNhl0zxsLYPKQvrIxW69lIGBJbSZbDpose4/W//u3lWFzRf+kkvxtWZsQDBKnnYH8OianfBX5CCuxlzg/rBuFM5ocpT9/BI5RsMsMaVUVxc7q0PJ7mLaP6OGF63VhB5zxeTp6O5zPGyVKKI69201f8BLmGcU= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Santosh.Shukla@cavium.com; Received: from localhost.localdomain (111.93.218.67) by CY4PR07MB3094.namprd07.prod.outlook.com (10.172.115.8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1240.13; Tue, 11 Jul 2017 06:18:08 +0000 From: Santosh Shukla To: thomas@monjalon.net, dev@dpdk.org Cc: bruce.richardson@intel.com, jerin.jacob@caviumnetworks.com, hemant.agrawal@nxp.com, shreyansh.jain@nxp.com, gaetan.rivet@6wind.com, sergio.gonzalez.monroy@intel.com, anatoly.burakov@intel.com, stephen@networkplumber.org, maxime.coquelin@redhat.com, olivier.matz@6wind.com, Santosh Shukla Date: Tue, 11 Jul 2017 06:16:31 +0000 Message-Id: <20170711061631.5018-12-santosh.shukla@caviumnetworks.com> X-Mailer: git-send-email 2.13.0 In-Reply-To: <20170711061631.5018-1-santosh.shukla@caviumnetworks.com> References: <20170710114235.18970-1-santosh.shukla@caviumnetworks.com> <20170711061631.5018-1-santosh.shukla@caviumnetworks.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [111.93.218.67] X-ClientProxiedBy: SG2PR01CA0103.apcprd01.prod.exchangelabs.com (10.170.138.157) To CY4PR07MB3094.namprd07.prod.outlook.com (10.172.115.8) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: fc109fd7-b133-43fa-df91-08d4c8249bb7 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(22001)(300000502095)(300135100095)(300000503095)(300135400095)(201703131423075)(201703031133081)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095); SRVR:CY4PR07MB3094; X-Microsoft-Exchange-Diagnostics: 1; CY4PR07MB3094; 3:eDS0u4pCrvnyMqm6LkV4hEABOdw9gO94tRP3Y44Di9z3TFfN7gUBHsEQD6wV0SFotIdct9DgA2n33fAeudc/POID9sAXknRM6TSoeyuSFMw9wpHQXpKRKLqhfltXGpsRa6FWyHKjr3SJXbYL+RqLByFojTbzeAXcIwBqRXFhuWdCquXL6z3eI5TP8M5cfgCZZFR+4A92gGHY8uz/ntV8/mATyUS50wnnRmVOclAbkvyEn3Rt3g62rRHAJCYw9YErgOwyp8vuB7eenR6Kl8aGLkLOQDzxwxhyudhX/raCVRBjK29QMuXCwqdq6U66x1pS4eKYAj2gG1c92pq+6I+tWd/6zorjBUZfpnELizvPtwmXqTJ5scCFcptBY+8pcjZ5hF3uDFuoth5bgg9ReQF3UhSHSpcqiECgZ0mozoSpwRqwQAyl8NvQQsaRGxQYtN/B4pUadOYlvkdA+DCrjNlKW/eP2fFSvP/KZ2eDEEgUk1UOCli9kVEb81l5oqSbhqDlQXTabkUP8cXEqJ5s5qzlKfRl3rKcFBTLrpjfvgWoCtj8QqT+yzWrD62e646h0B4jJm6ybEA6rU8JGIjK14m4oT4bSz+11npHS6wj2ZARrLYobjgglvVKmucC+i87uXZlRcmE/6KiwDGSxstkt0HiqcYaa9hfQ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/D2p5cLu/nbOXvbIQtcOZSYBOQyiiXDWfTVZEUUoHVLWzmRswIG0OkKd2dfN03ZH4j9w6DonF8SdaWytt0yXYeOwxMYuxqsVU13x6/C3yXYFnRwDTQsJReW+pS2moZzBSNO85tt+oh4A8cn2eBkhTXakURTifC7UK+fBRnbsg5stKbLPDCSpPFKCmCpbfFg3+1+A8945xsTiC3ok0xXU5lGGEjuOhtOfnALanclF7sH6QvUPELa56AQhQzFC4pI7BvoBoMKXKU8iclLcw1Fd15a+tr9Cm2FHPJddEAf/glszfEPOTH3Gzmik27AWlqamhz27CIdL7k= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(5005006)(8121501046)(100000703101)(100105400095)(3002001)(10201501046)(93006095)(6041248)(20161123560025)(20161123558100)(20161123564025)(20161123555025)(20161123562025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(6072148)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:CY4PR07MB3094; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:CY4PR07MB3094; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY4PR07MB3094; 4:agb4NPHmu2tDDxa/EWq7riglohfr8XYclTd1s4f5Y0?= =?us-ascii?Q?/N3LsSk9r9We/Qym0Yp4cc3ZSBP4GjIMDmhAAUWtC4ToWz4b3YIkMyh+2+DK?= =?us-ascii?Q?dQwtoQOf9A92zVTzFPN5e588/inl4UvqVnrSIhEZCG5dpMsT09GGYfULBWAt?= =?us-ascii?Q?7Jz4fcldA+T7yNiUSg6ATgxHDSp3NXLSzdtCd8NoQs2DIRvyLK5K9DmrRP9J?= =?us-ascii?Q?eZ3P1EI62Kr8RV7R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6zx?= =?us-ascii?Q?GAXSXeLZM=3D?= X-Forefront-PRVS: 0365C0E14B X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(7370300001)(979002)(6069001)(6009001)(39850400002)(39840400002)(39450400003)(39400400002)(39410400002)(42882006)(2950100002)(6666003)(5003940100001)(48376002)(36756003)(50466002)(50226002)(2906002)(5660300001)(8656002)(6512007)(7416002)(6506006)(7350300001)(189998001)(6486002)(6116002)(3846002)(305945005)(7736002)(1076002)(4326008)(33646002)(53936002)(42186005)(107886003)(110136004)(38730400002)(478600001)(5009440100003)(81166006)(72206003)(66066001)(76176999)(8676002)(25786009)(47776003)(50986999)(969003)(989001)(999001)(1009001)(1019001); DIR:OUT; SFP:1101; SCL:1; SRVR:CY4PR07MB3094; H:localhost.localdomain; FPR:; SPF:None; MLV:ovrnspm; PTR:InfoNoRecords; LANG:en; Received-SPF: None (protection.outlook.com: cavium.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY4PR07MB3094; 23:vIpnnjd2ylPbo85tlznqjr7vYRJsoahjTVBEO3Vdc?= =?us-ascii?Q?CcQt/B1PjI8UB8JhtF+fko6YyP5OChx0eGZvxsevX2XD8YRrDmPo9RhQsOY0?= =?us-ascii?Q?BdXOvud3A1zMBkZgK+Eprj9q14AltZw5oQtyxS7wa9WGiqwo3UJJ5KAn3Djg?= =?us-ascii?Q?IcnNYSf7EPCp+l1gUYA6/8NErqQfWlvbpRhUxXuiICJeoHTjo5QGCc6TqA/X?= =?us-ascii?Q?mz6yW+xRI//CgwPMUEOfbA58OOw3xzm3QvrcfTEMmVQ6epgEYj+fCJzcStqk?= =?us-ascii?Q?qUQdoJGSFCY/hi6Ez/OQoZltfkrWqo+UZ/KxOx/dm4w5ElYQpllaLzMDEWDz?= =?us-ascii?Q?ppYdkLA4Gwo31XdPa+z/93gS/ZBSTf52dPjyJNjwOGfn/qOqPDywvXAytShj?= =?us-ascii?Q?YnrbPjyiasR24A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0d0YdIAb?= =?us-ascii?Q?FbQvabexlqug6sKALKKwWZnQ2Vu9+MO9801/Cntlq8737pQ2XBngpUKIJ1Wu?= =?us-ascii?Q?PD6oFOUdiyG8z1byaaPS8BqKMrSHc7L9qFsRElJwZ7px5PnNxMGN4G0D1YyD?= =?us-ascii?Q?jGRC25f8DNiYpKYGdhicNBEAiSXWdE0fWfIAkP/bG/CLyNmrqqIAQitkfBob?= =?us-ascii?Q?4=3D?= X-Microsoft-Exchange-Diagnostics: 1; CY4PR07MB3094; 5:sHnw9yy6+3qHxutd3/p+0g4mBBAEvDs08vyDPa4VKZ+LNKfjJUngnQtsv7IiP60Q3T1HC/5/UPsXrwM40n0BSD0eiz+qnVLheecyd0RLdPEMnFg49LssVVM3jR4UKLrzPexUe7LmrUvfB6LskLjgb7NsLDALdXURCjsNTvwriqsLw1tM88dhsPXsDLAkgpQ2N0bGGnvitT1UZolGnrWGLT9YBM3FboKs5la9+xnlRBoSl4GtACY9I926rUrH9QVXQb4zjrh/1dTqsL69+BwPpw2qzAunqDYNAtpRjp2CUUiHWqsBhVTuMR6mI3uayf88ShIHn05QrIg1/smh/oMk5lxM2T0h9oGgFarvYtLFxkRCyvctAmYRU3J+/O7NEZpodTpqT+Q6OEkoJtgMqkfLXwg5//pGTErXC0GJ0i1mdlcYltotUbmMtp5LpVDYaXER+qNGP7F3aeJYYTKMSk0dpedoEYCIn0KweCjASfRZjzfAwtq1W2LfBR2eqO/8K6as; 24:o6U923Pzb4/sVgdnDrvO3cgcl5Aoe+Zao0m9IdwkoVYtB40LJpxscIwo6G3DLqrkumMHJicxBS7P5xQnVtqBTd0GTQy2N2210CLREspvC0U= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; CY4PR07MB3094; 7:ES2PVYsj38/EBrifLGzv63ELBUG1ttQ6xA0aq/L/4seBf7CQIatUUJo8v2BzmzUobBm6HR4xjx0MZaC/fAhsqns45hNslkea9klwKrBSCqyeHWOFEtELlR/6VmlktGF1g6Ef5EJTNULNM7k3l2RjIrvU+JM/hDKag7Ag5vyHjedWm0GjDrLKf+V6uPB0h5SNJdI7Atqz9/ef+iaybbOnpMoGQTKfDYBZv+vNuY0mAFD/G7t3dX0FfhoQFsORHlpMwIOH9VBNUXd1e2f5A3/oVFQDsEtlkybpxZI6+aeuM7GdlVC0Bme+WKp9haOo8y3qWs4cR1PUgtV5yBtlgcUU2+zA74X8d3lsplTHTNcmZET5EqgW954FRIX01u6zB9ynVBiT5XKVrZ4u/tB+84qxRRUaYrp1wKp9y5GC382/4EXz7Nh8riwpyMz9ak8P3yg5yJ9wPwFG13huepCcBlWhZf27emUpcTshJtiGh1Y9qulC03m/dSfB+k+WcR0qOaMhF8/QE2a6WVfkFEeeLQshvxbDmYHkkNNQjHot6Z4OTaaJ9o64Jo2sMWKoybno+aYjwP0JUKWLmp/rRGut08CofYxt1N9ufNwPGx8oE9cst3AlmJhSWGDJVLDQaCrW2+rOvL6SmKIDVAnExs/1+2YKJdlJj5cvuJcL6FNBmaXzEllE2BMdavYCa0HScBD9zfh6dhH3pk0S3f9azfBibAyB0fuo5qaCoQcETRStmMa3lNH4Ku3wbyuVG/d+FkHsjHn5GIXJbu1THO4h2RVu51VViNLoQ3m7f96FmGJ+s8Kwvi4= X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Jul 2017 06:18:08.6478 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR07MB3094 Subject: [dpdk-dev] [PATCH v3 11/11] eal/rte_malloc: honor iova mode in virt2phy 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: Tue, 11 Jul 2017 06:18:14 -0000 Check iova mode and accordingly return phy addr. Signed-off-by: Santosh Shukla Signed-off-by: Jerin Jacob --- lib/librte_eal/common/rte_malloc.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/lib/librte_eal/common/rte_malloc.c b/lib/librte_eal/common/rte_malloc.c index 5c0627bf4..d65c05a4d 100644 --- a/lib/librte_eal/common/rte_malloc.c +++ b/lib/librte_eal/common/rte_malloc.c @@ -251,10 +251,17 @@ rte_malloc_set_limit(__rte_unused const char *type, phys_addr_t rte_malloc_virt2phy(const void *addr) { + phys_addr_t paddr; const struct malloc_elem *elem = malloc_elem_from_data(addr); if (elem == NULL) return RTE_BAD_PHYS_ADDR; if (elem->ms->phys_addr == RTE_BAD_PHYS_ADDR) return RTE_BAD_PHYS_ADDR; - return elem->ms->phys_addr + ((uintptr_t)addr - (uintptr_t)elem->ms->addr); + + if (rte_eal_iova_mode() == RTE_IOVA_VA) + paddr = (uintptr_t)addr; + else + paddr = elem->ms->phys_addr + + ((uintptr_t)addr - (uintptr_t)elem->ms->addr); + return paddr; } -- 2.13.0