From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM02-CY1-obe.outbound.protection.outlook.com (mail-cys01nam02on0087.outbound.protection.outlook.com [104.47.37.87]) by dpdk.org (Postfix) with ESMTP id B19754CE4 for ; Tue, 6 Jun 2017 12:42: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=ceHbmm4EQn9WBm4KacHAA9cgQn2Emg1RojhCS7BWI/0=; b=obpIl5c8EtAx76a4P6Yd3pSZPil6HhCbjrKOCWgNPkzqEvRqixZ+xx6b2JvxToobkALdRYBbeYFbwzC+C0TurX1lM9jK3KVXKFUnieHm+D5XD1M5AwgzBE5mY+iIW8zkio7q8nUju9+wEIXuJjW3Sb2Q2jXM8jGdhjYDU+Z36ro= Authentication-Results: 6wind.com; dkim=none (message not signed) header.d=none;6wind.com; dmarc=none action=none header.from=caviumnetworks.com; Received: from jerin (122.167.102.185) by BLUPR0701MB1713.namprd07.prod.outlook.com (10.163.85.14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1143.10; Tue, 6 Jun 2017 10:42:09 +0000 Date: Tue, 6 Jun 2017 16:11:55 +0530 From: Jerin Jacob To: =?iso-8859-1?Q?Ga=EBtan?= Rivet Cc: Bruce Richardson , santosh , thomas@monjalon.net, dev@dpdk.org, hemant.agrawal@nxp.com Message-ID: <20170606104154.GB20333@jerin> References: <20170524161101.22863-1-santosh.shukla@caviumnetworks.com> <79f1e8ae-d2cc-e49e-a17d-73c7185b26f8@caviumnetworks.com> <20170602092735.GA51388@bricha3-MOBL3.ger.corp.intel.com> <20170606095719.GA50888@bricha3-MOBL3.ger.corp.intel.com> <20170606101308.GL18840@bidouze.vm.6wind.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20170606101308.GL18840@bidouze.vm.6wind.com> User-Agent: Mutt/1.8.3 (2017-05-23) X-Originating-IP: [122.167.102.185] X-ClientProxiedBy: BM1PR01CA0071.INDPRD01.PROD.OUTLOOK.COM (10.174.208.139) To BLUPR0701MB1713.namprd07.prod.outlook.com (10.163.85.14) X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BLUPR0701MB1713: X-MS-Office365-Filtering-Correlation-Id: 5c83b093-d963-4b24-e191-08d4acc8b05f X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(201703131423075)(201703031133081); SRVR:BLUPR0701MB1713; X-Microsoft-Exchange-Diagnostics: 1; BLUPR0701MB1713; 3:94KpGzEytZcpTF6+cc463rzIe1+5gJ/3FWnNrtDSwBq/KZ2ZXdh8BSAhJiVmeI4J4RN1WGjspuYw3xDreoJXeTQjqCc3CIDw3Jt+uZ3LnA4n6DzQa/3STYBoIIHRYEGJFgZg9WECHzDvG+90il2o16CfjGbscOxA87IU2EZkqf8tO7152VYOf19u1ITUH4h1PilDPbULZRrCTQcAYea7JUNfU52btATJ//ImNuZ1qnp+bbt3K0ofSZxn/kzHKLz5F+NcO32rWcpVcAqfrl/mbvGyWmq38A4FZFEFsBBQaOOdq8wokb23OCwLn7QYbLIOeb0IiP3smsojFnuahhHBKg==; 25:v0mRBSOzgxb6KJA3mmc/qXQY9Q2+kuTlscKfVV4rhmU3KlId3MgJikGrbfZ7+GM+bXeROntTju1xZn6EmvTHTDDqvoOc1hVXqDcEuC7fJai6u9xsVCy7EiBBRwv4++5VmjoUbhj/pJETNhnp0MOP4l0emTFyC/PmtrLgOlOwtxQa9uJ00ulnNsOG3iUaHdW/kzNdnwFg25f3ICfBwfDJvNo1yMpELhr2C7xqQm1mei+9Cdqxrdg3uW4I/bnD5j02j1+bMoTmXpoJcpId1qWUH1UkrO5JqqnIPWvLZUP5WEVenlhj9SmBXkAaDdx2uTo9cL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antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197)(228905959029699); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(8121501046)(5005006)(93006095)(3002001)(100000703101)(100105400095)(10201501046)(6041248)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123558100)(20161123560025)(20161123564025)(20161123562025)(20161123555025)(6072148)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:BLUPR0701MB1713; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:BLUPR0701MB1713; X-Microsoft-Exchange-Diagnostics: =?iso-8859-1?Q?1; BLUPR0701MB1713; 4:GVA5PintHH5jaQ3gYzEWp8VJy53xM6cdKwd5JI?= =?iso-8859-1?Q?4nNx2Tj7TDKyfU+CiN81eHvB9XyMfgBklIVFE6AWs4s0+0LBUV2hk4A0Ra?= =?iso-8859-1?Q?nSLS62UhfvirpmLFRRn4qGqF0Kx8NELKKkjGFF9kZ4Y7WO1lDdMfY7V2fz?= =?iso-8859-1?Q?oVPBFFp5isSUZSbJwAvjbiv+t1nPYZkiW/uHNskawQTQehTjsPYJnJ1lv9?= =?iso-8859-1?Q?vIyb/imwkT/QGjYJ1stmlKG53GtPr62ONXVEkwz98ZDKQ/Xruc+IE+NPm5?= =?iso-8859-1?Q?Q+/7CvNPcRKqcqPwMGoI5NrQsegQ3N6R4DzTKwQNimal658VtcGuLdazY4?= =?iso-8859-1?Q?t6VhGLJlflrNymQ0FXg+dR8+hvELa0GIurBcTrUTpxLZc0Q5nlygTiVjvB?= =?iso-8859-1?Q?J5d8DJ0IzkLHVYVAOdqHko4GIGAUq2OER+F0fSUvO7NrNWm4OFGQZMHbrI?= =?iso-8859-1?Q?6udNAonfXk3045Ntr4fMXPW0POX3oaBX6wWRqHa+Ad1J5y/M2l/9nXZWn2?= =?iso-8859-1?Q?+GEAX5oGMFgkKgsH9FYSFFz/wUpi25+LkCZYZrqPhs8UXA/lJS/nDwgDli?= =?iso-8859-1?Q?l9/Na/SQhUT7siNLoNJqvWIrfpeDc5eBRNuKLB3os7GyQnu9vEch3XGtwt?= =?iso-8859-1?Q?XebnVgBqDm91KDjcuIyHJQ/OSp9F56VfCKPwECn91makWDp9jQBuqwISh4?= =?iso-8859-1?Q?VlwvwmoPuldtZwQkEUBAUu/Qu+mWvOsPuWiAOgT+2dLTsKLIBLko+7GVl5?= =?iso-8859-1?Q?gJpLouNXLslB8Br6fuB/QkjkW8APJijz2QoR586JLEjFil46QRUw89Sz2D?= =?iso-8859-1?Q?0uOcNjn8fqQ0JTDjynwM4H1u1y+TwmFsJEJLUbE7oXJsXduOSZT+Y0fR0t?= =?iso-8859-1?Q?dpYMYgXfQu4anwECXb6XDEmTIHiKZFgAgwG1RewdZyHGq7Xs5QBs2QAYS4?= =?iso-8859-1?Q?M62vIH65aRhyXDp/qkZBPhyb2DyPblWB+iHcRoFvhq6is2lcvcul40Jbq0?= =?iso-8859-1?Q?/iwBwfyqO+hwqFRSnSqTaCm46UDAwWnGDIXvBlS0tVyJk/+q0YIdGwcPHn?= =?iso-8859-1?Q?aNgM3oMT+4LKzHglmAhIHY9rM9zXt8a5Dk61I9hDHT6AyTbkd/eUIq9RZc?= =?iso-8859-1?Q?MLnb9/arTy8fS7c4SD2e7JB+kHptFQqrFS32qfvi45X06xAga2Vve+TrGn?= =?iso-8859-1?Q?xRd8nTKoMYndVkS6WsFzI283/sXg+0MUsEwmZ7qJWw14r1CD+u6yuotSGz?= =?iso-8859-1?Q?glPrB7ro6Tq6hMuVXe?= X-Forefront-PRVS: 033054F29A X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6009001)(39450400003)(39840400002)(39850400002)(39400400002)(39410400002)(377424004)(42186005)(2870700001)(33716001)(229853002)(66066001)(47776003)(189998001)(6666003)(6916009)(2950100002)(33656002)(305945005)(7736002)(6116002)(1076002)(42882006)(3846002)(110136004)(6246003)(76176999)(83506001)(50986999)(38730400002)(6496005)(72206003)(478600001)(2906002)(8656002)(54906002)(5660300001)(25786009)(93886004)(9686003)(4326008)(8676002)(4001350100001)(23756003)(50466002)(53936002)(54356999)(81166006)(18370500001); DIR:OUT; SFP:1101; SCL:1; SRVR:BLUPR0701MB1713; H:jerin; FPR:; SPF:None; MLV:sfv; LANG:en; X-Microsoft-Exchange-Diagnostics: =?iso-8859-1?Q?1; BLUPR0701MB1713; 23:142UaO7zzpZXS/YgcVwFA3OpJt/VkkFILw0lR?= =?iso-8859-1?Q?GyEVD+oLlQodl50Ubzz9VSL6BaorN4Eq9qetk1t6O9wPdgCPbnmyNkvzDw?= =?iso-8859-1?Q?IKMDo2wSx6xFGTOuHNg4BpiMOqpOVaADHuLhsKpCv3ARJgyFrfNzHjpsI/?= =?iso-8859-1?Q?ybwXB0ZAtF+08nb7yYVdPbhXR5ofISWoi9ZDVBq5mZDiMI9EgtZh7fNgLc?= =?iso-8859-1?Q?TurE61cQCSymtTmnzJMHrWI8jPZJE2L3UsRAwuEeO62IChgdGw0l4Z3lhS?= =?iso-8859-1?Q?7nK3W9MK+nHmCHpw4wnI86I1UZ7ngsui7stvP7f32a+azVB1YKCsp5EQ27?= =?iso-8859-1?Q?ThSJ31kSMapjZTf0xYGKoUp8WHcJ1eXQVgfHYc6z4O8hzzznnJIFmbZt+C?= =?iso-8859-1?Q?DMnEqH8ge6Z1EoINgArKy606QqxXRRXmc3IzhP1PAkDdUdX2BUr7DAjx3r?= =?iso-8859-1?Q?AtGsmrMMtFrNBr/5i71KrqEGUkl2Z3dUQIV7IzxafObP2fJ6+/9UGetUwa?= =?iso-8859-1?Q?lLwp1EVNrtAPnQw56N+NcqkZh0iI9M2RjH9FYj9GLlBgUYZhiyGjCq1pS+?= =?iso-8859-1?Q?uh02tWNjY+15lEPWMIGTqOGjhOaXYXGKjL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K5Tv496mHJYZcKVJ5WQgKnYasUuYoTaiB7KoyTT+yzhm/JU+hbN95DsTKVpJwS6MrhHC4eM/yKqUBa79Zl1lINvPKXgz5LsEMInpzr/LdOAO2lPM6V9xczsY3d9lGqGa7+QzycFP3iiuHcCazyYBCXT2ht716uhzrnZZIwfL135jQIMHLHe5h61R053BiNDPWducJRGEHCMNAgxOAxYpd1M6XTklWYD9OGLV65XXxsBEGlbKOe1xqLQcQxamb8RrN9XNxq+39kuUguXiwtxzlrvgy8LBR9TY7h/bu6rZBXwS9wDDMmIPewxrlDCqf31003zUaAunTUu7Ve2rVwDNBtP0s01kiDilILKEfw== X-Microsoft-Exchange-Diagnostics: 1; BLUPR0701MB1713; 5:XJdHS83u+IRLHToAo2vGTPJ5xmEO5UiPR3VLBpsJIAJA1OwVQYkUFDDpGRSrNAR0qY6n7aS/OSlDcb0Pu+hhqVc6i1Rf6wSCM24a6In5JFcgomo1JVr0BOeMUxaksTFvMFzEQE6lZin0NPw+3VZk1cjhzucLl4+18PaDTXdH8yNsRBRV95qgtZoEVucXOFAsp6x8VpXGVb9+Ty0PVfHcDFYv8xrtmDwuDXBvbWhiYpcWNsTi73CZvu5E98Xg8h0mcyT+j4QcmiquAydRuOIl95OlVRU6lZgsCGpwN9B5dmhR9+K07x+ZaLPEnqHcmD1heJ70b+uzva/++nntbX+RE1dz3UMRc9iMAo4No3/UmKdtiPjmZq/XFcrZhJI25RHTbTMhzKPtav/pUCXLZOVjQAfXCoTGY0dYX1riNiL7gJ1a153OUYOX4SDpoDHIYnjOUcFcpwqy3P4ACBPsu2MdlFkEU838fdJTAD+r0s8hMPBbFyTVz5o6+4EDwWmq/oiN; 24:2JGsWlNoJEU7WTu/dzKWAfFCY/B2dDLaUNKITWn2gURr0IY4FA6LlM/apfhZPky5Hxrds9BEQh1aqCytypqqHZuxqzVCGeXm+Z0JEqOn7DQ= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BLUPR0701MB1713; 7:ZVIfwaXY5KJqc7yPv1C7nvkYIPK5E6SWZkdUJcieNkLMB/X1oLwcILkZ0P1tRAEdxIVbVFhBqNAXeXqx3bSU7rUVG7NI67ccjdBqKARbey8+bT0GiExd7SfKHT87HPyB0CuCEO7qJ/c0J5j/HT9QLTEQycyoaVRsHkhW4O6OMd2PJ6JjB1MBD0LKUrTtT4cd0xP8H/eV0sjrXrngiMrPzqniFQj6SSSdcjkzG9q629EJj3bLuc7+2XK/7vaH37sGrm+/3qfc0Wmm0sET0ku858WmklovmRcsWwiTS2rRTsjtT7uWEOdZNnB8lmYbopj+4dV2mpngJssNGh48orj0NQ== X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Jun 2017 10:42:09.1404 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: BLUPR0701MB1713 Subject: Re: [dpdk-dev] [RFC] eal/memory: introducing an option to set iova as va 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, 06 Jun 2017 10:42:15 -0000 -----Original Message----- > Date: Tue, 6 Jun 2017 12:13:08 +0200 > From: Gaëtan Rivet > To: Bruce Richardson > Cc: santosh , thomas@monjalon.net, > dev@dpdk.org, jerin.jacob@caviumnetworks.com, hemant.agrawal@nxp.com > Subject: Re: [dpdk-dev] [RFC] eal/memory: introducing an option to set iova > as va > User-Agent: Mutt/1.5.23 (2014-03-12) > > > > > That sounds a more complete solution. However, it's probably a lot of > > work to implement. :-) > > > > I also wonder if we want to simplify things a little and disallow > > mixed-mode operation i.e. all devices have to use UIO or all use VFIO? > > Would that help to allow simplification or other options. Having a whole > > new bus type seems strange for this. Can each bus just report whether > > it's members require physical addresses. Then the EAL can manage a > > single flag to report whether we are using VA or PA? > > > > Implementing this at a bus level requires all buses to have drivers > iterators, which are currently not exposed, or force all buses to > actively report drivers capabilities upon successful probing. The former > is a sizeable evolution while the latter leads to having duplicated code > in all bus->probe() implementation, which seems unsound. > > I may be mistaken, but is this iova mode not currently limited to > VFIO? Should this API be made generic for all buses or is it only > relevant to the PCI bus? > > If it can stay specific to the PCI bus, then it should simplify greatly > the implementation. It not PCI bus specific. We can have VFIO platform bus too. NXP bus is a VFIO platform bus. I think, This will help NXP bus as well as currently they are using #ifdef scheme to select PA vs VA.