From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pa0-f50.google.com (mail-pa0-f50.google.com [209.85.220.50]) by dpdk.org (Postfix) with ESMTP id C905BB0AF for ; Wed, 28 May 2014 18:24:29 +0200 (CEST) Received: by mail-pa0-f50.google.com with SMTP id fb1so11269533pad.37 for ; Wed, 28 May 2014 09:24:40 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version:content-type:content-transfer-encoding; bh=pykNo1fQnIebLKKKi/dQXHiGC1cNV0oHUoUxzudNpEI=; b=jKgDTJ0bu01jJp5lPedzh/ZeH0v61QWpioVNER+4ZyXn4Cu/tyAHqRzW2I1oJCQhE/ tSHCHE6HtbDPijCi4VlcM/EIt1tNp2wjnOTN2b1FD8ZNFgrX3YPtL9mYuvdEs4VijNha OHVZS548WPTFM9yB5hfXmnQgG1e3CfAmoBT86BFgyH7tLUWIsQHYc7kIU2iTgLWPed6s vByRAH8nnM0KoziB3uoaDSvYSSNRW9VsyQY4eciF/Mq1CL6TSvt5CRVj33HdWEnJ2Ysx a5kxmtFs0MjFhvNXrDnJlcPep51dtfiTWWmPBqEL/UP5ZNLn8ksHmy/E4ckwJ3MtN397 93Dw== X-Gm-Message-State: ALoCoQntvdfIxyUn1VoO00PjHS71xDw4L5L3vagK/rlN28U3Gsk50g8ufSfWMH3ywHhJmXVooC13 X-Received: by 10.68.99.194 with SMTP id es2mr910970pbb.100.1401294280640; Wed, 28 May 2014 09:24:40 -0700 (PDT) Received: from nehalam.linuxnetplumber.net (static-50-53-83-51.bvtn.or.frontiernet.net. [50.53.83.51]) by mx.google.com with ESMTPSA id om6sm29151268pbc.43.2014.05.28.09.24.39 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Wed, 28 May 2014 09:24:40 -0700 (PDT) Date: Wed, 28 May 2014 09:24:37 -0700 From: Stephen Hemminger To: Thomas Monjalon Message-ID: <20140528092437.4b617eb7@nehalam.linuxnetplumber.net> In-Reply-To: <3818234.KCSikhCFJl@xps13> References: <1444994.s4JW68cLD9@xps13> <537E91F2.9060304@fixup.fi> <3818234.KCSikhCFJl@xps13> X-Mailer: Claws Mail 3.9.3 (GTK+ 2.24.23; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: dev@dpdk.org Subject: Re: [dpdk-dev] [PATCH v2 13/16] Removed PCI ID table from 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: Wed, 28 May 2014 16:24:30 -0000 On Wed, 28 May 2014 15:45:02 +0200 Thomas Monjalon wrote: > 2014-05-23 00:10, Antti Kantee: > > On 22/05/14 13:13, Thomas Monjalon wrote: > > > 2014-05-19 16:51, Anatoly Burakov: > > >> Note that since igb_uio no longer has a PCI ID list, it can now be > > >> bound to any device, not just those explicitly supported by DPDK. In > > >> other words, it now behaves similar to PCI stub, VFIO and other generic > > >> PCI drivers. > > > > > > I wonder if we could replace igb_uio by uio_pci_generic? > > > > I've been running plenty of the NetBSD kernel PCI drivers in Linux > > userspace on top of uio_pci_generic, including NICs supported by DPDK. > > The only real annoyance is that mainline uio_pci_generic doesn't support > > MSI. A pseudo-annoyance is that uio_pci_generic turns interrupts off > > from the PCI config space each time after you read an interrupt, so they > > have to be reenabled after each one (and NetBSD kernel drivers tend to > > like using interrupts for everything). > > > > The annoyance of vfio is iommus. Yes, I want to make the tradeoff of > > possibly scribbling memory vs. not being able to do anything on the > > wrong system. > > > > I'd like to see a generic Linux kernel PCI driver blob without > > annoyances, though not yet annoyed enough to do anything myself ;) > > So maybe it's possible to improve uio_pci_generic in order to replace igb_uio. > If someone wants to work on it, it's possible to stage uio_pci_generic in > dpdk.org in order to make it ready for kernel.org. > I am doing a new version of uio_pci for upstream kernel and will submit when ready. It will be for 3.10 or later kernel, will not bother backporting past that.