From owner-cvs-all@FreeBSD.ORG Wed Mar 9 05:11:14 2005 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E07D916A4CE; Wed, 9 Mar 2005 05:11:14 +0000 (GMT) Received: from pooker.samsco.org (pooker.samsco.org [168.103.85.57]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6FCFA43D4C; Wed, 9 Mar 2005 05:11:14 +0000 (GMT) (envelope-from scottl@samsco.org) Received: from [192.168.254.11] (junior-wifi.samsco.home [192.168.254.11]) (authenticated bits=0) by pooker.samsco.org (8.13.1/8.13.1) with ESMTP id j295CNh6077577; Tue, 8 Mar 2005 22:12:23 -0700 (MST) (envelope-from scottl@samsco.org) Message-ID: <422E84E6.1030508@samsco.org> Date: Tue, 08 Mar 2005 22:08:54 -0700 From: Scott Long User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.5) Gecko/20050218 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Mike Silbersack References: <200503082325.j28NPkY5032559@repoman.freebsd.org> <20050308194137.J811@odysseus.silby.com> In-Reply-To: <20050308194137.J811@odysseus.silby.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.8 required=3.8 tests=ALL_TRUSTED autolearn=failed version=3.0.2 X-Spam-Checker-Version: SpamAssassin 3.0.2 (2004-11-16) on pooker.samsco.org cc: cvs-src@FreeBSD.org cc: src-committers@FreeBSD.org cc: Scott Long cc: cvs-all@FreeBSD.org Subject: Re: cvs commit: src/sys/pci if_dc.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Mar 2005 05:11:15 -0000 Mike Silbersack wrote: > > 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 Yes, the hw.busdma tree has quite a bit of stats regarding bounce page use. Scott