Message ID | 1462974479-26180-1-git-send-email-hemant.agrawal@nxp.com (mailing list archive) |
---|---|
State | Accepted, archived |
Delegated to: | Thomas Monjalon |
Headers |
Return-Path: <dev-bounces@dpdk.org> X-Original-To: patchwork@dpdk.org Delivered-To: patchwork@dpdk.org Received: from [92.243.14.124] (localhost [IPv6:::1]) by dpdk.org (Postfix) with ESMTP id F3E0DC356; Wed, 11 May 2016 10:13:50 +0200 (CEST) Received: from na01-bl2-obe.outbound.protection.outlook.com (mail-bl2on0086.outbound.protection.outlook.com [65.55.169.86]) by dpdk.org (Postfix) with ESMTP id B7758C32C for <dev@dpdk.org>; Wed, 11 May 2016 10:13:49 +0200 (CEST) Received: from BY2PR03CA045.namprd03.prod.outlook.com (10.141.249.18) by BL2PR03MB468.namprd03.prod.outlook.com (10.141.92.27) with Microsoft SMTP Server (TLS) id 15.1.492.11; Wed, 11 May 2016 08:13:48 +0000 Received: from BN1AFFO11FD028.protection.gbl (2a01:111:f400:7c10::118) by BY2PR03CA045.outlook.office365.com (2a01:111:e400:2c5d::18) with Microsoft SMTP Server (TLS) id 15.1.492.11 via Frontend Transport; Wed, 11 May 2016 08:13:48 +0000 Authentication-Results: spf=fail (sender IP is 192.88.158.2) smtp.mailfrom=nxp.com; 6wind.com; dkim=none (message not signed) header.d=none; 6wind.com; dmarc=none action=none header.from=nxp.com; Received-SPF: Fail (protection.outlook.com: domain of nxp.com does not designate 192.88.158.2 as permitted sender) receiver=protection.outlook.com; client-ip=192.88.158.2; helo=az84smr01.freescale.net; Received: from az84smr01.freescale.net (192.88.158.2) by BN1AFFO11FD028.mail.protection.outlook.com (10.58.52.88) with Microsoft SMTP Server (TLS) id 15.1.492.8 via Frontend Transport; Wed, 11 May 2016 08:13:47 +0000 Received: from netperf1-OptiPlex-3020.ap.freescale.net (netperf1-OptiPlex-3020.ap.freescale.net [10.232.134.28]) by az84smr01.freescale.net (8.14.3/8.14.0) with ESMTP id u4B8Dhvr028757; Wed, 11 May 2016 01:13:44 -0700 From: Hemant Agrawal <hemant.agrawal@nxp.com> To: <dev@dpdk.org> CC: <jerin.jacob@caviumnetworks.com>, <jianbo.liu@linaro.org>, <santosh.shukla@caviumnetworks.com>, <thomas.monjalon@6wind.com> Date: Wed, 11 May 2016 19:17:58 +0530 Message-ID: <1462974479-26180-1-git-send-email-hemant.agrawal@nxp.com> X-Mailer: git-send-email 1.9.1 X-EOPAttributedMessage: 0 X-Matching-Connectors: 131074280279463289; (91ab9b29-cfa4-454e-5278-08d120cd25b8); () X-Forefront-Antispam-Report: CIP:192.88.158.2; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(2980300002)(1110001)(1109001)(339900001)(199003)(189002)(9170700003)(2351001)(1220700001)(77096005)(50466002)(586003)(48376002)(85426001)(87936001)(105606002)(104016004)(8936002)(229853001)(11100500001)(110136002)(4326007)(36756003)(2906002)(92566002)(19580395003)(50226002)(19580405001)(47776003)(50986999)(5003940100001)(106466001)(81166006)(86362001)(189998001)(6806005)(33646002)(5008740100001); DIR:OUT; SFP:1101; SCL:1; SRVR:BL2PR03MB468; H:az84smr01.freescale.net; FPR:; SPF:Fail; MLV:sfv; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN1AFFO11FD028; 1:rWSaf1I5yIw/NIXunmH2/6W0slrHq8atjCu3rdo+tM4dgU+w7edaDyqI6z5hyGd3ZANglRvbHH8DZaamY/d2Mh68Pyk1wCJ9dbLrXKs/mzycF2QmXm9zKq08UHH6b+PIsKu0LfBuQoqklb3Z6l6gYAM60cu3ZaqWD+4AsyTGV6pojhGE2984TfEihGETZNrZfU/NfAvPeGPwaS0hczTF2/BA6zcjxEdAyHyREYXOykn0jse1DbT2pOgC3S/BrnUaO9q4iqvPeZhFW5X98D8t0HeYaBPSXRrrkueaHXdI+N+hrNUXOcqT0sPmuMLSchJD5sqi9uFpZqJirTvlD3kUWG2inyaADbXnynRcJvO+jbkhRRdwzvaGAidDTUSnf7lFzudguo9NG2WozHZgvQfybt8PX7bjdOTdhM3tMXXdqKExyAxffSlKv4bQbYYY2e90SsaPKP42eq34OSFXkMg/1Pl4KTzshTJlpEaWVec2XlRVXlW/LIZkVkQmqXNFlO2jkcCIBKxJ0ui4gCrB1QbRBsItWR7vRVjcdXO0SXK0TpvAzqQS9PlSZ6stN543BZU1NncyhFocWUIGy0+IDTamuj0MW5IcS8UB3t08LgGJHI+jKnCjNU1yPtQBNFUSIssK MIME-Version: 1.0 Content-Type: text/plain X-MS-Office365-Filtering-Correlation-Id: 132b7c43-c4a8-4b7a-f418-08d379742db3 X-Microsoft-Exchange-Diagnostics: 1; BL2PR03MB468; 2:FHDmWOLP+QcdvvpsKfLdRJB+lqpxn9O554r2VmzSzxHoR5xo8RqmKPL0lwzi+/pV8Ms5bT088/v8Ftv/D4f4EbKvVPt355aqerQmICAwv/txpAo2VXwzK0k5j32gtrq7Ke7/1J5jKstNUfFUxZ3KnT+Icm5E0ZVJEGa2TWh8dowUeej1jf2n/7SrMb9mlX9R; 3:O5y3Atx2IcOx8THmAoU3C4mTSk5AyCASV5Vh418KchblhD6vvXad8WC+N4eVXyyDwI8ELlaE3VQrDYGlHcODLHOMcTB11Yg1ATKdH0uRX85MlYT+QTPI07w6xvmkN2cL3mLRapb9t6ZAlN8aLwLE1TD7mj0Sr9l93H1TWoTpC0XuQVqFeA/Zq64Qt0evYW1fIJKhkOWs83zKBcR8IBPqSNYrE37q4Tx1LU/XMBtF/Sg= X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BL2PR03MB468; X-Microsoft-Exchange-Diagnostics: 1; BL2PR03MB468; 25:CrE8YXFMOinNCswBIpqwu/45lpmi0VH6//jJIELwD6YSFhj3X6CWqI+fc8m3AQ9phmJXjbkyQ2bIHxzJ2brvI83w1FssLPr/htO6ByNFfAFmsTvMmK40NtaElKapcodYQVsAHpARO3NzENZPw6TWBCzUXyYkaPqHnyaq/nQFFEF4gEde5FySPvxpLgyf+G0q93xnph0q1VQOjXtvfZYsQPywX1WYWJ+pwd7K1wOvMeGUlrJu8qOLEdiqfI9EI2w0/tK/HIgX/xyJN6AHfZyxL2meCCE7KxaENsnl7jyVKGR4+GJYJ7bffLo5IxPqqmO7xxrZjBaQWR/tzaIPJpwkeJKLsNfVZRRRoOMHqK+0pW3qujkSIvc4ViS37nrlAn1fs8nhYGaM808YqsWlzHyHlLNN7C1TwQwHwyjez0bziEDdmDn5eDweAqARH9HP0CBWAVDySFgSLneAb3x+RU7jQNDcCAB0kAvVQ/L58G2K+EPtvpeQMbaNCt4j2diXFqwJYXR0HZU8V8imhuOMiRFdbsbbZpNL/SVO/vSZY0BbNzc5Z1sfKyyySzqCDVAWyibS7GIBzamiq7LJ3EWj+fpaEooaOCHWIyjqW6ab4UsG4P/JV6W9566uBq0NH7hgoUOMgv7tdrNEj2g7ypR9EilRxMLkkBwCGTyeNTZaXxhl5nf33DYepGwylMfK+e9pE6u3Z260lDjIBg79J0kMmZwGOrAUDqxZKMUjK1INiBf9SoZsUspQhQ/2H3r3rDDVyiDJ X-Microsoft-Antispam-PRVS: <BL2PR03MB4688C34092219619C24106789720@BL2PR03MB468.namprd03.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(13017025)(13015025)(13018025)(13023025)(13024025)(5005006)(8121501046)(10201501046)(3002001)(6055026); SRVR:BL2PR03MB468; BCL:0; PCL:0; RULEID:(400006); SRVR:BL2PR03MB468; X-Microsoft-Exchange-Diagnostics: 1; BL2PR03MB468; 4:rekUjhiW0tCJOWOoJ2KkSYbISRmJXOMlSJ/BI8v80YpzrAoCAMXVgpnJ/gNrVIr1tlpWpmdSbqhzCs2o9duE4SkCkVGpvQLaGbJegr0gPUg2C3v2Lt+6QWu8UmJRxpXtIP3ufRhYAWLJTR3X5dhr5skCYLV4p18Mlk2gxyVKqO3DtjtvD+FKAki1W4mSit4pQXsaxi7NxfZ9ZS898Nw01GZWLpcjQWzPK9m1PS1OUZvR1XS/jAsb6hKMZYJadJETB5lPNOxmoCVCkE1/2Q+2p7rmyLOjQSk5ahg6BqzWXPGbSjYJQUibpSzxDIe+7ftnMEU+Mz6C7FGR1UC5jIMuN6Hl0Xv8C1UDVWQPGKOMdswHzjmzrxKf5+8hf4ZE46wX8SCeZc3olcRk+bgsxhMrw1oIYKFwKIFLnfCDDcsjsh/0uznXA/yUsZwhx3gPJFr3biGf2PO2SW7lp+0qA8tLQhWGe7eLqp6pkUpfhRLpYqQ= X-Forefront-PRVS: 0939529DE2 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BL2PR03MB468; 23:nbtmvUvOMP/KtsyWV2Rv6oApjPfeij5aChqiY6ZE/I?= =?us-ascii?Q?O0x9aSLhfxu6BJEc01YwFpG0aI4ixaB7rMYcNQLLk+UnkpHmORECyTH8V+Ah?= =?us-ascii?Q?cchn7KTVm2Sk530WvWLih7ijGDb9VvSEuolVaRz+gZ1O4tQmkj4n/7zvnKza?= =?us-ascii?Q?CiYGgeDuj5YyefhIfZ/3+c3uUBlhqbhRm0gmbFzKUivNY3c4UlDnHQCOrL/o?= =?us-ascii?Q?Ld2ECogmhLb+rwUFnpxyppAzMxbejlhG3WXM3lszOvYnb4DaAH38VHqzLxS7?= =?us-ascii?Q?tpFglfE181qG6x8GDdagHoSGKH22dN3HACKrozS03gseXRgSU5I9ShbtnFrg?= =?us-ascii?Q?d+vDdoPS8oHHZP9L7U3QLoParos8vln/HM+OV/HcjN4ha6HmZJzxTIGVmaab?= =?us-ascii?Q?tsxi+SZPeiV3I3eQObLDtEOCTlH7Quhlogt0EA6XIRF39TG8fz95O5sxGIST?= =?us-ascii?Q?djllarlzIkwXZzSjC31fKQgnFxYZpb6IpWiMAA9E/d+ye2uCrHZVL10Gx/Ct?= =?us-ascii?Q?JKwKh7BPszj0yFq09biSeGR4bZOtu30ut1pfc41q+Qd/Qm07uwmmrj+82K0H?= =?us-ascii?Q?rNeybC3wN9u0pStgWK5ZbxSnibJE6+nKkk/SzULpDd8AjVectHSrOcdn464F?= =?us-ascii?Q?bHL6SlFCpQCJkD7ejKAwzjvDM1/cKFJQUx4lFohg/g68D96inKF4dQp642nA?= =?us-ascii?Q?7q58YqHaZyoPV0IX8FI+dDc7uvhbcZG8aZvkiRp6CXA3nOuYYjAKQcbkXjqZ?= =?us-ascii?Q?0Va2kP9ozPhCqeW+IKSPvkM3EvW8/vVabB7oAUw0vAjfa0hU3FNdtn1YEJfV?= =?us-ascii?Q?PTtRBzuXZ3vBsuGYfzv4YNknhfFmXHQskm2sDd3JLl9A3Gfyo2kN9DUEjRHG?= =?us-ascii?Q?T3OF/pjszUYCtk6XfPmbKFiGQr/K521XT9P5ZmSAuCFvH+q0nG1LCWHy/7YH?= =?us-ascii?Q?Zu9Q1+9RuSrsVitvvsLtHv43TdrZKZRK6ILULqkcsvCqZA0nv9J//TwquGdH?= =?us-ascii?Q?+/O5J5mR9RTo7arW+4jrCpy9AEov0g5Q0FNyAbGr6jNA=3D=3D?= X-Microsoft-Exchange-Diagnostics: 1; BL2PR03MB468; 5:qNSI3ucWpshv/JgErT+oqoisVVFzl0iodaVQxuWk/c3GjDLwcT4FixnsNSxcEnl86pqhJy7TYuzM7wVwM7V3Nrn82m5ADp7uVyNIAkLYtKPfJo+QBfVJ65bn25WNyiNvnlmYGONQD51mPosoJKbhDUIEQ/nBJ+PNPw7Hw2jCR7k=; 24:de1DduaycFbQP+Ykg4LSedKqF6iU4JX4sMcSewvkDwqYNxFMSOfAjenFHpofQfXvoDESVGdu2PdAj0tFBu9EL/3zG9idQVECyxJhXdZXl40=; 7:s4ZgulXagW4JfO7b8T5RdlXjKCZrlRWIUKWibrurHor3Itl93aoZGq8Q/n2rRS5aT9wTmhmcccCpvowg0My5eqnFMA3eBtwDubF/iBLqwQkRVQmQdsDsJtaqDc+oHOohAwX+q46z7ijw/PrXWYEfOs8+5HTD98Q0gbtKrSIx5AJFYdbZvQiuFR7qZ6tfRzIb SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 May 2016 08:13:47.6967 (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.158.2]; Helo=[az84smr01.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL2PR03MB468 Subject: [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 <dev.dpdk.org> List-Unsubscribe: <http://dpdk.org/ml/options/dev>, <mailto:dev-request@dpdk.org?subject=unsubscribe> List-Archive: <http://dpdk.org/ml/archives/dev/> List-Post: <mailto:dev@dpdk.org> List-Help: <mailto:dev-request@dpdk.org?subject=help> List-Subscribe: <http://dpdk.org/ml/listinfo/dev>, <mailto:dev-request@dpdk.org?subject=subscribe> Errors-To: dev-bounces@dpdk.org Sender: "dev" <dev-bounces@dpdk.org> |
Commit Message
Hemant Agrawal
May 11, 2016, 1:47 p.m. UTC
IGB_UIO not supported for arm64 arch in kernel so disable. Signed-off-by: Hemant Agrawal <hemant.agrawal@nxp.com> Reviewed-by: Santosh Shukla <santosh.shukla@caviumnetworks.com> --- config/defconfig_arm64-armv8a-linuxapp-gcc | 2 ++ 1 file changed, 2 insertions(+)
Comments
On Wed, 11 May 2016 19:17:58 +0530 Hemant Agrawal <hemant.agrawal@nxp.com> wrote: > IGB_UIO not supported for arm64 arch in kernel so disable. > > Signed-off-by: Hemant Agrawal <hemant.agrawal@nxp.com> > Reviewed-by: Santosh Shukla <santosh.shukla@caviumnetworks.com> Really, I have use IGB_UIO on ARM64
On Wed, May 11, 2016 at 08:22:59AM -0700, Stephen Hemminger wrote: > On Wed, 11 May 2016 19:17:58 +0530 > Hemant Agrawal <hemant.agrawal@nxp.com> wrote: > > > IGB_UIO not supported for arm64 arch in kernel so disable. > > > > Signed-off-by: Hemant Agrawal <hemant.agrawal@nxp.com> > > Reviewed-by: Santosh Shukla <santosh.shukla@caviumnetworks.com> > > Really, I have use IGB_UIO on ARM64 upstream kernel doesn't support pci mmap for arm64. pl. refer [1], [2]. so I assume - your using out of tree patch something like below for igb_uio on arm64. also arm-linux community encouraging vfio use for such use-cases. [1] http://lists.infradead.org/pipermail/linux-arm-kernel/2015-July/359435.html [2] http://www.spinics.net/lists/arm-kernel/msg498005.html
On Wed, May 11, 2016 at 08:22:59AM -0700, Stephen Hemminger wrote: > On Wed, 11 May 2016 19:17:58 +0530 > Hemant Agrawal <hemant.agrawal@nxp.com> wrote: > > > IGB_UIO not supported for arm64 arch in kernel so disable. > > > > Signed-off-by: Hemant Agrawal <hemant.agrawal@nxp.com> > > Reviewed-by: Santosh Shukla <santosh.shukla@caviumnetworks.com> > > 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.
On Wed, 11 May 2016 22:32:16 +0530 Jerin Jacob <jerin.jacob@caviumnetworks.com> 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 <hemant.agrawal@nxp.com> wrote: > > > > > IGB_UIO not supported for arm64 arch in kernel so disable. > > > > > > Signed-off-by: Hemant Agrawal <hemant.agrawal@nxp.com> > > > Reviewed-by: Santosh Shukla <santosh.shukla@caviumnetworks.com> > > > > 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.
On 12 May 2016 at 02:25, Stephen Hemminger <stephen@networkplumber.org> wrote: > On Wed, 11 May 2016 22:32:16 +0530 > Jerin Jacob <jerin.jacob@caviumnetworks.com> 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 <hemant.agrawal@nxp.com> wrote: >> > >> > > IGB_UIO not supported for arm64 arch in kernel so disable. >> > > >> > > Signed-off-by: Hemant Agrawal <hemant.agrawal@nxp.com> >> > > Reviewed-by: Santosh Shukla <santosh.shukla@caviumnetworks.com> >> > >> > 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.
On Wed, May 11, 2016 at 11:25:59AM -0700, Stephen Hemminger wrote: > On Wed, 11 May 2016 22:32:16 +0530 > Jerin Jacob <jerin.jacob@caviumnetworks.com> 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 <hemant.agrawal@nxp.com> wrote: > > > > > > > IGB_UIO not supported for arm64 arch in kernel so disable. > > > > > > > > Signed-off-by: Hemant Agrawal <hemant.agrawal@nxp.com> > > > > Reviewed-by: Santosh Shukla <santosh.shukla@caviumnetworks.com> > > > > > > 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. That way if we see older and latest kernel does not have ibg_uio(due to sysfs mmap issue) support .If you are back-porting the changes I recommend to back port vfioionommu changes to old kernel. If it comes to out of tree then dpdk out of tree configuration can also set CONFIG_RTE_EAL_IGB_UIO or even while configuring dpdk. IMO, It is better to keep arm64 dpdk.org changes inline with upstream arm64 linux kernel changes. What do you think?
On Thu, May 12, 2016 at 10:01:05AM +0800, Jianbo Liu wrote: > On 12 May 2016 at 02:25, Stephen Hemminger <stephen@networkplumber.org> wrote: > > On Wed, 11 May 2016 22:32:16 +0530 > > Jerin Jacob <jerin.jacob@caviumnetworks.com> 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 <hemant.agrawal@nxp.com> wrote: > >> > > >> > > IGB_UIO not supported for arm64 arch in kernel so disable. > >> > > > >> > > Signed-off-by: Hemant Agrawal <hemant.agrawal@nxp.com> > >> > > Reviewed-by: Santosh Shukla <santosh.shukla@caviumnetworks.com> > >> > > >> > 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 dpdk tree. Why are you imposing user-x custome depedancy on upstream dpdk base 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 sense.
On 12 May 2016 at 11:17, Santosh Shukla <santosh.shukla@caviumnetworks.com> wrote: > On Thu, May 12, 2016 at 10:01:05AM +0800, Jianbo Liu wrote: >> On 12 May 2016 at 02:25, Stephen Hemminger <stephen@networkplumber.org> wrote: >> > On Wed, 11 May 2016 22:32:16 +0530 >> > Jerin Jacob <jerin.jacob@caviumnetworks.com> 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 <hemant.agrawal@nxp.com> wrote: >> >> > >> >> > > IGB_UIO not supported for arm64 arch in kernel so disable. >> >> > > >> >> > > Signed-off-by: Hemant Agrawal <hemant.agrawal@nxp.com> >> >> > > Reviewed-by: Santosh Shukla <santosh.shukla@caviumnetworks.com> >> >> > >> >> > 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. > 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. But you can't ignore the need from old user which is more comfortable with older kernel. > sense. >
On Thu, May 12, 2016 at 11:42:26AM +0800, Jianbo Liu wrote: > On 12 May 2016 at 11:17, Santosh Shukla > <santosh.shukla@caviumnetworks.com> wrote: > > On Thu, May 12, 2016 at 10:01:05AM +0800, Jianbo Liu wrote: > >> On 12 May 2016 at 02:25, Stephen Hemminger <stephen@networkplumber.org> wrote: > >> > On Wed, 11 May 2016 22:32:16 +0530 > >> > Jerin Jacob <jerin.jacob@caviumnetworks.com> 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 <hemant.agrawal@nxp.com> wrote: > >> >> > > >> >> > > IGB_UIO not supported for arm64 arch in kernel so disable. > >> >> > > > >> >> > > Signed-off-by: Hemant Agrawal <hemant.agrawal@nxp.com> > >> >> > > Reviewed-by: Santosh Shukla <santosh.shukla@caviumnetworks.com> > >> >> > > >> >> > 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 > > sense. > >
On 12 May 2016 at 13:06, Santosh Shukla <santosh.shukla@caviumnetworks.com> wrote: > On Thu, May 12, 2016 at 11:42:26AM +0800, Jianbo Liu wrote: >> On 12 May 2016 at 11:17, Santosh Shukla >> <santosh.shukla@caviumnetworks.com> wrote: >> > On Thu, May 12, 2016 at 10:01:05AM +0800, Jianbo Liu wrote: >> >> On 12 May 2016 at 02:25, Stephen Hemminger <stephen@networkplumber.org> wrote: >> >> > On Wed, 11 May 2016 22:32:16 +0530 >> >> > Jerin Jacob <jerin.jacob@caviumnetworks.com> 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 <hemant.agrawal@nxp.com> wrote: >> >> >> > >> >> >> > > IGB_UIO not supported for arm64 arch in kernel so disable. >> >> >> > > >> >> >> > > Signed-off-by: Hemant Agrawal <hemant.agrawal@nxp.com> >> >> >> > > Reviewed-by: Santosh Shukla <santosh.shukla@caviumnetworks.com> >> >> >> > >> >> >> > 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. 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. 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
On Thu, May 12, 2016 at 01:54:13PM +0800, Jianbo Liu wrote: > On 12 May 2016 at 13:06, Santosh Shukla > <santosh.shukla@caviumnetworks.com> wrote: > > On Thu, May 12, 2016 at 11:42:26AM +0800, Jianbo Liu wrote: > >> On 12 May 2016 at 11:17, Santosh Shukla > >> <santosh.shukla@caviumnetworks.com> wrote: > >> > On Thu, May 12, 2016 at 10:01:05AM +0800, Jianbo Liu wrote: > >> >> On 12 May 2016 at 02:25, Stephen Hemminger <stephen@networkplumber.org> wrote: > >> >> > On Wed, 11 May 2016 22:32:16 +0530 > >> >> > Jerin Jacob <jerin.jacob@caviumnetworks.com> 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 <hemant.agrawal@nxp.com> wrote: > >> >> >> > > >> >> >> > > IGB_UIO not supported for arm64 arch in kernel so disable. > >> >> >> > > > >> >> >> > > Signed-off-by: Hemant Agrawal <hemant.agrawal@nxp.com> > >> >> >> > > Reviewed-by: Santosh Shukla <santosh.shukla@caviumnetworks.com> > >> >> >> > > >> >> >> > 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. 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. > 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
On 12 May 2016 at 16:57, Santosh Shukla <santosh.shukla@caviumnetworks.com> wrote: > On Thu, May 12, 2016 at 01:54:13PM +0800, Jianbo Liu wrote: >> On 12 May 2016 at 13:06, Santosh Shukla >> <santosh.shukla@caviumnetworks.com> wrote: >> > On Thu, May 12, 2016 at 11:42:26AM +0800, Jianbo Liu wrote: >> >> On 12 May 2016 at 11:17, Santosh Shukla >> >> <santosh.shukla@caviumnetworks.com> wrote: >> >> > On Thu, May 12, 2016 at 10:01:05AM +0800, Jianbo Liu wrote: >> >> >> On 12 May 2016 at 02:25, Stephen Hemminger <stephen@networkplumber.org> wrote: >> >> >> > On Wed, 11 May 2016 22:32:16 +0530 >> >> >> > Jerin Jacob <jerin.jacob@caviumnetworks.com> 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 <hemant.agrawal@nxp.com> wrote: >> >> >> >> > >> >> >> >> > > IGB_UIO not supported for arm64 arch in kernel so disable. >> >> >> >> > > >> >> >> >> > > Signed-off-by: Hemant Agrawal <hemant.agrawal@nxp.com> >> >> >> >> > > Reviewed-by: Santosh Shukla <santosh.shukla@caviumnetworks.com> >> >> >> >> > >> >> >> >> > 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. > > 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. And isn't funny to ask someone to do something again and again (3 times) in this thread? > >> 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
On Thu, May 12, 2016 at 05:52:54PM +0800, Jianbo Liu wrote: > On 12 May 2016 at 16:57, Santosh Shukla > <santosh.shukla@caviumnetworks.com> wrote: > > On Thu, May 12, 2016 at 01:54:13PM +0800, Jianbo Liu wrote: > >> On 12 May 2016 at 13:06, Santosh Shukla > >> <santosh.shukla@caviumnetworks.com> wrote: > >> > On Thu, May 12, 2016 at 11:42:26AM +0800, Jianbo Liu wrote: > >> >> On 12 May 2016 at 11:17, Santosh Shukla > >> >> <santosh.shukla@caviumnetworks.com> wrote: > >> >> > On Thu, May 12, 2016 at 10:01:05AM +0800, Jianbo Liu wrote: > >> >> >> On 12 May 2016 at 02:25, Stephen Hemminger <stephen@networkplumber.org> wrote: > >> >> >> > On Wed, 11 May 2016 22:32:16 +0530 > >> >> >> > Jerin Jacob <jerin.jacob@caviumnetworks.com> 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 <hemant.agrawal@nxp.com> wrote: > >> >> >> >> > > >> >> >> >> > > IGB_UIO not supported for arm64 arch in kernel so disable. > >> >> >> >> > > > >> >> >> >> > > Signed-off-by: Hemant Agrawal <hemant.agrawal@nxp.com> > >> >> >> >> > > Reviewed-by: Santosh Shukla <santosh.shukla@caviumnetworks.com> > >> >> >> >> > > >> >> >> >> > 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. > > > > 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? > 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
On 12 May 2016 at 18:31, Santosh Shukla <santosh.shukla@caviumnetworks.com> wrote: > On Thu, May 12, 2016 at 05:52:54PM +0800, Jianbo Liu wrote: >> On 12 May 2016 at 16:57, Santosh Shukla >> <santosh.shukla@caviumnetworks.com> wrote: >> > On Thu, May 12, 2016 at 01:54:13PM +0800, Jianbo Liu wrote: >> >> On 12 May 2016 at 13:06, Santosh Shukla >> >> <santosh.shukla@caviumnetworks.com> wrote: >> >> > On Thu, May 12, 2016 at 11:42:26AM +0800, Jianbo Liu wrote: >> >> >> On 12 May 2016 at 11:17, Santosh Shukla >> >> >> <santosh.shukla@caviumnetworks.com> wrote: >> >> >> > On Thu, May 12, 2016 at 10:01:05AM +0800, Jianbo Liu wrote: >> >> >> >> On 12 May 2016 at 02:25, Stephen Hemminger <stephen@networkplumber.org> wrote: >> >> >> >> > On Wed, 11 May 2016 22:32:16 +0530 >> >> >> >> > Jerin Jacob <jerin.jacob@caviumnetworks.com> 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 <hemant.agrawal@nxp.com> wrote: >> >> >> >> >> > >> >> >> >> >> > > IGB_UIO not supported for arm64 arch in kernel so disable. >> >> >> >> >> > > >> >> >> >> >> > > Signed-off-by: Hemant Agrawal <hemant.agrawal@nxp.com> >> >> >> >> >> > > Reviewed-by: Santosh Shukla <santosh.shukla@caviumnetworks.com> >> >> >> >> >> > >> >> >> >> >> > 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! >> > >> > 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
> -----Original Message----- > From: Jianbo Liu [mailto:jianbo.liu@linaro.org] > Sent: Friday, May 13, 2016 7:13 AM > To: Santosh Shukla <santosh.shukla@caviumnetworks.com> > Cc: Stephen Hemminger <stephen@networkplumber.org>; Jerin Jacob > <jerin.jacob@caviumnetworks.com>; Hemant Agrawal > <hemant.agrawal@nxp.com>; dev@dpdk.org; Thomas Monjalon > <thomas.monjalon@6wind.com> > Subject: Re: [dpdk-dev] [PATCHv3 1/2] config/armv8a: disable igb_uio > > On 12 May 2016 at 18:31, Santosh Shukla > <santosh.shukla@caviumnetworks.com> wrote: > > On Thu, May 12, 2016 at 05:52:54PM +0800, Jianbo Liu wrote: > >> On 12 May 2016 at 16:57, Santosh Shukla > >> <santosh.shukla@caviumnetworks.com> wrote: > >> > On Thu, May 12, 2016 at 01:54:13PM +0800, Jianbo Liu wrote: > >> >> On 12 May 2016 at 13:06, Santosh Shukla > >> >> <santosh.shukla@caviumnetworks.com> wrote: > >> >> > On Thu, May 12, 2016 at 11:42:26AM +0800, Jianbo Liu wrote: > >> >> >> On 12 May 2016 at 11:17, Santosh Shukla > >> >> >> <santosh.shukla@caviumnetworks.com> wrote: > >> >> >> > On Thu, May 12, 2016 at 10:01:05AM +0800, Jianbo Liu wrote: > >> >> >> >> On 12 May 2016 at 02:25, Stephen Hemminger > <stephen@networkplumber.org> wrote: > >> >> >> >> > On Wed, 11 May 2016 22:32:16 +0530 Jerin Jacob > >> >> >> >> > <jerin.jacob@caviumnetworks.com> 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 > >> >> >> >> >> > <hemant.agrawal@nxp.com> wrote: > >> >> >> >> >> > > >> >> >> >> >> > > IGB_UIO not supported for arm64 arch in kernel so disable. > >> >> >> >> >> > > > >> >> >> >> >> > > Signed-off-by: Hemant Agrawal > >> >> >> >> >> > > <hemant.agrawal@nxp.com> > >> >> >> >> >> > > Reviewed-by: Santosh Shukla > >> >> >> >> >> > > <santosh.shukla@caviumnetworks.com> > >> >> >> >> >> > > >> >> >> >> >> > 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? > > >> > > >> > 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
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 <santosh.shukla@caviumnetworks.com> > > Cc: Stephen Hemminger <stephen@networkplumber.org>; Jerin Jacob > > <jerin.jacob@caviumnetworks.com>; Hemant Agrawal > > <hemant.agrawal@nxp.com>; dev@dpdk.org; Thomas Monjalon > > <thomas.monjalon@6wind.com> > > Subject: Re: [dpdk-dev] [PATCHv3 1/2] config/armv8a: disable igb_uio > > > > On 12 May 2016 at 18:31, Santosh Shukla > > <santosh.shukla@caviumnetworks.com> wrote: > > > On Thu, May 12, 2016 at 05:52:54PM +0800, Jianbo Liu wrote: > > >> On 12 May 2016 at 16:57, Santosh Shukla > > >> <santosh.shukla@caviumnetworks.com> wrote: > > >> > On Thu, May 12, 2016 at 01:54:13PM +0800, Jianbo Liu wrote: > > >> >> On 12 May 2016 at 13:06, Santosh Shukla > > >> >> <santosh.shukla@caviumnetworks.com> wrote: > > >> >> > On Thu, May 12, 2016 at 11:42:26AM +0800, Jianbo Liu wrote: > > >> >> >> On 12 May 2016 at 11:17, Santosh Shukla > > >> >> >> <santosh.shukla@caviumnetworks.com> wrote: > > >> >> >> > On Thu, May 12, 2016 at 10:01:05AM +0800, Jianbo Liu wrote: > > >> >> >> >> On 12 May 2016 at 02:25, Stephen Hemminger > > <stephen@networkplumber.org> wrote: > > >> >> >> >> > On Wed, 11 May 2016 22:32:16 +0530 Jerin Jacob > > >> >> >> >> > <jerin.jacob@caviumnetworks.com> 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 > > >> >> >> >> >> > <hemant.agrawal@nxp.com> wrote: > > >> >> >> >> >> > > > >> >> >> >> >> > > IGB_UIO not supported for arm64 arch in kernel so disable. > > >> >> >> >> >> > > > > >> >> >> >> >> > > Signed-off-by: Hemant Agrawal > > >> >> >> >> >> > > <hemant.agrawal@nxp.com> > > >> >> >> >> >> > > Reviewed-by: Santosh Shukla > > >> >> >> >> >> > > <santosh.shukla@caviumnetworks.com> > > >> >> >> >> >> > > > >> >> >> >> >> > 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
On 13 May 2016 at 15:47, Jerin Jacob <jerin.jacob@caviumnetworks.com> wrote: > 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 <santosh.shukla@caviumnetworks.com> >> > Cc: Stephen Hemminger <stephen@networkplumber.org>; Jerin Jacob >> > <jerin.jacob@caviumnetworks.com>; Hemant Agrawal >> > <hemant.agrawal@nxp.com>; dev@dpdk.org; Thomas Monjalon >> > <thomas.monjalon@6wind.com> >> > Subject: Re: [dpdk-dev] [PATCHv3 1/2] config/armv8a: disable igb_uio >> > >> > On 12 May 2016 at 18:31, Santosh Shukla >> > <santosh.shukla@caviumnetworks.com> wrote: >> > > On Thu, May 12, 2016 at 05:52:54PM +0800, Jianbo Liu wrote: >> > >> On 12 May 2016 at 16:57, Santosh Shukla >> > >> <santosh.shukla@caviumnetworks.com> wrote: >> > >> > On Thu, May 12, 2016 at 01:54:13PM +0800, Jianbo Liu wrote: >> > >> >> On 12 May 2016 at 13:06, Santosh Shukla >> > >> >> <santosh.shukla@caviumnetworks.com> wrote: >> > >> >> > On Thu, May 12, 2016 at 11:42:26AM +0800, Jianbo Liu wrote: >> > >> >> >> On 12 May 2016 at 11:17, Santosh Shukla >> > >> >> >> <santosh.shukla@caviumnetworks.com> wrote: >> > >> >> >> > On Thu, May 12, 2016 at 10:01:05AM +0800, Jianbo Liu wrote: >> > >> >> >> >> On 12 May 2016 at 02:25, Stephen Hemminger >> > <stephen@networkplumber.org> wrote: >> > >> >> >> >> > On Wed, 11 May 2016 22:32:16 +0530 Jerin Jacob >> > >> >> >> >> > <jerin.jacob@caviumnetworks.com> 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 >> > >> >> >> >> >> > <hemant.agrawal@nxp.com> wrote: >> > >> >> >> >> >> > >> > >> >> >> >> >> > > IGB_UIO not supported for arm64 arch in kernel so disable. >> > >> >> >> >> >> > > >> > >> >> >> >> >> > > Signed-off-by: Hemant Agrawal >> > >> >> >> >> >> > > <hemant.agrawal@nxp.com> >> > >> >> >> >> >> > > Reviewed-by: Santosh Shukla >> > >> >> >> >> >> > > <santosh.shukla@caviumnetworks.com> >> > >> >> >> >> >> > >> > >> >> >> >> >> > 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. The reason why I want to keep base config untouched is that users often update the DPDK more frequently than kernel, and some of them are still using older kernel. For new users, we can encourage them to use vfio-pci. We will remove igb_uio on ARM finally, and hope this transition period is not long.
2016-05-11 19:17, Hemant Agrawal: > IGB_UIO not supported for arm64 arch in kernel so disable. If I understand well, a patch is needed in the kernel to make igb_uio works? Please confirm. In that case, yes, the default configuration should be to disable igb_uio. Please note it's just a default to make it work in most common cases. And yes, the default should focus on recent kernels and future directions. > +CONFIG_RTE_EAL_IGB_UIO=n
On Fri, May 13, 2016 at 02:50:48PM +0200, Thomas Monjalon wrote: > 2016-05-11 19:17, Hemant Agrawal: > > IGB_UIO not supported for arm64 arch in kernel so disable. > > If I understand well, a patch is needed in the kernel to make > igb_uio works? Please confirm. > Yes. User need this [1] out-of-tree patch for igb_uio. [1] http://lists.infradead.org/pipermail/linux-arm-kernel/2015-July/359435.html > In that case, yes, the default configuration should be to disable > igb_uio. > Please note it's just a default to make it work in most common cases. > And yes, the default should focus on recent kernels and future directions. > > > +CONFIG_RTE_EAL_IGB_UIO=n >
2016-05-13 18:41, Santosh Shukla: > On Fri, May 13, 2016 at 02:50:48PM +0200, Thomas Monjalon wrote: > > 2016-05-11 19:17, Hemant Agrawal: > > > IGB_UIO not supported for arm64 arch in kernel so disable. > > > > If I understand well, a patch is needed in the kernel to make > > igb_uio works? Please confirm. > > > > Yes. User need this [1] out-of-tree patch for igb_uio. > > [1] http://lists.infradead.org/pipermail/linux-arm-kernel/2015-July/359435.html > > > In that case, yes, the default configuration should be to disable > > igb_uio. > > Please note it's just a default to make it work in most common cases. > > And yes, the default should focus on recent kernels and future directions. > > > > > +CONFIG_RTE_EAL_IGB_UIO=n Series applied, thanks
diff --git a/config/defconfig_arm64-armv8a-linuxapp-gcc b/config/defconfig_arm64-armv8a-linuxapp-gcc index 9abeca4..a786562 100644 --- a/config/defconfig_arm64-armv8a-linuxapp-gcc +++ b/config/defconfig_arm64-armv8a-linuxapp-gcc @@ -42,6 +42,8 @@ CONFIG_RTE_FORCE_INTRINSICS=y CONFIG_RTE_TOOLCHAIN="gcc" CONFIG_RTE_TOOLCHAIN_GCC=y +CONFIG_RTE_EAL_IGB_UIO=n + CONFIG_RTE_IXGBE_INC_VECTOR=n CONFIG_RTE_LIBRTE_IVSHMEM=n CONFIG_RTE_LIBRTE_FM10K_PMD=n