From owner-freebsd-current@FreeBSD.ORG Mon Feb 28 07:43:33 2005 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 510BC16A4CE for ; Mon, 28 Feb 2005 07:43:33 +0000 (GMT) Received: from mail26.syd.optusnet.com.au (mail26.syd.optusnet.com.au [211.29.133.167]) by mx1.FreeBSD.org (Postfix) with ESMTP id AB3AE43D5C for ; Mon, 28 Feb 2005 07:43:32 +0000 (GMT) (envelope-from PeterJeremy@optushome.com.au) Received: from cirb503493.alcatel.com.au (c211-30-75-229.belrs2.nsw.optusnet.com.au [211.30.75.229]) j1S7hV5b024497 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO) for ; Mon, 28 Feb 2005 18:43:31 +1100 Received: from cirb503493.alcatel.com.au (localhost.alcatel.com.au [127.0.0.1])j1S7hU7l098087 for ; Mon, 28 Feb 2005 18:43:30 +1100 (EST) (envelope-from pjeremy@cirb503493.alcatel.com.au) Received: (from pjeremy@localhost) by cirb503493.alcatel.com.au (8.12.10/8.12.9/Submit) id j1S7hUsb098086 for freebsd-current@freebsd.org; Mon, 28 Feb 2005 18:43:30 +1100 (EST) (envelope-from pjeremy) Date: Mon, 28 Feb 2005 18:43:30 +1100 From: Peter Jeremy To: freebsd-current@freebsd.org Message-ID: <20050228074329.GE28983@cirb503493.alcatel.com.au> References: <20050109011132.GJ39552@cirb503493.alcatel.com.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050109011132.GJ39552@cirb503493.alcatel.com.au> User-Agent: Mutt/1.4.2i Subject: Re: bus_dmamem_alloc() can't handle large NOWAIT requests X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Feb 2005 07:43:33 -0000 On Sun, 2005-Jan-09 12:11:32 +1100, Peter Jeremy wrote: >According to bus_dma(9), bus_dmamem_alloc() can be invoked with a >flag BUS_DMA_NOWAIT to indicate that sleep()ing is not allowed. > >At least on the i386, if the requested size exceeds 1 page (or some >other cases), the requested memory will be allocated via contigmalloc(). > >bus_dmamem_alloc() maps BUS_DMA_NOWAIT to M_NOWAIT but contigmalloc() >does not support M_NOWAIT and will tsleep() under some conditions. Since I couldn't find any reference to this problem in gnats, I've raised kern/78179 so it doesn't get lost. -- Peter Jeremy