From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by dpdk.org (Postfix) with ESMTP id E70C15598 for ; Tue, 14 Mar 2017 17:59:09 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=intel.com; i=@intel.com; q=dns/txt; s=intel; t=1489510750; x=1521046750; h=subject:to:references:cc:from:message-id:date: mime-version:in-reply-to:content-transfer-encoding; bh=ANlpWAHVFZUWQJrymzNspv9ez/wt48T2aIeIIIoC1aU=; b=BrLLyG1M0ptuvdWoh1MepFF5t03ZDegMZWzK5DmexCmz67UOdjaQ4072 d4OelhNLufc06fMc953GhJMdeD5acg==; Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga101.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 14 Mar 2017 09:59:08 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.36,164,1486454400"; d="scan'208";a="834527548" Received: from fyigit-mobl1.ger.corp.intel.com (HELO [10.237.220.122]) ([10.237.220.122]) by FMSMGA003.fm.intel.com with ESMTP; 14 Mar 2017 09:59:07 -0700 To: Allain Legacy References: <1489509189-166941-1-git-send-email-allain.legacy@windriver.com> Cc: dev@dpdk.org From: Ferruh Yigit Message-ID: Date: Tue, 14 Mar 2017 16:59:07 +0000 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 In-Reply-To: <1489509189-166941-1-git-send-email-allain.legacy@windriver.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit 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: Tue, 14 Mar 2017 16:59:10 -0000 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