From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.cs.hut.fi (mail.cs.hut.fi [130.233.192.7]) by dpdk.org (Postfix) with ESMTP id 89B605934 for ; Fri, 23 May 2014 02:10:17 +0200 (CEST) Received: from [127.0.0.1] (hutcs.cs.hut.fi [130.233.192.10]) by mail.cs.hut.fi (Postfix) with ESMTPS id 418DF3088C0 for ; Fri, 23 May 2014 03:10:27 +0300 (EEST) Message-ID: <537E91F2.9060304@fixup.fi> Date: Fri, 23 May 2014 00:10:26 +0000 From: Antti Kantee MIME-Version: 1.0 To: dev@dpdk.org References: <1400514709-24087-14-git-send-email-anatoly.burakov@intel.com> <1444994.s4JW68cLD9@xps13> In-Reply-To: <1444994.s4JW68cLD9@xps13> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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: Fri, 23 May 2014 00:10:17 -0000 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 ;)