From owner-cvs-src@FreeBSD.ORG Wed Mar 9 04:31:04 2005 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 DFFED16A4D0 for ; Wed, 9 Mar 2005 04:31:04 +0000 (GMT) Received: from relay02.pair.com (relay02.pair.com [209.68.5.16]) by mx1.FreeBSD.org (Postfix) with SMTP id 17D5C43D5F for ; Wed, 9 Mar 2005 04:31:04 +0000 (GMT) (envelope-from silby@silby.com) Received: (qmail 30733 invoked from network); 9 Mar 2005 01:44:21 -0000 Received: from unknown (HELO localhost) (unknown) by unknown with SMTP; 9 Mar 2005 01:44:21 -0000 X-pair-Authenticated: 209.68.2.70 Date: Tue, 8 Mar 2005 19:44:20 -0600 (CST) From: Mike Silbersack To: Scott Long In-Reply-To: <200503082325.j28NPkY5032559@repoman.freebsd.org> Message-ID: <20050308194137.J811@odysseus.silby.com> References: <200503082325.j28NPkY5032559@repoman.freebsd.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed cc: cvs-src@FreeBSD.org cc: src-committers@FreeBSD.org cc: cvs-all@FreeBSD.org Subject: Re: cvs commit: src/sys/pci if_dc.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: Wed, 09 Mar 2005 04:31:05 -0000 On Tue, 8 Mar 2005, Scott Long wrote: > The DC driver asks for an alignment of PAGE_SIZE for data buffers, but also > asks that each buffer be (2048 * 256) bytes long. I suspect that alignment > isn't a real requirement since busdma only recently started honoring it. The > size is also bogus. Fix both of these and stop busdma from trying to > exhaust the system memory pool with bounce pages. The requirement as it was originally stated is that they may need to be longword aligned for certain cards. We handle that in dc_encap already, but I hadn't considered the possible problem with using bounce pages. I'll take a look and see if we can determine the alignment requirement before we call bus_dma_tag_create. Are there any busdma statistics sysctls that would let us notice that it's being asked to do things like this on a running system? If not, could you add some? Mike "Silby" Silbersack