Re: pcm0: unable to initialize the card (YMF724)

From: Hidetoshi Shimokawa <simokawa_at_sat.t.u-tokyo.ac.jp>
Date: Wed, 16 Apr 2003 13:35:14 +0900
Could you try the following patch?

/\ Hidetoshi Shimokawa
\/  simokawa_at_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
_at__at_ -828,7 +828,7 _at__at_
 
 	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_at_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_at_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.
> > 
> > Hope this helps,
> >  Haro
> > =------------------------------------------------------------------------------
> >            _ _    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_at_kgt.co.jp
> > 
Received on Tue Apr 15 2003 - 19:35:18 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:03 UTC