From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wi0-f173.google.com (mail-wi0-f173.google.com [209.85.212.173]) by dpdk.org (Postfix) with ESMTP id 90F68AFD6 for ; Wed, 28 May 2014 15:45:00 +0200 (CEST) Received: by mail-wi0-f173.google.com with SMTP id bs8so3764665wib.6 for ; Wed, 28 May 2014 06:45:08 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:organization :user-agent:in-reply-to:references:mime-version :content-transfer-encoding:content-type; bh=e1vrgt9bLJrWGZvHy5PIGevOegsCLVJZNkdI/RQnnKs=; b=TYCeR4zUGUskGHzuCdW6MZUqtBix7h6xmDOp+Ga8pkQuYR+W5+QQmCYyVJ3GlTwAnW V7HWij4eixZD149owLfBfgfAjP0n+prN8K7QMyHQIrhga7aFRKplg9kEy/hWJButx3em 130kSE64hyn2S4EAVMjAzHfLlH3AZhogW/UNxTFaOq0n3CZnNDDQatKN6vXsoFqdILWu cVtrzHfQXJt2SLZOTZnsU9whDGaRsWQ+otLbfRDpsvDrtadgkgUFsemqFVRmuG7E1fk5 Ms8wpo/5yRrExT3wlW3Rya/Kf9pJ9THC7b7zo6BmsSeRMfrb2BtkAZSzcSxGzZ74oV2Z GvKA== X-Gm-Message-State: ALoCoQlemSEs0hZVeYMnWp+PTlyCqqd8aIz19mGIaqIQP1sWk3CRE2ftTMc2oO1RCjgkFikBEMnJ X-Received: by 10.194.186.178 with SMTP id fl18mr19604726wjc.83.1401284707105; Wed, 28 May 2014 06:45:07 -0700 (PDT) Received: from xps13.localnet (6wind.net2.nerim.net. [213.41.180.237]) by mx.google.com with ESMTPSA id kp5sm43382130wjb.30.2014.05.28.06.45.05 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 28 May 2014 06:45:05 -0700 (PDT) From: Thomas Monjalon To: dev@dpdk.org Date: Wed, 28 May 2014 15:45:02 +0200 Message-ID: <3818234.KCSikhCFJl@xps13> Organization: 6WIND User-Agent: KMail/4.13 (Linux/3.14.4-1-ARCH; KDE/4.13.0; x86_64; ; ) In-Reply-To: <537E91F2.9060304@fixup.fi> References: <1444994.s4JW68cLD9@xps13> <537E91F2.9060304@fixup.fi> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" 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 13:45:01 -0000 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. -- Thomas