From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f47.google.com (mail-wm0-f47.google.com [74.125.82.47]) by dpdk.org (Postfix) with ESMTP id 732B9214A for ; Wed, 15 Mar 2017 14:01:29 +0100 (CET) Received: by mail-wm0-f47.google.com with SMTP id n11so22376358wma.0 for ; Wed, 15 Mar 2017 06:01:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:user-agent:in-reply-to :references:mime-version:content-transfer-encoding; bh=kmHzoFMkbQMZsAPA+mu4hHAwWznAtoUrnqBX58ByPVs=; b=xfn9FM1H4LIVQ3QtCbDJH+QK9h0oV30QthpG+Tl0z2HCuKtkdQHwa2anD5mgPc6wqU SWBVu4gV70lSVm2lA3CL5oi39yGe/0zvP9CgnYgUvZyErnE5aCHnrs+4NMV+1oCJ4lpy FzgAnhIohHH/ZyArkuf1V3lq2uABcv3eMnxtD2oJbcsDMjQCMQ5l7WmveLjetqWq4iDo CEVSpH3jAQ7Bbjg/CzxycUC3U4oE53n3+Wms7j0opRP8/b2i+hatm4OVUK/YdlMIzNhI U6SFbDArdNgqyGQMkclKzVLOX4hrOgpT4QKOxm1bL7HDwB56oLxIKFSmeSeZXEr9pT4U e8sQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:user-agent :in-reply-to:references:mime-version:content-transfer-encoding; bh=kmHzoFMkbQMZsAPA+mu4hHAwWznAtoUrnqBX58ByPVs=; b=KW13bioXQKjKlpFA2M9Z9O8gjTUUbeDgLN5DF1ATRwy0G022AVe/OgSf4I+KsNVqkK osbdjndhbjUDljb+fUYg2r8KOZyru2bRHR6FS7GpktzWckjt1oPbRJZ7ljNfYCL/uuhi /sxYnxP9dMYc87SiIKInIjZg9lhj6R59uQerrNOovAmL4XUpUwiyuEzNtLNE9l5+7TSe tnZHfhyoaAd3E8UzI+1vpPnvHI7gbbnAcbl98QDVx/4ZPNWGXyXNfw67W4cjFynSm4HJ m43/y+8zPw1+3h83/r4AG8atqMIoN9Lta7otaLizWrpKq/iFFeS64DiPNgYSvJy6x1GE tYyw== X-Gm-Message-State: AFeK/H2lYxRFl32aopbX6prnJl97XatZj4i2Zi/cSPoAne0CYWRxA0Ti7t6nsDrpDTpcSDZR X-Received: by 10.28.65.196 with SMTP id o187mr19595394wma.9.1489582889089; Wed, 15 Mar 2017 06:01:29 -0700 (PDT) Received: from xps13.localnet (184.203.134.77.rev.sfr.net. [77.134.203.184]) by smtp.gmail.com with ESMTPSA id g45sm2314124wrd.11.2017.03.15.06.01.28 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 15 Mar 2017 06:01:28 -0700 (PDT) From: Thomas Monjalon To: Allain Legacy Cc: dev@dpdk.org, Ferruh Yigit Date: Wed, 15 Mar 2017 14:01:27 +0100 Message-ID: <3246014.IauPTycO94@xps13> User-Agent: KMail/4.14.10 (Linux/4.5.4-1-ARCH; KDE/4.14.11; x86_64; ; ) In-Reply-To: References: <1489509189-166941-1-git-send-email-allain.legacy@windriver.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Subject: Re: [dpdk-dev] [PATCH] igb_uio: support devices with at least 1 bar defined X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Mar 2017 13:01:29 -0000 2017-03-14 16:59, Ferruh Yigit: > On 3/14/2017 4:33 PM, Allain Legacy wrote: > > From: Matt Peters > > > > Allow the BAR setup to succeed if a device has at least 1 BAR region > > defined. Previously, the device probe would only succeed if at least one > > memory BAR existed, but there are devices that have only port I/O BARs. > > > > For example, on Virtual Box a virtio device has only a single I/O BAR > > because by default MSI-X is not enabled. While in qemu/kvm the virtio > > device has MSI-X enabled and therefore has both an I/O and Memory BAR. > > > > The following are excerpts from "lspci -nnvvvv -s 00:09.0" on both types of > > systems. > > > > Virtual Box: > > > > Region 0: I/O ports at d260 [size=32] > > Capabilities: [80] #00 [0000] > > > > QEMU/KVM: > > > > Region 0: I/O ports at c060 [size=32] > > Region 1: Memory at febd1000 (32-bit, non-prefetchable) [size=4K] > > Expansion ROM at feb80000 [disabled] [size=256K] > > Capabilities: [40] MSI-X: Enable+ Count=3 Masked- > > Vector table: BAR=1 offset=00000000 > > PBA: BAR=1 offset=00000800 > > > > Signed-off-by: Matt Peters > > Signed-off-by: Allain Legacy > > Acked-by: Ferruh Yigit Applied, thanks