From: "Jan Beulich" Subject: Re: dom0 boot failure: dma_reserve in reserve_bootmem_generic() Date: Tue, 29 Jun 2010 07:57:48 +0100 Message-ID: <4C29B58C020000780000885B@vpn.id2.novell.com> References: <20100625184046.73890d00@mantra.us.oracle.com> <4C2885A502000078000085D7@vpn.id2.novell.com> <20100628201954.29df5aa5@mantra.us.oracle.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <20100628201954.29df5aa5@mantra.us.oracle.com> 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: Mukesh Rathor Cc: "Xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org >>> On 29.06.10 at 05:19, Mukesh Rathor wrote: > On Mon, 28 Jun 2010 10:21:09 +0100 > "Jan Beulich" wrote: >> For your issue, I rather wonder why dma_reserve reaches this high >> a value only with the particular dom0_mem=3D you're stating. Did >> you check where those reservations come from, and how they >> differfrom when using smaller or larger dom0_mem=3D values? >=20 > Yeah, I checked two values which boot fine: > dom0_mem =3D 500M > reserve_bootmem_generic(phys =3D 0, len =3D e91000) > if (phys+len <=3D MAX_DMA_PFN*PAGE_SIZE) > dma_reserve +=3D len / PAGE_SIZE; > =20 > dom0_mem =3D 930M > reserve_bootmem_generic(phys =3D 0, len =3D 1040000) >=20 > with dom0_mem =3D 830M, failing to boot: > reserve_bootmem_generic(phys =3D 0, len =3D fdb000) So it's the kernel space reservation that's hitting you (and it may well be that this also triggered us to #ifdef out that code - it's just been too long ago to recall). Clearly the size of the initrd shouldn't get accounted to dma_reserve, nor should the p2m table's initial space. Accounting the kernel image (or at least the permanent portions thereof) would seem correct otoh. > So, now that I've stumbled on this, I'm confused why the PAGE_OFFSET+ > VAs, ie, gpfns 0 - 16M, are not mapped to MFNs below 16M? Would this not > be needed for ISA DMA? There's not support for ISA DMA in Xen (CONFIG_ISA depends on !X86_XEN and all DMA channels get absorbed close to the end of setup_arch()). Jan