Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 16 Apr 2003 14:00:50 +0900 (JST)
From:      Munehiro Matsuda <haro@kgt.co.jp>
To:        simokawa@sat.t.u-tokyo.ac.jp
Cc:        current@FreeBSD.org
Subject:   Re: pcm0: unable to initialize the card (YMF724) 
Message-ID:  <20030416.140050.74755518.haro@kgt.co.jp>
In-Reply-To: <ybsy92boy9p.wl@ett.sat.t.u-tokyo.ac.jp>
References:  <20030416.130459.74757314.haro@kgt.co.jp> <ybsznmroyoq.wl@ett.sat.t.u-tokyo.ac.jp> <ybsy92boy9p.wl@ett.sat.t.u-tokyo.ac.jp>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi Simokawa-san,

Yes, it's fixed with your patch.
Thank you very much for your quick response.

Regards,
 Haro

From: Hidetoshi Shimokawa <simokawa@sat.t.u-tokyo.ac.jp>
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 <vkushnir@alfacom.net>
::> > Date: Wed, 16 Apr 2003 00:27:15 +0300 (EEST)
::> > ::pcm0: <Yamaha DS-1E (YMF724F)> 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: <Yamaha DS-1E (YMF744)> 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: <Yamaha DS-1E (YMF744)> port 0xfc8c-0xfc8f,0xfcc0-0xfcff mem 0xfedf8000-0xfedfffff irq 9 at device 9.0 on pci0
::> > pcm0: <Asahi Kasei AK4543 AC97 Codec>
::> > 
::> >  
::> > 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030416.140050.74755518.haro>