Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 27 Nov 1999 18:55:25 +0100 (CET)
From:      Matthias Buelow <mkb@altair.mayn.de>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   i386/15119: pcm sound driver dma problems with isa-pnp cards
Message-ID:  <199911271755.SAA00525@altair.mayn.de>

next in thread | raw e-mail | index | archive | help

>Number:         15119
>Category:       i386
>Synopsis:       pcm sound driver dma problems with isa-pnp cards
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Nov 27 10:00:01 PST 1999
>Closed-Date:
>Last-Modified:
>Originator:     Matthias Buelow
>Release:        FreeBSD 3.3-STABLE i386
>Organization:
>Environment:

dmesg output:

Copyright (c) 1992-1999 FreeBSD Inc.
Copyright (c) 1982, 1986, 1989, 1991, 1993
	The Regents of the University of California. All rights reserved.
FreeBSD 3.3-STABLE #0: Sat Nov 27 17:38:19 CET 1999
    mkb@altair.mayn.de:/usr/src/sys/compile/ALTAIR
Timecounter "i8254"  frequency 1193182 Hz
Timecounter "TSC"  frequency 233030322 Hz
CPU: AMD-K6tm w/ multimedia extensions (233.03-MHz 586-class CPU)
  Origin = "AuthenticAMD"  Id = 0x562  Stepping = 2
  Features=0x8001bf<FPU,VME,DE,PSE,TSC,MSR,MCE,CX8,MMX>
  AMD Features=0x400<<b10>>
real memory  = 67108864 (65536K bytes)
avail memory = 62783488 (61312K bytes)
Preloaded elf kernel "kernel" at 0xc0265000.
Preloaded userconfig_script "/boot/kernel.conf" at 0xc026509c.
Probing for devices on PCI bus 0:
chip0: <Host to PCI bridge (vendor=1039 device=5597)> rev 0x02 on pci0.0.0
chip1: <SiS 85c503> rev 0x01 on pci0.1.0
vga0: <Matrox MGA 1024SG/1064SG/1164SG graphics accelerator> rev 0x03 int a irq 15 on pci0.9.0
ncr0: <ncr 53c875 fast20 wide scsi> rev 0x26 int a irq 9 on pci0.10.0
Probing for PnP devices:
CSN 1 Vendor ID: CTL0051 [0x51008c0e] Serial 0x00045b7d Comp ID: PNP0600 [0x0006d041]
pcm1 (SB16pnp <SB16 PnP> sn 0x00045b7d) at 0x240-0x24f irq 10 drq 1 flags 0x15 on isa
Probing for devices on the ISA bus:
sc0 on isa
sc0: VGA color <16 virtual consoles, flags=0x0>
atkbdc0 at 0x60-0x6f on motherboard
atkbd0 irq 1 on isa
psm0 irq 12 on isa
psm0: model Generic PS/2 mouse, device ID 0
sio0 at 0x3f8-0x3ff irq 4 flags 0x10 on isa
sio0: type 16550A
sio1 at 0x2f8-0x2ff irq 3 on isa
sio1: type 16550A
pcm0 not probed due to drq conflict with pcm1 at 1
fdc0 at 0x3f0-0x3f7 irq 6 drq 2 on isa
fdc0: FIFO enabled, 8 bytes threshold
fd0: 1.44MB 3.5in
ppc0 at 0x378 irq 7 flags 0x40 on isa
ppc0: SMC-like chipset (ECP/EPP/PS2/NIBBLE) in COMPATIBLE mode
ppc0: FIFO with 16/16/16 bytes threshold
lpt0: <generic printer> on ppbus 0
lpt0: Interrupt-driven port
ppi0: <generic parallel i/o> on ppbus 0
vga0 at 0x3b0-0x3df maddr 0xa0000 msize 131072 on isa
npx0 on motherboard
npx0: INT 16 interface
Waiting 15 seconds for SCSI devices to settle
cd0 at ncr0 bus 0 target 2 lun 0
cd0: <TEAC CD-ROM CD-532S 1.0A> Removable CD-ROM SCSI-2 device 
cd0: 20.000MB/s transfers (20.000MHz, offset 16)
cd0: Attempt to query device size failed: NOT READY, Medium not present
da1 at ncr0 bus 0 target 1 lun 0
da1: <IBM DCAS-34330W S61A> Fixed Direct Access SCSI-2 device 
da1: 40.000MB/s transfers (20.000MHz, offset 15, 16bit)
da1: 4134MB (8467200 512 byte sectors: 255H 63S/T 527C)
da0 at ncr0 bus 0 target 0 lun 0
da0: <IBM DDRS-34560W S97B> Fixed Direct Access SCSI-2 device 
da0: 40.000MB/s transfers (20.000MHz, offset 15, 16bit), Tagged Queueing Enabled
da0: 4357MB (8925000 512 byte sectors: 255H 63S/T 555C)

>Description:

I am using Luigi's pcm snd code to drive my isa-pnp sound card.
I have previously used an el-cheapo opti933 but had the same problems
as I am now reporting and so plugged in a sb16-vibra.
Because it didn't work out at all, I have cvsupped my 3.3-stable from
09/26 today, rebuilt the kernel and got a little more success although
not for long.
Basically, the card either loops samples (the opti) or doesn't
output anything at all (on the sb-vibra, except for sometimes the
first chunk of dsp sample output).
The kernel logs the following:

timeout flushing dbuf_out, chan 5 cnt 0xff00 flags 0x000040c1
tsleep returns 4

which appears to me to be some kind of dma problem.
Interestingly sound worked for a short while after cvsupping
and building the new kernel but after I swapped the vibra
with the opti and back, I got the same problems as before.

I must note that at least the opti worked flawlessly with pcm
on freebsd 2.2.6 (except for an "ad1848 init failed" at boot
which however didn't affect functionality) so I don't think
it's only my hardware setup.

>How-To-Repeat:
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




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