From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from na01-bl2-obe.outbound.protection.outlook.com (mail-bl2on0056.outbound.protection.outlook.com [65.55.169.56]) by dpdk.org (Postfix) with ESMTP id 589458EA0 for ; Fri, 13 May 2016 09:47:37 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=CAVIUMNETWORKS.onmicrosoft.com; s=selector1-cavium-com; h=From:To:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=VCkZD/DX7Mc5822T4unetndtQF4b3erjHJMaVU4VWuM=; b=GeZNWy0XmHf2Y+ryn6FE6Czi0RvzXMiIFIGbg5PdLkb1I/MkfwjsPcg54WY5sCpaDnRhAuG6zugFHSr74hUJrR/ldIa4wmFERbSu9n08Az2JZvxJOxyOLrpUE1kHJQW1x/0RiZXsLwAHAz8+dAxoHj3fg99DUrLKvu6PFrkD+vo= Authentication-Results: nxp.com; dkim=none (message not signed) header.d=none; nxp.com; dmarc=none action=none header.from=caviumnetworks.com; Received: from localhost.localdomain (111.92.123.202) by CY1PR0701MB1726.namprd07.prod.outlook.com (10.163.21.140) with Microsoft SMTP Server (TLS) id 15.1.492.11; Fri, 13 May 2016 07:47:31 +0000 Date: Fri, 13 May 2016 13:17:11 +0530 From: Jerin Jacob To: Hemant Agrawal CC: Jianbo Liu , Santosh Shukla , Stephen Hemminger , "dev@dpdk.org" , Thomas Monjalon Message-ID: <20160513074710.GA4425@localhost.localdomain> References: <20160512031642.GA5855@santosh-Latitude-E5530-non-vPro> <20160512050638.GA7301@santosh-Latitude-E5530-non-vPro> <20160512083342.GA12841@santosh-Latitude-E5530-non-vPro> <20160512103103.GA16360@santosh-Latitude-E5530-non-vPro> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) X-Originating-IP: [111.92.123.202] X-ClientProxiedBy: MAXPR01CA0003.INDPRD01.PROD.OUTLOOK.COM (10.164.147.10) To CY1PR0701MB1726.namprd07.prod.outlook.com (10.163.21.140) X-MS-Office365-Filtering-Correlation-Id: 14ba98b3-ada7-42b8-ff1d-08d37b02d8f0 X-Microsoft-Exchange-Diagnostics: 1; CY1PR0701MB1726; 2:nupvUIPckW3n6eWGz90Fa8UvMi+0HOl2Xj0MB3QnLBg5zfhIxSw8Kb3P9/kd2rcE0uBHBsADqMJwn3OtcQiL3n7ujh24bH28TgAg86HXlQOGIu7iH3xOXs3im/qdkjgs+VFra5gB2t+5Ge5zPl/NoYbkmf4Ut4x9CkEj9qD48Tek5xVMje9fsoY0/0tkOMEb; 3:oLV3NEUevZmv84JImaLawz7Ik002MOr/yXzN9GO3BeocRc6dHmq8MLtfKf49AVYS7HFzcBA9PaJCoI9i7dq80B0SYZP7aha2i2JStK7Jz1OU5rItZUxU6BkMI1HNQtMh; 25:WhWiW8Ys9gkvq2g402qfgSMwT7FGmin7SpOEWYLBdcLpHFupOla4VmY03NgUgRSsHrfwGC08KNouSNBKpYTEdHkVXNHIByChyeqcwdixu+Irbp/WdMuyhZeHKM0DuYbUF9eWYkikVskgHKcTi8sCufnJFgN53Ab8ZUF125OY6f6Ak9HIuiL6x7y0v2FrFvfq5npq2WlyRWQSH1LTvtnt7uepRdaCx9sliBAnf0I6e5EKfeWyNkT5Pw9eEycyo4FVY6KDsXxTAFpzeKu4/Fl475w1jD4+k1tVLZQ8GfrcraIDM6YcVwRqaEgxuH80v+V4ohkmFRjmn5prjoSqFv86la4APVHVNhbO4FE27n2IH1ztyUyhS+e4BXrPOvTXKUR5N1UYGtn8qxXKGJWHZU3SVBnIXSocFwh9kxMS9sAZQFY= X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:CY1PR0701MB1726; X-Microsoft-Exchange-Diagnostics: 1; CY1PR0701MB1726; 20:rp/tKiuktq3WjPk7StCR6nNpwWgh0R/LpWQhNaVibF7XJGjhUu4lgAfsh5XnltrJUftERzEpicZgaOkvcXDQL4rp5zp0CUE2ABt0IREksYmxrxkjXAV8s+C8YdUhPQLkjbKX+KYoDPDU9XmXtNQjbh8wzT+UtEfrK/p6/bgDtYd9NQdcmvIMKZ7usOgXUelKZPIf8CvTk9icYJ6T482f+zTQkPlOye/9BOkGz3CJqv2TzrKLFFu9KXVRw0x+v/02e8YWy3AEIjDW++MDjewk4R+EjobvH0ASZWJWhG8Qb9vmKnhnxgHLawIpO/twpBlfWWc9pfxGR+LHqg34BVY2LYwaegFZlztqY4eEz6RCWhyIg9VB81Ley8zmbygO+NPSJ+ODBL8JqHz5ccl8UsNTcLjhuEkxcu8Fqia6wItJq1HT73DNhGuztGS08WNJCl4ToSeQyiGSPlt6Yz5DNdaqh+UmBIOZYtV9JRjUV1o+jSTdVQj6GHVjsVX7QrPyKJgBQx2uTp8a3dC3AqEKiPUV8NhMmYTlcw/ZOBQEcY220jHBC5pArIxdk0BQlcHp8wneo/SFS/XdsTSz7zs3IvsUmYRia4UEYxGwuFBNmnFMZhY= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(5005006)(8121501046)(10201501046)(3002001); SRVR:CY1PR0701MB1726; BCL:0; PCL:0; RULEID:; SRVR:CY1PR0701MB1726; X-Microsoft-Exchange-Diagnostics: 1; CY1PR0701MB1726; 4:4xQ0wnhADD2bWuRU+yy13Zii+Ttw0kJCYL+bUxxOolILedAgaV673lx5i40gK8f5As+7OofhnPa3xJSN9ncAqkR64NpX7GQb7QcGPU/qs6+u06wE+3kXAB8r9/4sma8LxsM1qtqOCI9DKKZ4ytYbANMAYgvGAT9LQnGkoDxHmLn68pJkLEpMEtffpd+2pVqyML0OTZwh2WCZhe0bcSMVi4eylnZli0FB5uyxYBug5Q48IVGuCNVszmDXYSWIBgyV47I/NNVIuzqmRgAWOv5iREYNbF6V9zurFEQBeEVHEQuWiARnUJzvoFLNzxpid39MTz24LZJTv27xHB9ETkt744gZYaTvLM2Cwp0l7BA7CpU0IW+xigll0jQlYZ0kPWBR X-Forefront-PRVS: 0941B96580 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6069001)(6009001)(24454002)(377454003)(13464003)(19580405001)(19580395003)(77096005)(15975445007)(110136002)(83506001)(93886004)(46406003)(2950100001)(50466002)(189998001)(4326007)(61506002)(2906002)(5009440100003)(66066001)(50986999)(47776003)(5008740100001)(76176999)(54356999)(97756001)(4001350100001)(3846002)(15395725005)(6116002)(586003)(1076002)(23726003)(33656002)(42186005)(9686002)(92566002)(81166006)(8676002)(5004730100002)(7059030); DIR:OUT; SFP:1101; SCL:1; SRVR:CY1PR0701MB1726; H:localhost.localdomain; FPR:; SPF:None; MLV:sfv; LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY1PR0701MB1726; 23:LOCoDQN2ZT4+RBSkuwcjvNS+QZMXinPlD8wrGCn?= =?us-ascii?Q?XhEHDLQswm4/lqETL0iTJR85lgy/qlEFR8jx7qR8eZ/koUHZXj1iRKdprWsY?= =?us-ascii?Q?qlg2ETHf6zkNNzjnjKGfH0y97EmPD8wJ3qVLprC398bNsJ0Fr7UBRe96Rwoy?= =?us-ascii?Q?nCnBGtpfPYCQnRYbpPUCYaGZ0Zh4L/t5FjMsDpewmfUmV4snpd4gchBdyWkq?= =?us-ascii?Q?kQUdNCi8UaWFKZSsVSGs04Mkftq2vAjJBLJ5cpHmuBGKkuVnPtdUcShXgMZ3?= =?us-ascii?Q?XWOeTVI2qKPfljZzQqU8ZTRqTK3VrK9JgLjBtlfb7qStYyPgoeWxx1Fn+pAP?= =?us-ascii?Q?b4MQpskDo5NAwwZksIyMGhPXU8s3TmaYaLE9cwJ0Cx04YYery874p6FT16eR?= =?us-ascii?Q?hj263IW0D3jYO3XxrimV47WJdPQS3j269t57bkleNEuO4i1ApOt6ueGqn4ov?= =?us-ascii?Q?/7jReeH+fWgemLfVPgtHQR7GnMn+ndC3xwjC0Fyqtsm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S6mQ+CfyDJ5Fjpe5y2o6G6n8PqHy38o=; 7:MxR3PzNkgxzPt5sG7UT9BqZ5p1fL2pOIz8QqTKXv8xBDfeVOWr1tJLfzQNMGVfnksMYGt/3oEfDHZmm74kFI8qGAkdsIp4972HXzY/oBWJM/WWT4nKzhUQRm7ByHsEfDsYVC2FlPCb7QZajwGxSowN86WzaOZRJxhLr8WVK0FXncFqTTuc8Cj7/xiY6ChCtW SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 May 2016 07:47:31.7162 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY1PR0701MB1726 Subject: Re: [dpdk-dev] [PATCHv3 1/2] config/armv8a: disable igb_uio X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 May 2016 07:47:37 -0000 On Fri, May 13, 2016 at 03:37:01AM +0000, Hemant Agrawal wrote: > > > > -----Original Message----- > > From: Jianbo Liu [mailto:jianbo.liu@linaro.org] > > Sent: Friday, May 13, 2016 7:13 AM > > To: Santosh Shukla > > Cc: Stephen Hemminger ; Jerin Jacob > > ; Hemant Agrawal > > ; dev@dpdk.org; Thomas Monjalon > > > > Subject: Re: [dpdk-dev] [PATCHv3 1/2] config/armv8a: disable igb_uio > > > > On 12 May 2016 at 18:31, Santosh Shukla > > wrote: > > > On Thu, May 12, 2016 at 05:52:54PM +0800, Jianbo Liu wrote: > > >> On 12 May 2016 at 16:57, Santosh Shukla > > >> wrote: > > >> > On Thu, May 12, 2016 at 01:54:13PM +0800, Jianbo Liu wrote: > > >> >> On 12 May 2016 at 13:06, Santosh Shukla > > >> >> wrote: > > >> >> > On Thu, May 12, 2016 at 11:42:26AM +0800, Jianbo Liu wrote: > > >> >> >> On 12 May 2016 at 11:17, Santosh Shukla > > >> >> >> wrote: > > >> >> >> > On Thu, May 12, 2016 at 10:01:05AM +0800, Jianbo Liu wrote: > > >> >> >> >> On 12 May 2016 at 02:25, Stephen Hemminger > > wrote: > > >> >> >> >> > On Wed, 11 May 2016 22:32:16 +0530 Jerin Jacob > > >> >> >> >> > wrote: > > >> >> >> >> > > > >> >> >> >> >> On Wed, May 11, 2016 at 08:22:59AM -0700, Stephen > > Hemminger wrote: > > >> >> >> >> >> > On Wed, 11 May 2016 19:17:58 +0530 Hemant Agrawal > > >> >> >> >> >> > wrote: > > >> >> >> >> >> > > > >> >> >> >> >> > > IGB_UIO not supported for arm64 arch in kernel so disable. > > >> >> >> >> >> > > > > >> >> >> >> >> > > Signed-off-by: Hemant Agrawal > > >> >> >> >> >> > > > > >> >> >> >> >> > > Reviewed-by: Santosh Shukla > > >> >> >> >> >> > > > > >> >> >> >> >> > > > >> >> >> >> >> > Really, I have use IGB_UIO on ARM64 > > >> >> >> >> >> > > >> >> >> >> >> May I know what is the technical use case for igb_uio on > > >> >> >> >> >> arm64 which cannot be addressed through vfio or vfioionommu. > > >> >> >> >> > > > >> >> >> >> > I was running on older kernel which did not support vfioionommu > > mode. > > >> >> >> >> > > >> >> >> >> As I said, most of DPDK developers are not kernel > > >> >> >> >> developers. They may have their own kernel tree, and > > >> >> >> >> couldn't like to upgrade to latest kernel. > > >> >> >> >> They can choose to use or not use igb_uio when binding the > > >> >> >> >> driver. But blindly disabling it in the base config seems unreasonable. > > >> >> >> > > > >> >> >> > if user keeping his own kernel so they could also keep > > >> >> >> > IGB_UIO=y in their local > > >> >> >> Most likely they don't have local dpdk tree. They write their > > >> >> >> own applications, complie and link to dpdk lib, then done. > > >> >> >> > > >> >> >> > dpdk tree. Why are you imposing user-x custome depedancy on > > >> >> >> > upstream dpdk base > > >> >> >> Customer requiremnts is important. I want they can choose the way > > they like. > > >> >> >> > > >> >> > > > >> >> > so you choose to keep igb_uio option, provided arch doesn't support? > > >> >> > new user did reported issues with igb_uio for arm64, refer this > > >> >> > thread [1], as well hemanth too faced issues. we want to avoid that. > > >> >> > > > >> >> > If customer maintaing out-of-tree kernel then he can also switch to vfio- > > way. > > >> >> > isn;t it? > > >> >> > > > >> >> >> > config. Is it not enough for explanation that - Base config > > >> >> >> > ie.. armv8 doesn;t support pci mmap, so igb_uio is n/a. New > > >> >> >> > user wont able to build/run dpdk/arm64 in igb_uio-way, He'll > > >> >> >> > prefer to use upstream stuff. I think, you are not making > > >> >> >> You are wrong, he can build dpdk. If he like to use upstream > > >> >> >> without patching, he can use vfio. > > >> >> > > > >> >> > I disagree, we want to avoid [1] for new user. > > >> >> > > > >> >> >> But you can't ignore the need from old user which is more > > >> >> >> comfortable with older kernel. > > >> >> >> > > >> >> > arm/arm64 dpdk support recently added and I am guessing, most > > >> >> > likely customer using near latest kernel, switching to vfio won't be so > > difficult. > > >> >> > > > >> >> > Or can you take up responsibility of upstreaming pci mmap patch, > > >> >> > then we don't need this patch. > > >> >> > > > >> >> > [1] http://dpdk.org/ml/archives/dev/2016-January/031313.html > > >> >> > > >> >> Can you read carefully about the guide at > > >> >> http://dpdk.org/doc/guides/linux_gsg/build_dpdk.html? It says to > > >> >> use uio_pci_generic, igb_uio or vfio-pci. > > >> > > > >> > *** applicable and works for x86 only, not for arm64: because pci > > >> > mmap support not present for arm64, in that case we should update the > > doc. > > >> > > > >> >> Could it be possible that the user in that thread has already read > > >> >> and tried them all and found that he can't enable vifo with his > > >> >> kernel, and igb_uio is the easy way for him and asked for help from > > community? > > >> >> If so, we have no choice but keeping igb_uio enabled. > > >> > > > >> > By then vfionoiommu support was wip progress in dpdk/linux. but now > > >> > it merged and it works. So no need to retain igb_uio in base config > > >> > for which to work - user need to use mmap patch at linux side. > > >> > > >> We can't decide which kernel user will use. > > >> > > > > > > yes, we can't decide kernel for user but we should be explicit to user > > > on - what works for dpdk/linux out-of-box vs what could work with use > > > of out-of-tree patch/RFC's.. example igb_uio. > > > > > > > OK, please persuade Stephen Hemminger and the other guy to use upstream > > kernel first! > > [Hemant] It is just a matter for choice for arm64 maintainers. You only have two choices > 1. with the default arm64 support in DPDK, you allow it to be used with any kernel seamlessly. If they need any specific function, they can enable/disable it. > 2. Or, you maintain specific support in the default config, and force all others to manually disable it/or, disable it via their specific configuration. > > I was not intending to change the default arm64 config in my original patch, I rather used it to disable it via NXP specific platform config. > I still agree with Santosh that a new arm64 user should not be worry about searching & patching the kernel. > > > In any case, who is going to take a call here? My take is to disable for arm64 to make sync with upstream kernel. If Jianbo still feel it is better to keep for arm64 then lets disable it for NXP and ThunderX and keep it enable for arm64 def config. Thanks, Jerin > > > > >> > > > >> > Or can you maintain out-of-tree pci mmap patch/ kerne source and > > >> > make it explicit somewhere in dpdk build doc that - if user want > > >> > igb_uio way then use kernel/mmap patch from x location. > > >> > > >> The patch is in the kernel maillist, and user google it. > > > > > > there are feature specific rfc's in plenty in lkml/qemu mailing list, > > > and you > > > suggest- user to hunt for all those information. Is this how we;re > > > officially supporting igb_uio for arm64.. that let user to google? > > > > > > > Sorry I don't know you are offically support users here. > > And you also don't know what they really want. > > > > >> And isn't funny to ask someone to do something again and again (3 > > >> times) in this thread? > > >> > > > > > > I am asking becasue your in favour of keeping igb_uio for arm64 but > > > not agreeing to streamline (writing a note in dpdk doc for igb_uio for > > > arm64 or pointing to working tree).. so that user don;t need to grep > > > or google for known findings. > > > > > > I find discussion going in circle and nothing will conclude, So given up. > > >> > > > >> >> He use lsmod to show us the modules, most likely he know vifo-pci. > > >> >> > > >> >> Below are the details on modules, hugepages and device binding. > > >> >> root at arm64:~# lsmod > > >> >> Module Size Used by > > >> >> rte_kni 292795 0 > > >> >> igb_uio 4338 0 > > >> >> ixgbe 184456 0