From: Andy Burns Subject: Re: PCI passthrough and 3.3.1/3.4.0 Date: Sun, 8 Mar 2009 12:01:21 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com Cc: Yuji Shimada List-Id: xen-devel@lists.xenproject.org 2009/3/1 Keir Fraser : > On 01/03/2009 11:16, "Andy Burns" wrote: > >> I'll try Yuji's BAR alignment patches on CentOS > > Yes, worth some experimentation I think. OK, I've built a centosplus 5.2 kernel for dom0 I have patched it to 1) re-enable my sky2 NICs 2) correctly size the saa7134 mmio area 3) include the first of Yuji's "page-aligned" patches with minor tweaks to quirks.c to allow clean application. http://xenbits.xensource.com/linux-2.6.18-xen.hg?rev/2b5cc22ab406 I've added "reassign_resources reassigndev=0000:08:00.0" to my grub stanza, I do see "PCI: resource reassign ON" in the console output, but no "PCI: Disable device and release resources" message and lspci still shows the device on a non-page aligned address # lspci -v -s 08:00.0 08:00.0 Multimedia controller: Philips Semiconductors SAA7130 Video Broadcast Decoder Subsystem: Compro Technology, Inc. Videomate DVB-T200 Flags: medium devsel, IRQ 16 Memory at febffc00 (32-bit, non-prefetchable) [disabled] [size=1K] Capabilities: [40] Power Management version 1 Any thoughts? Do I need to reassign the other devices behind the 00.1e.0 PCI bridge or the bridge itself? # lspci -v -s 00:1e.0 00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev 92) (prog-if 01 [Su) Flags: bus master, fast devsel, latency 0 Bus: primary=00, secondary=08, subordinate=08, sec-latency=32 I/O behind bridge: 0000e000-0000efff Memory behind bridge: feb00000-febfffff Capabilities: [50] #0d [0000] # lspci -t -[0000:00]-+-00.0 +-01.0-[0000:01]--+-00.0 | \-00.1 +-1a.0 +-1a.1 +-1a.2 +-1a.7 +-1b.0 +-1c.0-[0000:05-07]--+-00.0-[0000:07]----01.0 | \-00.1-[0000:06]-- +-1c.2-[0000:04]----00.0 +-1c.3-[0000:03]----00.0 +-1c.4-[0000:02]----00.0 +-1d.0 +-1d.1 +-1d.2 +-1d.7 +-1e.0-[0000:08]--+-00.0 | +-01.0 | \-03.0 +-1f.0 +-1f.2 \-1f.3