From owner-freebsd-current@FreeBSD.ORG Tue Apr 15 22:00:53 2003 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 C58DC37B401; Tue, 15 Apr 2003 22:00:53 -0700 (PDT) Received: from titan.kgt.co.jp (titan.kgt.co.jp [210.141.246.66]) by mx1.FreeBSD.org (Postfix) with ESMTP id B9C0543FA3; Tue, 15 Apr 2003 22:00:52 -0700 (PDT) (envelope-from haro@kgt.co.jp) Received: from navgw.tt.kgt.co.jp (navgw [210.141.246.71]) by titan.kgt.co.jp (Postfix) with ESMTP id 1105B49F0D; Wed, 16 Apr 2003 14:00:52 +0900 (JST) Received: from tt.kgt.co.jp (pegasus [192.168.10.1]) by navgw.tt.kgt.co.jp (Postfix) with ESMTP id D8EA547711; Wed, 16 Apr 2003 14:00:51 +0900 (JST) Received: from localhost [192.168.13.83] by tt.kgt.co.jp with ESMTP (SMTPD32-7.12) id A383310136; Wed, 16 Apr 2003 14:00:51 +0900 Date: Wed, 16 Apr 2003 14:00:50 +0900 (JST) Message-Id: <20030416.140050.74755518.haro@kgt.co.jp> To: simokawa@sat.t.u-tokyo.ac.jp From: Munehiro Matsuda In-Reply-To: References: <20030416.130459.74757314.haro@kgt.co.jp> X-Mailer: Mew version 2.2 on Emacs 20.7 / Mule 4.0 (HANANOEN) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit cc: simokawa@FreeBSD.org cc: current@FreeBSD.org Subject: Re: pcm0: unable to initialize the card (YMF724) 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: Wed, 16 Apr 2003 05:00:54 -0000 Hi Simokawa-san, Yes, it's fixed with your patch. Thank you very much for your quick response. Regards, Haro From: Hidetoshi Shimokawa Date: Wed, 16 Apr 2003 13:35:14 +0900 ::Could you try the following patch? :: ::/\ Hidetoshi Shimokawa ::\/ simokawa@sat.t.u-tokyo.ac.jp ::PGP public key: http://www.sat.t.u-tokyo.ac.jp/~simokawa/pgp.html :: ::Index: ds1.c ::=================================================================== ::RCS file: /home/ncvs/src/sys/dev/sound/pci/ds1.c,v ::retrieving revision 1.31 ::diff -u -r1.31 ds1.c ::--- ds1.c 20 Feb 2003 17:31:11 -0000 1.31 ::+++ ds1.c 16 Apr 2003 04:34:08 -0000 ::@@ -828,7 +828,7 @@ :: :: if (sc->regbase == NULL) { :: if (bus_dma_tag_create(NULL, 2, 0, BUS_SPACE_MAXADDR_32BIT, BUS_SPACE_MAXADDR, ::- NULL, NULL, memsz, 1, 1, 0, &sc->control_dmat)) ::+ NULL, NULL, memsz, 1, memsz, 0, &sc->control_dmat)) :: return -1; :: if (bus_dmamem_alloc(sc->control_dmat, &buf, BUS_DMA_NOWAIT, &sc->map)) :: return -1; :: ::At Wed, 16 Apr 2003 13:26:13 +0900, ::Hidetoshi Shimokawa wrote: ::> ::> Thanks for letting me know. I'll look into the problem. ::> ::> /\ Hidetoshi Shimokawa ::> \/ simokawa@sat.t.u-tokyo.ac.jp ::> PGP public key: http://www.sat.t.u-tokyo.ac.jp/~simokawa/pgp.html ::> ::> At Wed, 16 Apr 2003 13:04:59 +0900 (JST), ::> Munehiro Matsuda wrote: ::> > ::> > Hi all, ::> > ::> > From: Vladimir Kushnir ::> > Date: Wed, 16 Apr 2003 00:27:15 +0300 (EEST) ::> > ::pcm0: mem 0xeb000000-0 xeb007fff irq 10 at device ::> > ::16.0 on pci0 ::> > ::ds1: setmap (502000, 1000), nseg=0, error=27 ::> > ::pcm0: pcs=120, rcs=16, ecs=16, ws=0, memsz=1584 4 ::> > ::pcm0: unable to initialize the card ::> > ::device_probe_and_attach: pcm0 attac returned 6 ::> > ::> > I also get similar problem, here too. ::> > dmesg NG: ::> > pcm0: port 0xfc8c-0xfc8f,0xfcc0-0xfcff mem 0xfedf8000-0xfedfffff irq 9 at device 9.0 on pci0 ::> > pcm0: pcs=120, rcs=16, ecs=16, ws=0, memsz=15844 ::> > pcm0: unable to initialize the card ::> > device_probe_and_attach: pcm0 attach returned 6 ::> > ::> > dmesg OK: ::> > pcm0: port 0xfc8c-0xfc8f,0xfcc0-0xfcff mem 0xfedf8000-0xfedfffff irq 9 at device 9.0 on pci0 ::> > pcm0: ::> > ::> > ::> > I have tracked down that, problem started with rev 1.41 of ::> > src/sys/i386/i386/busdma_machdep.c and still happens with rev 1.43. ::> > If I go back to rev 1.40, the problem goes a way. =------------------------------------------------------------------------------ _ _ Munehiro (haro) Matsuda -|- /_\ |_|_| Network Solution Dept., Kubota Graphics Technologies Inc. /|\ |_| |_|_| 2-8-8 Shinjuku Shinjuku-ku Tokyo 160-0022, Japan Tel: +81-3-3225-0373 Fax: +81-3-3225-0740 Email: haro@kgt.co.jp