From mboxrd@z Thu Jan 1 00:00:00 1970 From: Chris Wright Subject: Re: dma_alloc_coherent issue with tg3 in x86_64 build Date: Thu, 28 Jul 2005 14:07:32 -0700 Message-ID: <20050728210732.GD19052@shell0.pdx.osdl.net> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline 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: Ian Pratt Cc: Chris Wright , xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org * Ian Pratt (m+Ian.Pratt@cl.cam.ac.uk) wrote: > > > During boot of dom0, I get the following. Box is remote, so > > I'm now waiting for proxy power button pusher ;-) tg3 init > > fails doing dma_alloc_coherent (I assume this is from > > tg3_init_one -> tg3_test_dma -> pci_alloc_consistent -> > > dma_alloc_coherent). Looks like an issue with the amount of > > memory in dom0. Is this known? > > Is this with a debug=y build of Xen? I can see how that might provoke > the situation more than other builds. Yes, it is. > Do you know how large a contiguous chunk the tg3 needs? I believe that one was just 2 pages. > I guess we could hold onto a few large chunks before making the dom0 > memory allocation. > > Alternatively, if we get a failure, we should round up to the next power > of two and then balloon out that much memory. Repeat until success... I guess that'd be quick that early in boot. thanks, -chris