From owner-cvs-src@FreeBSD.ORG Mon Apr 7 10:03:11 2003 Return-Path: Delivered-To: cvs-src@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5153637B407; Mon, 7 Apr 2003 10:03:11 -0700 (PDT) Received: from angelica.unixdaemons.com (angelica.unixdaemons.com [209.148.64.135]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2668E43F75; Mon, 7 Apr 2003 10:03:08 -0700 (PDT) (envelope-from hiten@angelica.unixdaemons.com) Received: from angelica.unixdaemons.com (hiten@localhost.unixdaemons.com [127.0.0.1])h37H36tK002768; Mon, 7 Apr 2003 13:03:06 -0400 (EDT) Received: (from hiten@localhost) by angelica.unixdaemons.com (8.12.9/8.12.1/Submit) id h37H368s002767; Mon, 7 Apr 2003 13:03:06 -0400 (EDT) (envelope-from hiten) Date: Mon, 7 Apr 2003 13:03:06 -0400 From: Hiten Pandya To: Jake Burkholder Message-ID: <20030407170306.GA159@unixdaemons.com> References: <200304071608.h37G8WvI004534@repoman.freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200304071608.h37G8WvI004534@repoman.freebsd.org> User-Agent: Mutt/1.4.1i X-Operating-System: FreeBSD i386 X-Public-Key: http://www.pittgoth.com/~hiten/pubkey.asc X-URL: http://www.unixdaemons.com/~hiten X-PGP: http://pgp.mit.edu:11371/pks/lookup?search=Hiten+Pandya&op=index cc: cvs-src@freebsd.org cc: src-committers@freebsd.org cc: cvs-all@freebsd.org Subject: Re: cvs commit: src/sys/i386/i386 busdma_machdep.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Apr 2003 17:03:12 -0000 Jake Burkholder (Mon, Apr 07, 2003 at 09:08:32AM -0700) wrote: > jake 2003/04/07 09:08:32 PDT > > FreeBSD src repository > > Modified files: > sys/i386/i386 busdma_machdep.c > Log: > Add support for bounce buffers to _bus_dmamap_load_buffer, which is the > backend for bus_dmamap_load_mbuf and bus_dmamap_load_uio. > > - Increaes MAX_BPAGES to 512. Less than this causes fxp to quickly runs out > of bounce pages. > - Add an argument to reserve_bounce_pages indicating wether this operation > should fail or be queued for later processing if we run out of memory. > The EINPROGRESS return value is not handled properly by consumers of > bus_dmamap_load_mbuf. > - If bounce buffers are required allocate minimum 1 bounce page at map > creation time. If maxsize was small previously this could get truncated > to 0 and the drivers would quickly run out of bounce pages. > - Fix a bug handling the return value of alloc_bounce_pages at map creation > time. It returns the number of pages allocated, not 0 on success. > - Use bus_addr_t for physical addresses to avoid truncation. > - Assert that the map is non-null and not the no bounce map in > add_bounce_pages. Thank you very much! -- Hiten