From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM01-BN3-obe.outbound.protection.outlook.com (mail-bn3nam01on0047.outbound.protection.outlook.com [104.47.33.47]) by dpdk.org (Postfix) with ESMTP id 6440C58F6 for ; Tue, 18 Jul 2017 08:01:28 +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=ZB5rJ67Fhav/48V6By97C/hMtL9dtqyp8Ueu21JqdRw=; b=amgHgeQ0FvzaKSIazya7ZLDHq8B6SXO8JyiO5EvZRxPWr5vdsnYeQk6pVGMZM+0ttjWAYD+7AG37TX+Zw+q/aV3XIxtWhNBJFtN/WuiKdTu4QCoSesOofcmpXsTdtlLBmHY5Tn6APu7XAceS0YZ704YwJCA5oKEIOrht9SysX74= Authentication-Results: monjalon.net; dkim=none (message not signed) header.d=none;monjalon.net; dmarc=none action=none header.from=caviumnetworks.com; Received: from localhost.localdomain (14.140.2.178) by CY4PR07MB3096.namprd07.prod.outlook.com (10.172.115.10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1261.13; Tue, 18 Jul 2017 06:01:19 +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, 18 Jul 2017 11:29:48 +0530 Message-Id: <20170718055950.10208-11-santosh.shukla@caviumnetworks.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170718055950.10208-1-santosh.shukla@caviumnetworks.com> References: <20170711061631.5018-1-santosh.shukla@caviumnetworks.com> <20170718055950.10208-1-santosh.shukla@caviumnetworks.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [14.140.2.178] X-ClientProxiedBy: SG2PR01CA0029.apcprd01.prod.exchangelabs.com (10.165.9.167) To CY4PR07MB3096.namprd07.prod.outlook.com (10.172.115.10) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 6dcc200d-2d7b-497e-3e52-08d4cda26cb5 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:CY4PR07MB3096; X-Microsoft-Exchange-Diagnostics: 1; CY4PR07MB3096; 3:ZLGmFrXEPMr4nSyzDaw1DxHHplcdfrqK0HmOE7pMTW4D1VvtHf/if24L07SajQ4qniDAD2lfJv6Vq0J9KpMvr49OJTQ/otqr7fE7n3U9ifO9p25TJ2qK575+K+VhM2XqIMf93sxZPCMVb+5M2bymKd+LqPX+JnrtL8WKm1IezOTllhzcr9JvLhxo4LZbOY3mq6MAbOlv/GEy0XLY/emd9BwFrhgYbXyGBKUAWqV9KYugJkdkVp6cZ0pYR623P4dPI9gSZ59mijNd/yS9Ezxagn/WGU8PxqNNvkHd6aRXXaNBvcBFdDSngoZPKsnimTKRYAhsDxQ0AG3xgIQw49416YXWpPWMnb9Or54jpbR2LcDRctGQMa2m8G0Nq8329j0ziPkMqt3a+GFdfI4Gadu0uRVBkhhftMBchXPtBHrGdCT6kzMmqs+PbozT3mZPWhVIJ/5ZzzVDISX027mtfwBjpd0sgOekqFashwJL0Jv1c8sLsRjumUvedmEesm56BRATMprgq1qnX+b8LAVRHVK1qCzx2SB1u/vE7FKnoGI0oEi6o5d9zFKrBVb7a2/DrEb+7mS3fVhMmCR75/pLxufKlmlEw6Sv0mh2boJZKbqRUhNy+QQ9xoBuFqVpeaCgZB+KfT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dveB2NC9/Tf+QArq01ock2XzBZ6p8ozg8gQVi9owO9UVI+sXkBloemfPnQC9V/5SCtuUzGzLMQ35mrSQq0BtsJa3FNxMg5geGIvXq58vRqlee6qOMQMcpxmnVs/r+J0QjBbYHKH4ds1nKHi8EmRJCba714SKFGlHuoIGW76iOUeZ8u0542+NLgcTIZ06EIWq2yvmkhnn5afY57GMIXg8yho7ZM8ThZ1vP4R3P2BCAZEAZtvbgOpe4J6isrdCaYxIVATkGpMOirvRP/lS4RVda39KhnMM7lc3ij64Z+nF8ctR2dv17Y8w8kLFMi8jONo+RoSjPKS9RVXWO+hkMg2E= X-Exchange-Antispam-Report-Test: UriScan:; X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(5005006)(8121501046)(93006095)(100000703101)(100105400095)(10201501046)(3002001)(6041248)(20161123558100)(20161123564025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123562025)(20161123555025)(20161123560025)(6072148)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:CY4PR07MB3096; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:CY4PR07MB3096; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY4PR07MB3096; 4:1Yt1vrsV4L60BOEChtf+bNJtUV6r2KdRWuYm2nDJFX?= =?us-ascii?Q?1U71mwQVqbdDgXquPcn41MbMq1Gk3D3bm66F/Bv2J2vD0M0VfraV/9nibmTV?= =?us-ascii?Q?fvC4cXIcuVWgfUVmjQCHNLwijeX8Nv02NYUWiwwMxaFC2JF/z9jw/45QEavz?= =?us-ascii?Q?7xiXYjwhxjd47zRopiy7nk0nWdPQvadzrhUgtsEE//xP47oqvFBJK5IjgYdA?= =?us-ascii?Q?nXHn90JP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= =?us-ascii?Q?GzpcROeTA=3D?= X-Forefront-PRVS: 037291602B X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(7370300001)(6069001)(6009001)(39410400002)(39850400002)(39400400002)(39450400003)(39840400002)(39860400002)(48376002)(25786009)(66066001)(42186005)(50226002)(81166006)(6666003)(189998001)(8676002)(6486002)(110136004)(2906002)(107886003)(38730400002)(7416002)(36756003)(5660300001)(7736002)(47776003)(1076002)(76176999)(50986999)(5003940100001)(305945005)(6512007)(478600001)(4326008)(72206003)(53936002)(7350300001)(3846002)(6506006)(33646002)(2950100002)(5009440100003)(50466002)(6116002)(8656003)(42882006)(110426004); DIR:OUT; SFP:1101; SCL:1; SRVR:CY4PR07MB3096; H:localhost.localdomain; FPR:; SPF:None; MLV:sfv; LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY4PR07MB3096; 23:h6OccZblcO3oZQ+KKYhweEnHn0xxqHX+VVTWBrX2f?= =?us-ascii?Q?5Ml1BLkxnuzZ1wjw6WZBqT/velHZjcYv+UFajMk3kf9vawq9IstoC1UUtt+N?= =?us-ascii?Q?bq6irDN7CfqFMWYs5yU7eMo7t6Iqcve1MXzVsm5mNJuEKflvfLLeKUr0kiVG?= =?us-ascii?Q?GCn1p3HiuLgIiFWwkMoJe/Or1lGJEZdzn+tNE4IzqjH1GuvFTMuTNaOQ/jol?= =?us-ascii?Q?q5MgIMorsWM7uXh9fEerJsgQKUZrIHz07YwnBYNmHdaX6NHbFHcLeW0t18wa?= =?us-ascii?Q?Rdplv25Gt3i8xgEk4WVUkDauCtuVrVO3CvfGualwAKulzkr5PLUZi26GDIJk?= =?us-ascii?Q?PtlOwgrtOMYCAjLwhMR1i9aCOU/lDa1xt895cKTwQiuyQBRHJwjhOlv4+HIz?= =?us-ascii?Q?+VCXHNw0sosEj9zClMM7kUtUyfJNzERbWkIztSj3sUnrpDxpO/IUrzKxCYyR?= =?us-ascii?Q?jnRLaRwEFwAdxWvLvY/n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OKJ7JML8wtST9no2MylBwxvx?= =?us-ascii?Q?zt3syOuWvdeX2O/m8QIoAGUvPHXhfMmrnkTyfVxUpGs6cRp6dFvH1se+d+0u?= =?us-ascii?Q?w=3D?= X-Microsoft-Exchange-Diagnostics: 1; CY4PR07MB3096; 5:tVFnc87sghI8TOLBxA/BHn2tVhYlGLqKSY2mxfPcBPExtyJhqlajQwQVeP+FdbCAs+7jRmBDKbHUQr/x5S2F7RwH/IYnOJh4o+5HEEQ2D5ip/tjy+JIUK0skhlxgLhYXA5pPcDLaVL+xUDn+lLEqmR2h2yZ39Mx0xO68a0Mj+WbIiVMSkkeTWVSUBE0BiEExKtbNjtc1Rf3cm+cP4uA5Ok+2bFOIdPfN54dE6MB1YwBaPHhp+VPtGTCau04O+xBybLNE+zcw/5bc3WpSucVjFJThfCcjZv1QMuklLjXTfls9MtdurJiczUUH189o6FT79D2rDz6OTtlfO9PXzd+b1ChRwn0tOYAdVwXegLqaoYOk+1A6nH7wQV94JjSOqIuyC6qcujV2I8UapO4hkFdubvEJMNizm8sSt12YE0VJzGQigJwWcVn+IWMbxy2zvP6WJ/cN6Eu1uZkS/uQzIZqRSf2ptgBYALKMkV5uFptZrL16vAfYjoSuEhwiOCjEYVjK; 24:mcg6Wq5AprWae6AmYwf+UrZXG70Y/dd4qYzGdZlOzU3bOaOCINs8sCcWmcZOkuOO89MFxaHk5nUepFRqPVltUBLC1cAoPkKOWR2dPsHZJ9I= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; CY4PR07MB3096; 7:6uFch9SDuZZ3ojEL3LVqFOeYAgNtUE0T7Ee6ADD4Cy4G8rt72xB4nXHSQghi7NOhDm1lvdSIUE0lc9SK6raqnuRErykUwEamaHqw+QG4K0K74uxGGerwnZN+vZMaGQq2DfAzWXWKiQgIIKyM+5er49qxWvHBsil9SuEFSMtosqdArYXw3hD0BOl7HRwYsgOg3aAK//QU4fPFYIj1aCm/LpiARW90/6I8kwtLPOtk2BAQylPtJDy+bJGrZ3zuWcJTWpZ0tktuH/vdlB/k5Gjnil3NOl00n8Uqr818nxf0g9TqDpbWWqM9wwQM9Ky0ZeWCcTuk/FpfqrG1inSxe+sN4VIuqSuVC+DPVGAdEX7MBII54bVE/NekBe7fEKnWrT7BBXNKORJuKxlozYrLPMlHgDJOh+QqBT6IY9drbh33HuMGuU7DhPXtp3or4gk8G/znR5Rkon6TXzvv4nLRjFTsNGEQexHOKyA76sSs8quko2HWbuNohTV6asL7q5DVG4x9+HbPKRBQMhhGsLq6MbahZe011TbfPgxwXnXYhNa7ciLc6UqsWlxDo9snqEbG3D/kgGQcUUf3wDOx5Oj6pHY3+g0DWMzJMqbF6aBtpDcuEFQKsivZbO8MrYxHZ9mvaVvHSwJJ7G/Mpj7rcyD8+s1k0vI/gewSyTmfBjzPcd5AOhPL2U9+qHvXBkjv1N98Zs8E7A2+0JC/FrH4Jwcnwl4IJfisjuetugt4Bbqlnls1lnPxxSK7Bf+HL1ws4u0MH1gEA0Y5pwrEAzxl1sYaYWZA9NkpU2F7V3o9imHI6HjTSnE= X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Jul 2017 06:01:19.4701 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR07MB3096 Subject: [dpdk-dev] [PATCH v4 10/12] linuxapp/eal_vfio: honor iova mode before mapping 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, 18 Jul 2017 06:01:29 -0000 Check iova mode and accordingly map iova to pa or va. Signed-off-by: Santosh Shukla Signed-off-by: Jerin Jacob --- lib/librte_eal/linuxapp/eal/eal_vfio.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/lib/librte_eal/linuxapp/eal/eal_vfio.c b/lib/librte_eal/linuxapp/eal/eal_vfio.c index c8a97b7e7..b32cd09a2 100644 --- a/lib/librte_eal/linuxapp/eal/eal_vfio.c +++ b/lib/librte_eal/linuxapp/eal/eal_vfio.c @@ -706,7 +706,10 @@ vfio_type1_dma_map(int vfio_container_fd) dma_map.argsz = sizeof(struct vfio_iommu_type1_dma_map); dma_map.vaddr = ms[i].addr_64; dma_map.size = ms[i].len; - dma_map.iova = ms[i].phys_addr; + if (rte_eal_iova_mode() == RTE_IOVA_VA) + dma_map.iova = dma_map.vaddr; + else + dma_map.iova = ms[i].phys_addr; dma_map.flags = VFIO_DMA_MAP_FLAG_READ | VFIO_DMA_MAP_FLAG_WRITE; ret = ioctl(vfio_container_fd, VFIO_IOMMU_MAP_DMA, &dma_map); @@ -792,7 +795,10 @@ vfio_spapr_dma_map(int vfio_container_fd) dma_map.argsz = sizeof(struct vfio_iommu_type1_dma_map); dma_map.vaddr = ms[i].addr_64; dma_map.size = ms[i].len; - dma_map.iova = ms[i].phys_addr; + if (rte_eal_iova_mode() == RTE_IOVA_VA) + dma_map.iova = dma_map.vaddr; + else + dma_map.iova = ms[i].phys_addr; dma_map.flags = VFIO_DMA_MAP_FLAG_READ | VFIO_DMA_MAP_FLAG_WRITE; -- 2.11.0