From: Goncalo Gomes Subject: Re: crash in is_xen_swiotlb_buffer Date: Thu, 3 May 2012 11:20:34 +0100 Message-ID: <20120503102034.GA11043@eire.uk.xensource.com> References: <20120313173504.GB13033@phenom.dumpdata.com> <20120313180422.GA28716@eire.uk.xensource.com> <20120313190917.GA31144@eire.uk.xensource.com> <20120313192541.GA4969@phenom.dumpdata.com> <20120313223437.GA5180@eire.uk.xensource.com> <20120313234503.GA18924@phenom.dumpdata.com> <20120316191127.GA6668@eire.uk.xensource.com> <20120316195907.GA6228@phenom.dumpdata.com> <20120318155034.GA24315@eire.uk.xensource.com> <20120502195035.GA31755@phenom.dumpdata.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <20120502195035.GA31755@phenom.dumpdata.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Konrad Rzeszutek Wilk Cc: Konrad Rzeszutek Wilk , "xen-devel@lists.xensource.com" , "dave.mccracken@oracle.com" List-Id: xen-devel@lists.xenproject.org On Wed, 02 May 2012, Konrad Rzeszutek Wilk wrote: ...snip... > > [ 0.000000] Hardware name: PowerEdge R310 > > [ 0.000000] Modules linked in: > > [ 0.000000] Pid: 0, comm: swapper Not tainted 3.2.9 #9 > > [ 0.000000] Call Trace: > > [ 0.000000] [] ? warn_slowpath_common+0x6a/0x7b > > [ 0.000000] [] ? xen_mc_issue+0x34/0x62 > > [ 0.000000] [] ? warn_slowpath_null+0xd/0x10 > > [ 0.000000] [] ? xen_mc_issue+0x34/0x62 > > [ 0.000000] [] ? xen_set_pmd_hyper+0x3c/0x42 > > [ 0.000000] [] ? set_pmd_pfn+0xde/0xf9 > > [ 0.000000] [] ? init_alloc_remap+0x1b3/0x216 > > [ 0.000000] [] ? setup_node_data+0x4c/0x22f > > [ 0.000000] [] ? T.744+0x290/0x2c2 > > [ 0.000000] [] ? T.743+0x77/0x1a1 > > [ 0.000000] [] ? default_get_apic_id+0x14/0x33 > > [ 0.000000] [] ? initmem_init+0x5/0xb7 > > [ 0.000000] [] ? setup_arch+0x5bf/0x694 > > [ 0.000000] [] ? __spin_time_accum+0x26/0x36 > > [ 0.000000] [] ? start_kernel+0x81/0x34d > > [ 0.000000] [] ? xen_start_kernel+0x554/0x55b > > [ 0.000000] ---[ end trace 4eaa2a86a8e2da22 ]--- > > So I've been able to reproduce this and it is due to CONFIG_NUMA=y > set on 32-bit builds. > > From a brief look, it looks as this is happening: > > /* perform actual remap */ > for (pfn = 0; pfn < size >> PAGE_SHIFT; pfn += PTRS_PER_PTE) > set_pmd_pfn((unsigned long)remap_va + (pfn << PAGE_SHIFT), > (node_pa >> PAGE_SHIFT) + pfn, > PAGE_KERNEL_LARGE); > > The PAGE_KERNEL_LARGE means that the PSE bit (so the 2MB) is set > which is a no-no. What is weird is that acpi_numa is disabled when booting > under Xen, but somehow this (which in my case was the 'fake_numa' code) > still gets turned on. Even doing 'numa=off' on the command line causes > this to appear. Thanks for the investigation, I'll turn off NUMA in my config. Goncalo