From: "Jan Beulich" Subject: Re: xen dependant on pcpu 0 ? Date: Wed, 13 Oct 2010 15:26:49 +0100 Message-ID: <4CB5DDC9020000780001CE31@vpn.id2.novell.com> References: <1452957126.20101012182813@eikelenboom.it> <20101012164433.GB21567@dumpdata.com> <93878465.20101013153641@eikelenboom.it> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <93878465.20101013153641@eikelenboom.it> Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Sander Eikelenboom Cc: Jeremy Fitzhardinge , "xen-devel@lists.xensource.com" , Konrad Rzeszutek Wilk , yunhong.jiang@intel.com, Ian , Keir Fraser List-Id: xen-devel@lists.xenproject.org >>> On 13.10.10 at 15:36, Sander Eikelenboom wrote: > it's this one: > WARN_ON(msi->table_base !=3D read_pci_mem_bar(bus, slot, func, bir)); Yeah, read_pci_mem_bar() uses an inverted mask in two places. Would you remove the ~ from the two uses of PCI_BASE_ADDRESS_MEM_MASK in that function and try again? (Yunhong, you had tested the patch that introduced this, and this warning would basically trigger unconditionally as it stands. Didn't you notice that in your logs?) The main thing however, if I correctly remember the context of this thread, is that this code was only recently introduced and doesn't exist in the 4.0 tree, so your original problem is unlikely caused by it. > I have added some printk's .. and read_pci_mem_bar seems to return a = bogus=20 > value .. the pba_addr is used later in the function, but i can't oversee = if=20 > and when this could have implications. > This also occurs when disabling the pci_resource_align on the kernel = line. > In the same function it seems to trigger > if ( d ) > { > /* XXX How to deal with existing mappings? */ > } >=20 > Which seems to be a bit odd for a freshly booted system with no domU=20 > restarts ? No, the comment refers to potentially existing mappings (which would need to be actively searched for). It doesn't mean there have to be any. Jan