From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga04.intel.com ([192.55.52.120]:42480 "EHLO mga04.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752117AbbLVRgx (ORCPT ); Tue, 22 Dec 2015 12:36:53 -0500 Date: Tue, 22 Dec 2015 09:33:33 -0800 From: "Sean O. Stalley" To: Martin Mares Cc: David Daney , Bjorn Helgaas , linux-pci@vger.kernel.org, David Daney Subject: Re: [PATCH v3] Add lspci support for Enhanced Allocation Capability. Message-ID: <20151222173333.GA3301@sean.stalley.intel.com> References: <1450217759-22063-1-git-send-email-ddaney.cavm@gmail.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="IJpNTDwzlM2Ie8A6" In-Reply-To: Sender: linux-pci-owner@vger.kernel.org List-ID: --IJpNTDwzlM2Ie8A6 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Tue, Dec 22, 2015 at 04:26:02PM +0100, Martin Mares wrote: > > I will merge this soon. > > Could you please provide a hex dump of a config space with this > capability? (See the test cases in pciutils/tests/.) Attached is a hex dump from a QEMU model using EA entries in leiu of BARs. I also attached the output of lspci, so you can see how the Region fields are displayed. Note that EA memory regions get tagged as [virtual]. I attached 2 outputs to show the truncation case I was talking about [1]. lt_size is the output when (x < 1024) is used in show_size(), whereas mod_size is the output when (x % 1024) is used. Thanks for taking a look, Sean [1] diff mod_size lt_size 8c8 < Region 0: [virtual] Memory at 80000000 (32-bit, non-prefetchable) [size=131076] --- > Region 0: [virtual] Memory at 80000000 (32-bit, non-prefetchable) [size=128K] --IJpNTDwzlM2Ie8A6 Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename=mod_size 00:04.0 Ethernet controller: Intel Corporation 82540EM Gigabit Ethernet Controller (rev 03) Subsystem: Red Hat, Inc QEMU Virtual Machine Physical Slot: 4 Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR+ FastB2B- DisINTx- Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- SERR- TAbort- SERR-