From owner-cvs-src@FreeBSD.ORG Thu Oct 14 02:14:04 2004 Return-Path: Delivered-To: cvs-src@freebsd.org Received: from green.homeunix.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id A8E4E16A4CE; Thu, 14 Oct 2004 02:14:03 +0000 (GMT) Received: from green.homeunix.org (green@localhost [127.0.0.1]) by green.homeunix.org (8.13.1/8.13.1) with ESMTP id i9E2E3D5009172; Wed, 13 Oct 2004 22:14:03 -0400 (EDT) (envelope-from green@green.homeunix.org) Received: (from green@localhost) by green.homeunix.org (8.13.1/8.13.1/Submit) id i9E2E2dq009171; Wed, 13 Oct 2004 22:14:02 -0400 (EDT) (envelope-from green) Date: Wed, 13 Oct 2004 22:14:02 -0400 From: Brian Fundakowski Feldman To: Pyun YongHyeon Message-ID: <20041014021401.GE986@green.homeunix.org> References: <200410130545.i9D5jHrv075327@repoman.freebsd.org> <20041013140803.GB986@green.homeunix.org> <20041014020333.GA11436@kt-is.co.kr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20041014020333.GA11436@kt-is.co.kr> User-Agent: Mutt/1.5.6i cc: cvs-src@FreeBSD.org cc: src-committers@FreeBSD.org cc: cvs-all@FreeBSD.org Subject: Re: cvs commit: src/sys/dev/sound/isa ad1816.c ess.c mss.c sb16.c sb8.c src/sys/dev/sound/pci au88x0.c aureal.c csapcm.c ds1.c emu10k1.c es137x.c fm801.c ich.c maestro3.c solo.c t4dwave.c via8233.c via82c686.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: Thu, 14 Oct 2004 02:14:04 -0000 On Thu, Oct 14, 2004 at 11:03:33AM +0900, Pyun YongHyeon wrote: > On Wed, Oct 13, 2004 at 10:08:04AM -0400, Brian Fundakowski Feldman wrote: > > > > Log: > > > Audio drivers failed to detect failure condition and attempted to > > > assign DMA address to the wrong address. It can cause system lockup > > > or other mysterious errors. Since most sound cards requires low DMA > > > address(BUS_SPACE_MAXADDR_24BIT) sndbuf_alloc() would fail when the > > > audio driver is loaded after long running of operations. > > > > > > Approved by: jake (mentor) > > > Reviewed by: truckman, matk > > > > Good job fixing all of these; do you notice that they succeed "more > > often" with the new contigmalloc(9)? (It is the backend of the busdma > > physical memory allocations.) > > > > Since I have very small set of sound hardware I don't know > whether it helped or not. But I saw a mail which sounds like > a DMA buffer allocation issue. > http://lists.freebsd.org/pipermail/freebsd-multimedia/2004-September/001382.html > > There is an another patch for sndbuf_alloc(). I'm waiting for > Scott's comments. In this case, adjusting M3_MAXADDR should be tried. Since the allocation now tries to start at the high end, we're running into seeing all these conditions where a DMA address which the hardware cannot actually handle being used. It should be easy enough to guess and check, by halving the lowaddr (M3_MAXADDR) and seeing whether it works, and repeating. -- Brian Fundakowski Feldman \'[ FreeBSD ]''''''''''\ <> green@FreeBSD.org \ The Power to Serve! \ Opinions expressed are my own. \,,,,,,,,,,,,,,,,,,,,,,\