From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM01-SN1-obe.outbound.protection.outlook.com (mail-sn1nam01on0040.outbound.protection.outlook.com [104.47.32.40]) by dpdk.org (Postfix) with ESMTP id C93C12BAF for ; Wed, 7 Dec 2016 11:04:34 +0100 (CET) Received: from CY4PR03CA0022.namprd03.prod.outlook.com (10.168.162.32) by DM2PR0301MB0752.namprd03.prod.outlook.com (10.160.97.148) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.734.8; Wed, 7 Dec 2016 10:04:33 +0000 Received: from BN1AFFO11FD025.protection.gbl (2a01:111:f400:7c10::113) by CY4PR03CA0022.outlook.office365.com (2603:10b6:903:33::32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.761.9 via Frontend Transport; Wed, 7 Dec 2016 10:04:32 +0000 Authentication-Results: spf=fail (sender IP is 192.88.168.50) smtp.mailfrom=nxp.com; 6wind.com; dkim=none (message not signed) header.d=none;6wind.com; dmarc=fail action=none header.from=nxp.com; Received-SPF: Fail (protection.outlook.com: domain of nxp.com does not designate 192.88.168.50 as permitted sender) receiver=protection.outlook.com; client-ip=192.88.168.50; helo=tx30smr01.am.freescale.net; Received: from tx30smr01.am.freescale.net (192.88.168.50) by BN1AFFO11FD025.mail.protection.outlook.com (10.58.52.85) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.734.4 via Frontend Transport; Wed, 7 Dec 2016 10:04:31 +0000 X-IncomingTopHeaderMarker: OriginalChecksum:; UpperCasedChecksum:; SizeAsReceived:912; Count:13 Received: from [127.0.0.1] ([10.232.133.65]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id uB7A4PDO024270; Wed, 7 Dec 2016 03:04:29 -0700 To: Thomas Monjalon References: <1480875447-23680-1-git-send-email-hemant.agrawal@nxp.com> <4516168.6vIN5TbTdY@xps13> <2366721.OpDVYN8WCp@xps13> CC: , , From: Hemant Agrawal Message-ID: <43c4a30d-fdf7-22a4-3bde-85fbc602baf7@nxp.com> Date: Wed, 7 Dec 2016 15:34:26 +0530 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 MIME-Version: 1.0 In-Reply-To: <2366721.OpDVYN8WCp@xps13> Content-Type: text/plain; charset="windows-1252"; format=flowed Content-Transfer-Encoding: 7bit X-IncomingHeaderCount: 13 X-EOPAttributedMessage: 0 X-Matching-Connectors: 131255786715431896; (91ab9b29-cfa4-454e-5278-08d120cd25b8); () X-Forefront-Antispam-Report: CIP:192.88.168.50; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(7916002)(2980300002)(1110001)(1109001)(339900001)(336004)(189002)(377424004)(199003)(377454003)(24454002)(57704003)(8666005)(64126003)(356003)(39450400002)(77096006)(2950100002)(6916009)(39410400001)(39860400001)(39840400001)(39850400001)(83506001)(4326007)(2906002)(6666003)(230700001)(229853002)(65806001)(92566002)(36756003)(65956001)(85426001)(81166006)(4001350100001)(50466002)(110136003)(8936002)(39400400001)(38730400001)(39380400001)(97736004)(106466001)(104016004)(31696002)(5660300001)(54356999)(50986999)(65826007)(76176999)(31686004)(81156014)(8676002)(189998001)(105606002)(23746002)(305945005)(626004)(7846002)(7126002)(7246003)(120886001)(33646002)(93886004)(86362001)(68736007)(47776003)(7059030); DIR:OUT; SFP:1101; SCL:1; SRVR:DM2PR0301MB0752; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN1AFFO11FD025; 1:MzJC2Who6hbQfWlaV+XVTHhblTBDYVVQk9+K5QcDX3y1cnOYLKBWdi+JPZwXT/5E0cvuIfI6kGZ+847iNyObiusgOcC0A5HoRyV9XNZcbOwYOsJ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5hZY3x0jAazzlgr/mPcnfI3YyaauS1xxpP0NWfy7wMoEB90uGX+xPRX1xGdx8evrlBPa0rfkH7nlrNpjUlJOpTrApfTYk27MLrasLwnSNf0s/XbFA9PVXNPdqGt50loT36T3H3eh5Jw2pQ6IBzyjQKJvUu7aZD01J06VCvI4W5BLOz50OFpgE5EbV5gD9Uc8+/vjhzfI1MhinrvfDIRj8MkLikSuQAAaVhhOx2/1bCNORyxbgLKEZ4niAiIuqTI0NAdr3fBXuBAm1+Tbs9kTELazoHUp/zSIMyG3dADg3Qbrxo4qdCByAyA9vm0ZCUJzVENIy7ZJ0tCB8ay50Y9c+Kodu50Wd/lqQdF9SR6L5f/JP2WS3pyH6Su8PfzBx59REIqmA43dPzUZvOQVenDGahrldz+oK74oZ4Zh9DscoPOS6TMkZ0ZY/li2pwiw== X-MS-Office365-Filtering-Correlation-Id: d6ef153e-9b3d-41a3-e279-08d41e887057 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001); SRVR:DM2PR0301MB0752; X-Microsoft-Exchange-Diagnostics: 1; DM2PR0301MB0752; 31:ECnb4BLoDl9bjATSATzpu8fVVGK2d9LFpisoHR8dM3SZ6yyI3UkrNZEz8rUl9IAIsPVvGCnDX4mm3N68QGcaNddIlLIBAj19+YEJbBxfTWSISGQx74yAPkD3YXnAsekRhbxENZhh1lgw4xXZBNEB8m7iap7WqAsCnwXe4DkqkJy66PefoeMEW0tmzwHM/dRSXpu0ntfy8MyZvh0vD98yROS7PW5jZJF5lSSOQcYcbEYvCmI5tRtE444f4Rj3QIrLXquVc5HZAO1sEbaDrTeeIU7kEzA6PZsL/2zdv4QioZg= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6095060)(601004)(2401047)(13023025)(13024025)(13015025)(13017025)(13018025)(5005006)(8121501046)(10201501046)(3002001)(6055026)(6096035)(20161123559025)(20161123556025)(20161123563025)(20161123561025)(20161123565025); SRVR:DM2PR0301MB0752; BCL:0; PCL:0; RULEID:(400006); SRVR:DM2PR0301MB0752; X-Microsoft-Exchange-Diagnostics: 1; DM2PR0301MB0752; 4:znjoFZS806byI/m/mckAARznv0VOrW23lkRrztYaiqYNnBhwhrkESNLtLWJ0FitjkGR9I3cBNp8c++fpn0Bw/kb/090oZDEjqmdhKdoMXmHlnkysJSu6OaNr4Jq91Pcb7nNBybxHbm+9JV+uOsQILbRtEA93VAEkV8dsy5Y4kciLOcHXfgy6lP3oxznFnq+/Ay3nh4KPbKUOQ8KfJLIeyMobGiYHiJyHss7KKPezH3dPKQUCeliOiSlZGfkBrmo/aEoFOeml7C7KDGCoehOg8gapBlJBBSKT6Jwc/JvBlJ0Wpfklv0a4FJ7VRHLfA2rBKeO+fJ5GA0h0rUqR0bE6CUvsDOk+Cz5ZzEKwC9wh6I9joSrDeH3ebKeuO1SRWpouwnKy7Pleh3u/2eSBQEpSONLMgFayX0D3FwxNXE8OGIxIqrlbvD6j/ywHXRfUVXz45f4an/xE2FeQhdXoW3Ynd9m9I9WlfGZpDK5RzYn/TvCTjPahj0QG/M1slnGBHZFKpK/P1Pa5yRvQMq94eCt+pUDVD72UAkd5vP5QeKjv1/fa3VrNlvNi4Q+JRJ1tzt0huccqAiPUHu47pVBeTl4zvLiTpHe3tsN4DhwmUIahIwWpHieFLdmYu/nSxcQt36KaLqwLZ0anAKuVfvBUa7Cj0CNI6n0XOhoollLPnJb1NAlPU52JSrxsZ+skt4QBHuG0 X-Forefront-PRVS: 01494FA7F7 X-Microsoft-Exchange-Diagnostics: =?Windows-1252?Q?1; DM2PR0301MB0752; 23:nMIwREh3o9OkEBAo9N8e9+EGnzjdOe+gug3?= =?Windows-1252?Q?Pl2tWkopijy8cC9wqu+hLfypvFfhvDIklpRpzjJ86iYzb3uftlJ4qpaQ?= =?Windows-1252?Q?H8VmcG3IbCoBoW37HiKCL8Vwt1t/0xTRoWinxP3qxxj0XD9KusSXQtR7?= =?Windows-1252?Q?RrO+Gd43HuGFU4LlyRfEOcXFLfulCh2GZgDg+qvJa/GN2xl1d2obAxhq?= =?Windows-1252?Q?gGrnWZjMIqQ3D4AonHNTdNQ89sdaRn8jEeZ7rAcWl/6tRR8wiMPFppX+?= =?Windows-1252?Q?5hwmvS6+C9HazPKU+z6FSpeGiYec/z4HqShjr21Vz8lDttgo0j2rZTnv?= =?Windows-1252?Q?lxr+tftBS8gsw/ybFvzfT+X5Cj/FTwNv2YF2BzsWT8/shyDtB/6+yxIo?= =?Windows-1252?Q?4v41IFHZYPuSr7UbUJp5F3j+fr1vf+siSEWibBBdrKv8Bnktl4AnTnR3?= =?Windows-1252?Q?vwAt5ZsloCIolZ1Ai+J1DrPTrIawleS2EhpUDnFjlSRmM3YhqdWE4S4B?= =?Windows-1252?Q?OgL+t3gcZ3KZM5pIfWv9KwC+mls+X0D2VisQ/GxTggKL5lvnTuS+vuYc?= =?Windows-1252?Q?04AuE67BFOQqWBV88xQabbqYopnqA89KXMKNBeU5+dkXup95DlyG0wq1?= =?Windows-1252?Q?trWIlFVUeI3IKkIFg4YrVwJpQEI0WJTcJe+KndReJeGl6HpEdVwvCwkt?= =?Windows-1252?Q?oFTzD6dGM9l+jZh/wb3LtiRovb8j36V9CKlSq4bm8gC9M5sXIYyaVxlN?= =?Windows-1252?Q?DLcsLYNW/Vy2WzxtbCD7jw+cXm3N2CqJjii7bdcilKj4jXRJiaip7aD+?= =?Windows-1252?Q?dOH3M32FVD45ojueXEw3ckUzFzIpVT5WrcCuvslJWgNEoIYBkn6DJtOK?= =?Windows-1252?Q?cNi1MMpKqNAltIVnYaON6xx7o7MqJEpOOErSrBcGDi7lj5EJUmKY+jNr?= =?Windows-1252?Q?DH8Y78F69uQO4lWSwSuyTExq/UN9j89lSrbNqHML3sbmtF61S11bOWDt?= =?Windows-1252?Q?w4NqBgvo4sLkPQsKDEwvWWL5k3n0KH1J2GadIFMvFRF8tal9xbtNRmD9?= =?Windows-1252?Q?X/9GgMmJAsb52eZRcD/xAG+S6ymhv+RXeUABs6/3fJqQKLiuThmVjy3a?= =?Windows-1252?Q?8zhjkpVyQ4Us7xsR4ao5bRyI6mtmAmD+nlf+MMNM+TEkN87fwuk+rJH4?= =?Windows-1252?Q?cnp67EjAxthpgPMhHgEJWG/M8fJU+gKHVUvXmjLdCbAwgh4xA9vPco2T?= =?Windows-1252?Q?wT85/ppQLo2EhiwbCUE6B2oqHuyRwAnDqvjhyFa1uHdzE7gPr9bY+cJg?= =?Windows-1252?Q?1bMPlbeGhScHE8w0RJRu654ZbIJJlxt7wfXV4B/HJ9Z9F/i3lgQtRXXl?= =?Windows-1252?Q?V9iI+kzZZIV94lrTVxWMWUBxn1/UUwwijVRmM7XWSfz9ar9dmLWcs+qR?= =?Windows-1252?Q?suV0Ui1uToerfVv0xx0gdkPvKuSVFfPdqy1YTbcT/39UBjkH9DTVFKpp?= =?Windows-1252?Q?ofuNF0ubGlMBPqIScJusRkN0R8sqW39Y+AuNe4jXQD/xRi+57x4rFK2H?= =?Windows-1252?Q?uNLRqfFxo/5bszd3erPNtyJjY3cNajVCr+hewJL4kfApM7kvOGYfyYpD?= =?Windows-1252?Q?lpcjWFgKQ4WyPMUwaK5ISfvhjo3tBf8NyWyNVqR4MoC7Sgl7+s9J0DVT?= =?Windows-1252?Q?zz/OxjFfVf0odRcbu9+s/FIo/WL53ruNFgZWJ5wHRskZjG+J4o0ox6o8?= =?Windows-1252?Q?mltoHT7cD6osCMhnp5rHuMf+57AoK2anzSHoiedrRmP0MI3C28LO/2r4?= =?Windows-1252?Q?LE4OS?= X-Microsoft-Exchange-Diagnostics: 1; DM2PR0301MB0752; 6:7tFizgiy10W2wQeMNzUfB1ysxSWr8fejRl5wfvsrYdV+HpDTcCuIOgJ+L+inD32WxrLf0BDdRDQtb/BOQu2HJxGxTZzbE7sm2O24a8wKiU1mLpj6zdA57a9symJk9i35/xFTwouO/OWdL8m4SkPXf4tw1aqq3ByWQ6bj5ioC74U3V2uZ6Y558j/makDfcuJ4uPyZ95uTSo4XRtUPuGifCSUlLPTTr6XuarLjgqU930c0zr8rKGJTNd6PHBbrEb1vkX+HoFQnOmEgHLsGBRk7oCSBmjCOFzOuX5pkmfilJkK7haOMVvRxt18lA9EruW0+plBfYcoVvYQfcUkQrwU/Qw==; 5:Pb3Mq4h1YsOwKTV0SVD7VvBv6isop5+K3vnzEH1b/d1q+UHRdmsSgZO8TvGZq6xN0E6gbMQ37qS4533SxlPua+yhsCcCju/03kMh3r0o8N8tBafCLMa0JV7skLJ69S5qWxxt4vkE203QA5PEVGHYVZEtitDZFhfkjbQEZLn6CvgUHZmJit/zXFWXuzgaf1gf; 24:sbDPb5fVNe1fLBYHLcZ1pqhgLpkyz6L9Ys263Sn7x/ZIn1rwiw0FZXd6T/Fd7CgAyfT1vJ4QOZoEwn5cVdcTAjt0gkHr5QAbVLjTUxyf4Qw= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; DM2PR0301MB0752; 7:Hm7QpgOBW/+UqJ3rySJuYgUk1m1f1lEWAAPT4kAQUjnCIz5OCrdwZpEwvXFxT8DJBuCTYS1X6tX6kEl1Dfzc391w1N6B0Rnp8BflzCIFCVEr4BMeZyKm37FaZzgall9As7MCL0/KOVpnOvx16C8PjfPEWM+DBkFmgeK4ZoncyOgNPYhM81iyC3oyaOgHVCF8L85OxZ+hVxwY6AEO3MAcOJnB7bslXPrFLRv9cQNfcdGKxSG18fp4loY0nt1WDhgOKIPc6vueP8c6X9YAxUXiPcvTnkNkD0u5iN5SUMwG/AfjWxGId1RmShKnrZd/ca30a1fbRoZ4O4UI41JLO+ClwY53Lyk+wEmsWFXUVWBxA5A= X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Dec 2016 10:04:31.3403 (UTC) X-MS-Exchange-CrossTenant-Id: 5afe0b00-7697-4969-b663-5eab37d5f47e X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=5afe0b00-7697-4969-b663-5eab37d5f47e; Ip=[192.88.168.50]; Helo=[tx30smr01.am.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM2PR0301MB0752 Subject: Re: [dpdk-dev] [PATCH 11/32] net/dpaa2: add dpaa2 vfio support 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, 07 Dec 2016 10:04:35 -0000 On 12/7/2016 2:08 PM, Thomas Monjalon wrote: > 2016-12-07 12:30, Hemant Agrawal: >> On 12/7/2016 2:34 AM, Thomas Monjalon wrote: >>> 2016-12-04 23:47, Hemant Agrawal: >>>> Add support for using VFIO for dpaa2 based fsl-mc bus. >>> >>> Why do we need so much special code for interfacing VFIO on fsl-mc? >>> Can you reuse some code from EAL VFIO? >>> >> >> fsl-mc VFIO scans the objects. So, it is slightly different. >> >> Even though I have tried to minimize changes and re-use the code from >> EAL VFIO. It is still refactoring work, which we will take up little later. > > Do you mean you could re-use some EAL code but do not want to do it now? > It sounds like something heard too many times earlier (from others). > The experience tells we must not wait to do things right. > I meant that I was able to use some of the EAL VFIO functions. There are some changes which I am planning to propose in eal vfio and in our driver. I will do it in subsequent patchsets of current series shortly.