From owner-freebsd-current@FreeBSD.ORG Fri Aug 13 00:02:36 2004 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 8EBF416A4CE; Fri, 13 Aug 2004 00:02:36 +0000 (GMT) Received: from basalt.tackymt.homeip.net (YahooBB219181148048.bbtec.net [219.181.148.48]) by mx1.FreeBSD.org (Postfix) with ESMTP id B964643D46; Fri, 13 Aug 2004 00:02:35 +0000 (GMT) (envelope-from taku@tackymt.homeip.net) Received: from localhost (localhost [127.0.0.1]) by basalt.tackymt.homeip.net (Postfix) with ESMTP id 89B981075F; Fri, 13 Aug 2004 09:02:34 +0900 (JST) Received: from maestro.tackymt.homeip.net (maestro.tackymt.homeip.net [IPv6:2001:3e0:577:0:240:26ff:fe49:1c9d]) by basalt.tackymt.homeip.net (Postfix) with ESMTP; Fri, 13 Aug 2004 09:02:33 +0900 (JST) Date: Fri, 13 Aug 2004 09:02:31 +0900 From: Taku YAMAMOTO To: Don Lewis Message-Id: <20040813090231.3c6acb13.taku@tackymt.homeip.net> In-Reply-To: <200408122253.i7CMrseZ021586@gw.catspoiler.org> References: <20040812221348.GA1337@gargantuan.com> <200408122253.i7CMrseZ021586@gw.catspoiler.org> X-Mailer: Sylpheed version 0.9.12-gtk2-20040622 (GTK+ 2.2.4; i386-portbld-freebsd5.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit cc: freebsd-current@gargantuan.com cc: freebsd-current@FreeBSD.org Subject: Re: pcm_chn_create failed with 2004-08-12 kernel 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: Fri, 13 Aug 2004 00:02:36 -0000 On Thu, 12 Aug 2004 15:53:54 -0700 (PDT) Don Lewis wrote: > On 12 Aug, Michael W. Oliver wrote: > > Ok, this world was cvsup'd on 2004.08.12 at 09:59:03 EDT. I removed the > > 'sound' and 'snd_maestro' device lines from my kernel config and decided > > to load them as modules (after I got the same output shown below with > > sound and snd_maestro compiled into the kernel). When I kldload > > 'sound', I get no output. After that, when I kldload 'snd_maestro', I > > get the following output: > > > > > > pcm0: port 0x1400-0x14ff irq 10 at device 8.0 on pci0 > > pcm0: > > pcm0: [GIANT-LOCKED] > > pcm0: offset 0xfffa1000 exceeds limit. pcm0: chn_init(pcm0:play:0) failed: err = 19 > > pcm0: pcm_chn_create(aggch, 1, 0xc223e700) failed > > pcm0: offset 0xfffa1000 exceeds limit. pcm0: chn_init(pcm0:play:0) failed: err = 19 > > pcm0: pcm_chn_create(aggch, 1, 0xc223e700) failed > > pcm0: offset 0xfffa1000 exceeds limit. pcm0: chn_init(pcm0:play:0) failed: err = 19 > > pcm0: pcm_chn_create(aggch, 1, 0xc223e700) failed > > pcm0: offset 0xfffa1000 exceeds limit. pcm0: chn_init(pcm0:play:0) failed: err = 19 > > pcm0: pcm_chn_create(aggch, 1, 0xc223e700) failed > > It sure looks to me like physaddr is getting set to zero in > aggch_init(). It also looks like the device_printf() format string is > missing a newline. > > Try adding a device_printf() to aggch_init() to print out both physaddr > and ess->baseaddr so that we can figure out where the calculation > ch->offset = physaddr - ess->baseaddr; > is going wrong. The source file is /usr/src/sys/dev/sound/pci/maestro.c This is caused by physaddr which is smaller than ess->baseaddr. It will often occur when memory is fragmented, I think. Michael, would you try the newer driver? http://www.tackymt.homeip.net/~taku/maestro-latest/ -- -|-__ YAMAMOTO, Taku | __ < Post Scriptum to the people who know me as taku@cent.saitama-u.ac.jp: My email address has been changed since April, because I've left the university.