From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM02-CY1-obe.outbound.protection.outlook.com (mail-cys01nam02on0041.outbound.protection.outlook.com [104.47.37.41]) by dpdk.org (Postfix) with ESMTP id EE88B58CB for ; Mon, 10 Jul 2017 15:30:41 +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=SJ4G6rspUk68iirNg2QuxWJbnaFvE1yG29VMADoPeDo=; b=nXwiDTsN0P9fHy89ohm8wWcxWXcXcnk5qKsh/bJg06loJ6ZEAF3U8lFe7+FEuVzBYWvV03qFYXfFEeMJSVOpZk0gMgOxcnY1K69+Znf1qjn7ciwxuf68B1aGZ6/+KmjdLhIusuiYL3yuQwZxcOlzg7EaYELygwslJ3zMNIri3J8= Authentication-Results: redhat.com; dkim=none (message not signed) header.d=none;redhat.com; dmarc=none action=none header.from=caviumnetworks.com; Received: from [10.160.0.38] (111.93.218.67) by BN6PR07MB3090.namprd07.prod.outlook.com (10.172.105.8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1240.13; Mon, 10 Jul 2017 13:30:35 +0000 To: Olivier Matz References: <20170608110513.22548-1-santosh.shukla@caviumnetworks.com> <20170710114235.18970-1-santosh.shukla@caviumnetworks.com> <20170710114235.18970-12-santosh.shukla@caviumnetworks.com> <20170710142706.4bee2ef1@platinum> Cc: thomas@monjalon.net, dev@dpdk.org, 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 From: santosh Message-ID: <1f4d2538-a8bb-d729-8924-1a9a4e00a853@caviumnetworks.com> Date: Mon, 10 Jul 2017 19:00:16 +0530 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.5.1 MIME-Version: 1.0 In-Reply-To: <20170710142706.4bee2ef1@platinum> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-Originating-IP: [111.93.218.67] X-ClientProxiedBy: BMXPR01CA0016.INDPRD01.PROD.OUTLOOK.COM (10.174.214.154) To BN6PR07MB3090.namprd07.prod.outlook.com (10.172.105.8) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 76f97518-362a-4f46-7a94-08d4c797db45 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:BN6PR07MB3090; X-Microsoft-Exchange-Diagnostics: 1; BN6PR07MB3090; 3:RRPLlen1GxfP8KxKN/NU+oHCbYafXhu7Bj0W2uRTp4vNsnXwIfUajWd3Cume1u0mAHTD+frY5w94YIyk3L9ZSmHtPCxU60RXjuKwNJG8jtNA5Tn0HaK/j4J4Lp9Km9Y8oup46z1ZtsnxTstcAiA+p+nl8H8iIogva9sLTFgbqGNhW9uIIRl4DGDLpPnMPEL2/jcbhLMubsyJ0XTUU/VhrBsGfLQpTQf8uq9bHmxMJIDH2t69yX/F5Kv9OLeJeM8cHRHQQ+Et+ukFXJQenaBTwkdJztzPpxNhUgL6Cm6OiFjgidq0lnEVOIGbC7SpqgAOmsdFHeRgiCxmBp6f4ghLAPY1Xa617oKkEdfW+OXUXsHtGrJjVYn7ZT0VBtK3w/pbaekNhlXP8I79PwXZ/Tx2rdcTxA6O2K6b01KS5Hnk3cYSUTNOjsKAu88n7vmHKVGw4P8VJO5KqrRfh91rXe1gjy1cE6Qyjq+H5VdxTxeOqOaoqGPSQm+sCsaDWXpApPoYMKsUEhX6SbaHs6LG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pNJLw89GeVnanRNLDdXsf3s/aDLEKwKIDHOJDUkr/RKKjHU2efFh8wWoVq7ftRdmE6rkYf2PiRyJwb9C43Uk8ulMZR3cIOU40Tipvd/F77kQSHGTJtRF4nnRK/jQKzRJIGqMLqdj5ptAwL2gY1HkWaCCUnXmIgkMFuk4veg8aab97zU7YYmOK5JEdtsN/wslpDGyxZurhhefpVcuzA2fXMylKFAIgQ/yQA5iZElbjLCcea6AKa/maT0Lw/6v1k9o4maFd2Y8deB0ah8ybgujAkRIO3jpKK3v3SsGMJtDpYX8yiFsX+troEG6JdMR1wW6/25cy9ExVeMcdGCrK4+hzUGK79gttPsr8oUCrLbWUChDrBrOXQnTPYUhBSt8jxWMDl5YSqqf7KLtyUcoUatnpWcGZdvPBMtevuuFVOGvSN2NLLKhst6hXEiAZHsKR5VIfMdcZGt8Hg1gxq6NgjgA0OrwfuQ8AfU8J8= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(236129657087228); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(2017060910075)(5005006)(8121501046)(3002001)(10201501046)(100000703101)(100105400095)(93006095)(6041248)(20161123558100)(20161123562025)(20161123564025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123555025)(20161123560025)(6072148)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:BN6PR07MB3090; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:BN6PR07MB3090; X-Microsoft-Exchange-Diagnostics: =?Windows-1252?Q?1; BN6PR07MB3090; 4:TuXc9NF6MoPDi1P8G2fIFi5lZAmny+2fXv44Mc?= =?Windows-1252?Q?CPTdt/y5pV31TJEP4yT2SsnG4Lhw3KQjrBH65hllNVAXF7JIKSlgiABH?= =?Windows-1252?Q?Mh1IW2imKC2ai7sQ2vO9xPgZ9jDAFiFL9lAopjQytyWMVzShceEdX9FS?= =?Windows-1252?Q?eoKXcTgekspAv80C1KNa5fLS113v+BFXXsL58ZPF/6Ms3UjeoVNM6lSa?= =?Windows-1252?Q?uoiC6RqaqNX4prOiSoC4/imbtlYJp0EFmK4YN3TtylQrthrTcCIVOsyE?= =?Windows-1252?Q?XYRTWNra5/d3qLl4n618PNcEDqcD5ShRaJMtEM+NZjV0eWeCrtv/hSPR?= =?Windows-1252?Q?1DC7mYbncaqEQQxbxY6yVgjOgfLBlUPnnCn4bMvC4aqbRLpQ8Cvl0vak?= =?Windows-1252?Q?+c8n5UJ62Jqn8KHWNxzQJsInHvEKKEFhr7XCoFYCD/tcD5M6/pdMmEQx?= =?Windows-1252?Q?y6UML1L42FW3HZW7zU2T+lpm8s+Hb+ygfGVIX5BZeBeBYAkB/kBMaSIR?= =?Windows-1252?Q?z4hdIyU4XrNj51W5R8epByyC+8iO8Yyz+jg6WoWNWPbs/nTBfLBNNjkx?= =?Windows-1252?Q?hLSaJJkmFCe/8Zaig/CGngprM2NQbIWVaMqsLeEtGlA9WFNwTtOi+ars?= =?Windows-1252?Q?rsiOkfK0SP6FlXCzLWoM659irZdMGFZbA2U/oKViGvn8wDYEDSsqnC0e?= =?Windows-1252?Q?Loo3EYqv4t8v/vmr15z+g/d4T3gDF3xLn3xcceK8DJZIEaIJRV9wXnF4?= =?Windows-1252?Q?OpFbVK/9mTK71GSY3Ua2gfzbpVImxQPwC4y2PVEDpdjsjd8yRJpkxQzk?= =?Windows-1252?Q?rkTwap7xXmt3Qpf74R05B8Z8Bz8j7k+NuyX5jEUqxuD59HJFF0BYBYe7?= =?Windows-1252?Q?lGcrDhz2f3mk0U3BbVc5urDFnmctpV2/lzBwZZZIZKGbxAkCBtoxDwBN?= =?Windows-1252?Q?NmiCcAvQfQnFAdfT/hv/IfP97BTQumC7TnvBAKYGz2qm5SS5zyW4CQ2Q?= =?Windows-1252?Q?rVsFD5AWlyLuyQJ+ceV9SfUGIfBqyxTJsrs7hIKI2/n6Hx99uesO5QCl?= =?Windows-1252?Q?5mjCrB7MZTxuptQ5Q0Pvv6utX0f0WfAgVNNVsE/lGaioPoKNxXw9HW2L?= =?Windows-1252?Q?mkHpWSBO9xSB6yE5+X14UI0qfJtUod2U9nUKJjgAQ26TYw8GppeooRWW?= =?Windows-1252?Q?bcEzt+6n98QQOKGtaxFluC/n4mZtZvbVgW0b155j6KiW67wU15TcvAH3?= =?Windows-1252?Q?KR01kEIHZoH6p1O0b8UdaAHx1BKv7/V433xVwKPR7k2JUQugiqUoQQ3B?= =?Windows-1252?Q?hi?= X-Forefront-PRVS: 03648EFF89 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(7370300001)(6049001)(6009001)(39840400002)(39450400003)(39850400002)(39410400002)(39400400002)(24454002)(377454003)(2906002)(54356999)(50986999)(36756003)(76176999)(229853002)(31686004)(42186005)(50466002)(31696002)(33646002)(77096006)(6486002)(305945005)(4326008)(25786009)(8656002)(86152003)(81166006)(23746002)(8676002)(7416002)(7350300001)(65826007)(93886004)(6666003)(110136004)(6246003)(38730400002)(478600001)(2950100002)(6916009)(42882006)(65956001)(4001350100001)(83506001)(53936002)(189998001)(47776003)(230700001)(72206003)(5660300001)(3846002)(6116002)(65806001)(66066001); DIR:OUT; SFP:1101; SCL:1; SRVR:BN6PR07MB3090; H:[10.160.0.38]; FPR:; SPF:None; MLV:sfv; LANG:en; X-Microsoft-Exchange-Diagnostics: =?Windows-1252?Q?1; BN6PR07MB3090; 23:olTAe64ubs9+z0aA87CZ2QD/ZrmjW5M0fmFQR?= =?Windows-1252?Q?1O2PM5VyK3393DLthqMml3Lj0YCTL4q+M6P3mTopm1Nrsg9w8/MFmzQ6?= =?Windows-1252?Q?7kRTVdQpZ95eCJuflRxwHhw1BTLZrQuYdEiriFdVt4To2XRrn8hOpMKi?= =?Windows-1252?Q?OdXI7iafJGvBsAM66LVT5N2G+B9uxQZoCNkkKUL0PZ2O9wwuYiPTKxDM?= =?Windows-1252?Q?pF1QmbbT1mJG/kCKgBr3efAWGo8ri9+EKxv6Hjc+iiUAtGipHxr80Dzs?= =?Windows-1252?Q?/xSnc+ex23VI3n2HUDUUEj/7hZnxxjPjDpY3CMcjkF8DdtOc2N2bcf5h?= =?Windows-1252?Q?sDZjCARvyJHI5+DbxeC+WtcePgGn1ScPN0KS3nHZd/kpBt5noWxJGlkX?= =?Windows-1252?Q?C7TBW07Cbxf4YD3cyZIt9s5vKzzk2TxTLgERDAZzgn1JAyhhtA7+bTTJ?= =?Windows-1252?Q?3QMKbIBI7k46oXFwOke8W0mM8Xp1FQ7a3UvY2KIN14w0w3zz1T9ubIXa?= =?Windows-1252?Q?xwK5m1UX8fj3k9ioROzCXVB3Jot3jfi2K9dz/LQwSaGpgDT8BTVQ5fHG?= =?Windows-1252?Q?l7MM7AdVGNTJjJR65v1c5Tx0TG2On3EmX0OUQpn6NIuIQ/A1QlWCzWh5?= =?Windows-1252?Q?ub9tVA5jgOMDplD1kXssDS8A4x5aYWsiE/2+azEN8HKACuh2GqVMdEYh?= =?Windows-1252?Q?tgJBvRnVwpIRfYNjSuYLMF32AXH0OYalK3H1W5+XZTRdyjuCOnocDVWy?= =?Windows-1252?Q?Wx5uhQ1D2rO2FRqzaz2olYHPaZ/wLQQQyMArOhfa90Eu72QZjYe5Ua2N?= =?Windows-1252?Q?lfZQR4ANCZUuYbIVKUPe8R+6SqFRwdb+pO27b4jXZEFT+3ZIayDZ4HER?= =?Windows-1252?Q?vQ3caTpG8qUFrTrYn01BSMKvhC/CjaLotPKR61rXWYPbhozHKlV2vsFG?= =?Windows-1252?Q?IryvGnOZNMH5PKgr1DKiOV1wsF5NhVlYDsONHZ1PpKNdwy7jlQHw1uZz?= =?Windows-1252?Q?l3Q+OgHoQGrfxz54ZPY8oX9OM9htQ+CHyNVlzyxR4Uj9eWgOq4zcnSr5?= =?Windows-1252?Q?v9pVwgbh4bArVapxX8fVriDh/ifviy3yVkXBtCVP4H0hJQjGO3HAafL2?= =?Windows-1252?Q?ARoVjmRHQnR5CIdj5I19oXYrn49zTKqLkxkAjuLNGhvJOIy9E1juI2X+?= =?Windows-1252?Q?Ae2UImKaHASk3aNvUolzZ6O5Mv1b8NL7r/Qnb6H6Ut2k3Owq33bKgu3H?= =?Windows-1252?Q?7s6ayQ+ViQVkmGGTo1UUxLeo6RPG5azNDPYQt3SJYf7xkrHYzcSgcUeJ?= =?Windows-1252?Q?itxJKn28DDOtWjGofEvK9iChUJkNR/0s8PfTM/FOb5p8M3VfuWFtDYAv?= =?Windows-1252?Q?m3Fqu1LXF3Xt1b++xpGB4Cmk7tGQ62gbWJmVkyZntDiNWPUeISceDSsV?= =?Windows-1252?Q?gS3HtySk2UtUj0S2E++5iDMzpNFkm+emjtdql1fFtKujc907NRVuInfn?= =?Windows-1252?Q?SkRhVt43q1CVIwtwGVcxDIGaAsd?= X-Microsoft-Exchange-Diagnostics: =?Windows-1252?Q?1; BN6PR07MB3090; 6:m1I7sT7Lf9dlud8EbStyXXILwEtHXcz4Q1d94+?= =?Windows-1252?Q?BjL2EGoMMcdj3RPh6bj1AtKaphdKzXXUx67mI/G3j/xvmJGpTFRGP6zK?= =?Windows-1252?Q?nt7brzAEJA90mHZq5CMxbPNsieii6TClbxm+PA8mGInVmc/es3mWEj0U?= =?Windows-1252?Q?7RP19Iei34s2mZjyMQDrKkFw60LAc2U2lQgKTDM12mjgoxLhVZ6Tdo43?= =?Windows-1252?Q?dECaP9ifTfqQTRCkLI1/FIWdUvuCAW/CgDe7Xqt2msAeGP4G5+CPWgmP?= =?Windows-1252?Q?P2nQYbMjwwM7/icyWjPL1of9363yXUckGZ5q6iBrH7dlnzHJS7BhAlnW?= =?Windows-1252?Q?u4lwpMEEk5Ap79Ts8CgdWHSRS7J/jp+GFKy7177fQaAVMhGESc+quw9K?= =?Windows-1252?Q?JcgAtDDRsC5sDU9xlqZEMCYO7Y68rFrnXy/hy4HzLOSpgsL8h/o8h4OI?= =?Windows-1252?Q?AwcZq3VnkHY+HTgw2k36FzbwU626a8neI/we8pJk+Hlabl+Y7/Pne57c?= =?Windows-1252?Q?IqTlz7QeIrcY5bGoIE2HpKLvFxVqG3zMwO1JZoO/+7dHAQ+geAQwlt3U?= =?Windows-1252?Q?H2ebTGz5Cqfl7fBWkxbQxTBR1cdg5mVxsMYvvId+g5JOcHodzEiXRBJQ?= =?Windows-1252?Q?YuAeCTdSQtXx0EhJiIfsEHc/1AvgzmWlP2GaxVj1oW2s6ywr2lyIlImP?= =?Windows-1252?Q?6S3H3Rm9nTaIh9xRFzE0fQxMt7R0O4dCsENe68HZjQzwuhsW1nj2GFSa?= =?Windows-1252?Q?yOe4+fuJwNYXgsVd9eurrCPks5BpIdvZHOrboLXV4SX4/cftxDqAwGla?= =?Windows-1252?Q?/DS6DIDb8YGyAG1b+JyT8XNNa7B9ez59geBrmQ7GPGvodteWoC3/8YZZ?= =?Windows-1252?Q?EiGpe86pSv6CD83oSLxIh3RmJL4/JVDSYl+GB0XuJG+5qQiPYiiBNw2q?= =?Windows-1252?Q?5BMaDe0aJhAfNInuQC2qbzZzlxnZUMcvaQCEofbzDZZelkSMfel/Sr5/?= =?Windows-1252?Q?aCJKiW80Winf2qXvUbFAD46BrGyTy4HOGrpbhj2TAF3qStyT49J8b4ab?= =?Windows-1252?Q?3gwBcj/dmGWsY=3D?= X-Microsoft-Exchange-Diagnostics: 1; BN6PR07MB3090; 5:8sPmQjx26q+IOWvk5nQ1Qib6QafwmcqnBaeZZmnPOMuQhGfy9gQzGlnmLEy7jCvlCwxK52ccMtJGc2TB3k1RsdzV0kYLFAfbag+Uv2tFQiw1MQizjRcjIM58Y+55bGfna36h3jHC28eSauYRDT95Qw5DnqETQ1cafia680NT/le3LcTTU2Fs7yx7HnS/0yPu0+WPelX8iuo4S8jjTg0N5BleRhSkamvUD0JvV9yXgqmeSsx+cbVXQgkUu4dcMsATTzycd0fgJeMHkYp/pPFz+M2/Z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CpRAOdETO5AilG8K8qOMYApLkDmsNJ0kvUV7Ot4yWJpqKifyljGQJ6ecR0irTOfY7rVqpUrAxKNRg1b6jR4bNOE38erTbR0RswXQMB0oQcXhEUG/kV156n/jtreusKyQDnK67zhuKy7V41Kk= X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Jul 2017 13:30:35.3886 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN6PR07MB3090 Subject: Re: [dpdk-dev] [PATCH v2 11/12] mempool: 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: Mon, 10 Jul 2017 13:30:42 -0000 Hi Olivier, On Monday 10 July 2017 05:57 PM, Olivier Matz wrote: > On Mon, 10 Jul 2017 11:42:34 +0000, Santosh Shukla wrote: >> Check iova mode and accordingly return phy addr. >> >> Signed-off-by: Santosh Shukla >> Signed-off-by: Jerin Jacob >> --- >> lib/librte_mempool/rte_mempool.h | 10 ++++++++-- >> 1 file changed, 8 insertions(+), 2 deletions(-) >> >> diff --git a/lib/librte_mempool/rte_mempool.h b/lib/librte_mempool/rte_mempool.h >> index 76b5b3b15..fafa77e3b 100644 >> --- a/lib/librte_mempool/rte_mempool.h >> +++ b/lib/librte_mempool/rte_mempool.h >> @@ -78,6 +78,7 @@ >> #include >> #include >> #include >> +#include >> >> #ifdef __cplusplus >> extern "C" { >> @@ -1397,9 +1398,14 @@ rte_mempool_empty(const struct rte_mempool *mp) >> static inline phys_addr_t >> rte_mempool_virt2phy(__rte_unused const struct rte_mempool *mp, const void *elt) >> { >> - const struct rte_mempool_objhdr *hdr; >> - hdr = (const struct rte_mempool_objhdr *)RTE_PTR_SUB(elt, >> + struct rte_mempool_objhdr *hdr; >> + >> + hdr = (struct rte_mempool_objhdr *)RTE_PTR_SUB(elt, >> sizeof(*hdr)); >> + >> + if (rte_eal_iova_mode() == RTE_IOVA_VA) >> + hdr->physaddr = (uintptr_t)elt; >> + >> return hdr->physaddr; >> } >> > This overrides the physaddr field in the object hdr, this is > surely not what you want (note that hdr was const). > > This change could at least take place in mempool_add_elem(). > There is even maybe no need to change rte_mempool at all: if > rte_memzone_reserve() already returns the proper address in > memzone->phys_addr, it should be transparent. Indeed. The change at rte_malloc_virt2phy() make sure that mz->phys_addr has va_addr in case iova=va mapping mode. So its transparent for both modes. virt2phy translation for mempool like derivative class api not required. Provided that rte_mem/malloc_virt2phy() apis are iova mode aware. > I didn't check the patchset in detail, but in my understanding, > what we call physaddr in dpdk is actually a bus address. Shouldn't > we start to rename some of these fields and functions to avoid > confusion? Agree. While working on iova mode thing and reading these vir2phy api - confused me more. Actually it should be iova2va, va2iova or pa2iova,iova2pa.. where iova address is nothing but bus address Or we should refer to linux semantics. We thought of addressing semantics after this series, Not a priority in IMO. > > Thanks, > Olivier