From owner-freebsd-current Tue Sep 5 7:32:53 2000 Delivered-To: freebsd-current@freebsd.org Received: from assurance.rstcorp.com (rstcorp2.daf.concentric.net [216.112.242.2]) by hub.freebsd.org (Postfix) with ESMTP id 74EA137B422 for ; Tue, 5 Sep 2000 07:32:38 -0700 (PDT) Received: (from uucp@localhost) by assurance.rstcorp.com (8.10.1/8.10.1) id e85EWcr29841; Tue, 5 Sep 2000 10:32:38 -0400 Received: from exchange.rstcorp.com(10.1.20.3) by assurance.rstcorp.com via smap (V2.1+anti-relay+anti-spam) id xma029832; Tue, 5 Sep 00 10:32:23 -0400 Received: from jabberwock (jabberwock.rstcorp.com [10.1.254.253]) by exchange.rstcorp.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2650.21) id SJFXH0LX; Tue, 5 Sep 2000 10:32:11 -0400 Received: by jabberwock (Postfix, from userid 93) id 71622C; Tue, 5 Sep 2000 10:32:21 -0400 (EDT) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <14773.1013.154601.647909@jabberwock.rstcorp.com> Date: Tue, 5 Sep 2000 10:32:21 -0400 (EDT) From: "Viren R.Shah" To: freebsd-current@freebsd.org Cc: matey@cis.ohio-state.edu Subject: problems with aureal soundcard: kernel fault when playing mp3s X-Mailer: VM 6.72 under 21.1 (patch 10) "Capitol Reef" XEmacs Lucid Reply-To: "Viren R.Shah" Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG [Alexander, I'm Cc:ing you on this just in case you have heard of anyone else having similar problems with Aureal cards with recent -currents] My last good kernel was from aug 14. On a kernel from 09/05, I get a page fault as soon as I try to play mp3s using mpg123. Note that I have an Aureal Vortex 8830, so I have to use the linux drivers to get the device working (http://www.cis.ohio-state.edu/~matey/au88x0/) so this might just be a problem with interactions between the linux .o files and kernel data structures. The soundcard worked fine using the linux drivers on a -current from August 14. I'm wondering if anything changed in the pcm code since then. Here's the page fault in DDB. I have a debug kernel if anyone needs more info. Fatal trap 12: page fault while in kernel mode fault virtual address = 0x1000001b fault code = supervisor read, page not present instruction pointer = 0x8:0xc016ef23 stack pointer = 0x10:0xd2a4dc98 frame pointer = 0x10:0xd2a4dc98 code segment = base 0x0, limit 0xfffff, type 0x1b = DPL 0, pres 1, def32 1, gran 1 processor eflags = interrupt enabled, resume, IOPL = 0 current process = 825 (mpg123) interrupt mask = none kernel: type 12 trap, code=0 Stopped at fmtvalid+0xb: cmpl $0,0(%edx) db>trace fmtvalid(8,1000001b,c1599000) at fmtvalid+0xb chn_setformat(c1599000,8) at chn_setformat+0x4c chn_reset(c1599000,8,d2a90740,c155f600,d2a4be00) at chn_reset+0x37 dsp_open(c14fe400,0,2,3,0) at dsp_open+0x12b sndopen(c155f600,2,200,d2a4be00,0) at sndopen+0x73 spec_open(d2a4dd94,d2a4dd68,c0264675,d2a4dd94,d2a4de08) at spec_open+0x145 spec_vnoperate(d2a4dd94,d2a4de08,c01cdf6b,d2a4dd94,d2a4df80) at spec_vnoperate+0x15 ufs_vnoperatespec(d2a4dd94,d2a4df80,0,d2a4df80,2) at ufs_vnoperatespec+0x15 vn_open(d2a4de6c,d2a4de38,1,d2a4be00,3) at vn_open+0x333 open(d2a4be00,d2a4df80,bfbffa30,807e8a4,807b4f8) at open+0xcd syscall2(2f,2f,2f,807b4f8,807e8a4) at syscall2+0x1f1 Xint0x80_syscall() at Xint0x80_syscall+0x25 db> Here's my dmesg from the kernel that produced the above page fault: Copyright (c) 1992-2000 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD 5.0-CURRENT #0: Tue Sep 5 09:07:19 EDT 2000 root@jabberwock:/home/FreeBSD/src/sys/compile/VORPAL Calibrating clock(s) ... TSC clock: 797903726 Hz, i8254 clock: 1193093 Hz CLK_USE_I8254_CALIBRATION not specified - using default frequency Timecounter "i8254" frequency 1193182 Hz CLK_USE_TSC_CALIBRATION not specified - using old calibration method Timecounter "TSC" frequency 797966473 Hz CPU: Pentium III/Pentium III Xeon/Celeron (797.97-MHz 686-class CPU) Origin = "GenuineIntel" Id = 0x683 Stepping = 3 Features=0x383f9ff real memory = 402391040 (392960K bytes) Physical memory chunk(s): 0x00001000 - 0x0009efff, 647168 bytes (158 pages) 0x003e3000 - 0x17fb7fff, 398282752 bytes (97237 pages) avail memory = 387465216 (378384K bytes) bios32: Found BIOS32 Service Directory header at 0xc00fda60 bios32: Entry = 0xfda74 (c00fda74) Rev = 0 Len = 1 pcibios: PCI BIOS entry at 0xf0000+0xda95 pnpbios: Found PnP BIOS data at 0xc00f2c10 pnpbios: Entry = f0000:24ca Rev = 1.0 Other BIOS signatures found: Preloaded elf kernel "kernel" at 0xc03ca000. nulldev: random: mem: Pentium Pro MTRR support enabled Creating DISK md0 md0: Malloc disk npx0: on motherboard npx0: INT 16 interface pcib0: on motherboard pci0: physical bus=0 found-> vendor=0x8086, dev=0x2501, revid=0x04 bus=0, slot=0, func=0 class=06-00-00, hdrtype=0x00, mfdev=0 subordinatebus=0 secondarybus=0 map[10]: type 3, range 32, base f8000000, size 26, enabled found-> vendor=0x8086, dev=0x250f, revid=0x04 bus=0, slot=1, func=0 class=06-04-00, hdrtype=0x01, mfdev=0 subordinatebus=1 secondarybus=1 found-> vendor=0x8086, dev=0x2418, revid=0x02 bus=0, slot=30, func=0 class=06-04-00, hdrtype=0x01, mfdev=0 subordinatebus=2 secondarybus=2 found-> vendor=0x8086, dev=0x2410, revid=0x02 bus=0, slot=31, func=0 class=06-01-00, hdrtype=0x00, mfdev=1 subordinatebus=0 secondarybus=0 found-> vendor=0x8086, dev=0x2411, revid=0x02 bus=0, slot=31, func=1 class=01-01-80, hdrtype=0x00, mfdev=0 subordinatebus=0 secondarybus=0 map[20]: type 4, range 32, base 0000ffa0, size 4, enabled found-> vendor=0x8086, dev=0x2412, revid=0x02 bus=0, slot=31, func=2 class=0c-03-00, hdrtype=0x00, mfdev=0 subordinatebus=0 secondarybus=0 intpin=d, irq=10 map[20]: type 4, range 32, base 0000ef80, size 5, enabled found-> vendor=0x8086, dev=0x2413, revid=0x02 bus=0, slot=31, func=3 class=0c-05-00, hdrtype=0x00, mfdev=0 subordinatebus=0 secondarybus=0 intpin=b, irq=9 map[20]: type 4, range 32, base 0000efa0, size 4, enabled pci0: on pcib0 pcib1: at device 1.0 on pci0 pci1: physical bus=1 found-> vendor=0x10de, dev=0x0100, revid=0x10 bus=1, slot=0, func=0 class=03-00-00, hdrtype=0x00, mfdev=0 subordinatebus=0 secondarybus=0 intpin=a, irq=11 map[10]: type 1, range 32, base fd000000, size 24, enabled map[14]: type 3, range 32, base e8000000, size 27, enabled pci1: on pcib1 pci1: (vendor=0x10de, dev=0x0100) at 0.0 irq 11 pcib2: at device 30.0 on pci0 pci2: physical bus=2 found-> vendor=0x10b7, dev=0x9200, revid=0x78 bus=2, slot=8, func=0 class=02-00-00, hdrtype=0x00, mfdev=0 subordinatebus=0 secondarybus=0 intpin=a, irq=11 map[10]: type 4, range 32, base 0000dc00, size 7, enabled map[14]: type 1, range 32, base feaffc00, size 7, enabled found-> vendor=0x12eb, dev=0x0002, revid=0xfe bus=2, slot=11, func=0 class=04-01-00, hdrtype=0x00, mfdev=0 subordinatebus=0 secondarybus=0 intpin=a, irq=10 map[10]: type 1, range 32, base fea80000, size 18, enabled map[14]: type 4, range 32, base 0000dff0, size 3, enabled map[18]: type 4, range 32, base 0000dfe0, size 3, enabled pci2: on pcib2 xl0: <3Com 3c905C-TX Fast Etherlink XL> port 0xdc00-0xdc7f mem 0xfeaffc00-0xfeaffc7f irq 11 at device 8.0 on pci2 xl0: Ethernet address: 00:01:03:1d:d6:4e xl0: media options word: a xl0: found MII/AUTO miibus0: on xl0 xlphy0: <3c905C 10/100 internal PHY> on miibus0 xlphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto bpf: xl0 attached pcm0: port 0xdfe0-0xdfe7,0xdff0-0xdff7 mem 0xfea80000-0xfeabffff irq 10 at device 11.0 on pci2 pcm: setmap 2b000, 8000; 0xcfbad000 -> 2b000 pcm: setmap 33000, 8000; 0xcfbb5000 -> 33000 pcm: setmap 3b000, 8000; 0xcfbbd000 -> 3b000 pcm: setmap 43000, 8000; 0xcfbc5000 -> 43000 pcm: setmap 4b000, 8000; 0xcfbcd000 -> 4b000 isab0: at device 31.0 on pci0 isa0: on isab0 atapci0: port 0xffa0-0xffaf at device 31.1 on pci0 ata0: iobase=0x01f0 altiobase=0x03f6 bmaddr=0xffa0 ata0: mask=03 status0=50 status1=00 ata0: mask=03 status0=50 status1=00 ata0: devices = 0x1 ata0: at 0x1f0 irq 14 on atapci0 ata1: iobase=0x0170 altiobase=0x0376 bmaddr=0xffa8 ata1: mask=03 status0=50 status1=00 ata1: mask=03 status0=00 status1=00 ata1: devices = 0x4 ata1: at 0x170 irq 15 on atapci0 uhci0: port 0xef80-0xef9f irq 10 at device 31.2 on pci0 using shared irq10. usb0: on uhci0 usb0: USB revision 1.0 uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub0: 2 ports with 2 removable, self powered pci0: (vendor=0x8086, dev=0x2413) at 31.3 irq 9 ata-: ata0 already exists, using ata2 instead ata-: ata1 already exists, using ata3 instead Trying Read_Port at 203 Trying Read_Port at 243 Trying Read_Port at 283 Trying Read_Port at 2c3 Trying Read_Port at 303 Trying Read_Port at 343 Trying Read_Port at 383 Trying Read_Port at 3c3 pnpbios: 20 devices, largest 234 bytes PNP0c01: adding fixed memory32 range 0-0x9fbff, size=0x9fc00 PNP0c01: adding fixed memory32 range 0x9fc00-0x9ffff, size=0x400 PNP0c01: adding fixed memory32 range 0xe0000-0xfffff, size=0x20000 PNP0c01: adding fixed memory32 range 0x17fe0000-0x17ff7fff, size=0x18000 PNP0c01: adding fixed memory32 range 0x17ff8000-0x17ffffff, size=0x8000 PNP0c01: adding fixed memory32 range 0x17fc0000-0x17fdffff, size=0x20000 PNP0c01: adding fixed memory32 range 0xfff00000-0xffffffff, size=0x100000 PNP0c01: end config pnpbios: handle 0 device ID PNP0c01 (010cd041) PNP0c01: adding fixed memory32 range 0x100000-0x17fbffff, size=0x17ec0000 PNP0c01: end config pnpbios: handle 1 device ID PNP0c01 (010cd041) PNP0000: adding io range 0x20-0x21, size=0x2, align=0x1 PNP0000: adding io range 0xa0-0xa1, size=0x2, align=0x1 PNP0000: adding irq mask 0x4 PNP0000: end config pnpbios: handle 2 device ID PNP0000 (0000d041) PNP0200: adding dma mask 0x10 PNP0200: adding io range 0-0xf, size=0x10, align=0x1 PNP0200: adding io range 0x80-0x90, size=0x11, align=0x1 PNP0200: adding io range 0x94-0x9f, size=0xc, align=0x1 PNP0200: adding io range 0xc0-0xde, size=0x1f, align=0x1 PNP0200: end config pnpbios: handle 3 device ID PNP0200 (0002d041) PNP0100: adding irq mask 0x1 PNP0100: adding io range 0x40-0x43, size=0x4, align=0x1 PNP0100: end config pnpbios: handle 4 device ID PNP0100 (0001d041) PNP0b00: adding irq mask 0x100 PNP0b00: adding io range 0x70-0x71, size=0x2, align=0x1 PNP0b00: end config pnpbios: handle 5 device ID PNP0b00 (000bd041) PNP0303: adding irq mask 0x2 PNP0303: adding io range 0x60-0x60, size=0x1, align=0x1 PNP0303: adding io range 0x64-0x64, size=0x1, align=0x1 PNP0303: end config pnpbios: handle 6 device ID PNP0303 (0303d041) PNP0800: adding io range 0x61-0x61, size=0x1, align=0x1 PNP0800: end config pnpbios: handle 7 device ID PNP0800 (0008d041) PNP0c04: adding irq mask 0x2000 PNP0c04: adding io range 0xf0-0xff, size=0x10, align=0x1 PNP0c04: end config pnpbios: handle 8 device ID PNP0c04 (040cd041) PNP0c02: adding io range 0x4d0-0x4d1, size=0x2, align=0x1 PNP0c02: adding io range 0xcf8-0xcff, size=0x8, align=0x1 PNP0c02: adding io range 0x10-0x1f, size=0x10, align=0x1 PNP0c02: adding io range 0x22-0x2d, size=0xc, align=0x1 PNP0c02: adding io range 0x30-0x3f, size=0x10, align=0x1 PNP0c02: adding io range 0x50-0x52, size=0x3, align=0x1 PNP0c02: adding io range 0x72-0x77, size=0x6, align=0x1 PNP0c02: adding io range 0x91-0x93, size=0x3, align=0x1 PNP0c02: adding io range 0xa2-0xbe, size=0x1d, align=0x1 PNP0c02: adding io range 0x400-0x47f, size=0x80, align=0x1 PNP0c02: adding io range 0x540-0x54f, size=0x10, align=0x1 PNP0c02: adding io range 0x500-0x53f, size=0x40, align=0x1 PNP0c02: adding io range 0-0xffffffff, size=0, align=0x1 PNP0c02: adding io range 0-0xffffffff, size=0, align=0x1 PNP0c02: adding io range 0-0xffffffff, size=0, align=0x1 PNP0c02: skipping empty range PNP0c02: skipping empty range PNP0c02: skipping empty range PNP0c02: skipping empty range PNP0c02: skipping empty range PNP0c02: skipping empty range PNP0c02: skipping empty range PNP0c02: skipping empty range PNP0c02: end config pnpbios: handle 9 device ID PNP0c02 (020cd041) INT0800: adding fixed memory32 range 0xffb00000-0xffbfffff, size=0x100000 INT0800: end config pnpbios: handle 10 device ID INT0800 (0008d425) PNP0c02: adding io range 0x800-0x87f, size=0x80, align=0x1 PNP0c02: end config pnpbios: handle 11 device ID PNP0c02 (020cd041) PNP0c02: end config pnpbios: handle 12 device ID PNP0c02 (020cd041) PNP0c02: end config pnpbios: handle 13 device ID PNP0c02 (020cd041) PNP0501: adding io range 0x3f8-0x3ff, size=0x8, align=0x8 PNP0501: adding irq mask 0x10 PNP0501: end config pnpbios: handle 14 device ID PNP0501 (0105d041) PNP0c02: end config pnpbios: handle 15 device ID PNP0c02 (020cd041) PNP0401: adding io range 0x378-0x37f, size=0x8, align=0x8 PNP0401: adding io range 0x778-0x77a, size=0x3, align=0x8 PNP0401: adding irq mask 0x80 PNP0401: adding dma mask 0x8 PNP0401: end config pnpbios: handle 16 device ID PNP0401 (0104d041) PNP0700: adding io range 0x3f0-0x3f5, size=0x6, align=0x1 PNP0700: adding io range 0x3f7-0x3f7, size=0x1, align=0x1 PNP0700: adding irq mask 0x40 PNP0700: adding dma mask 0x4 PNP0700: end config pnpbios: handle 17 device ID PNP0700 (0007d041) PNP0f13: adding irq mask 0x1000 PNP0f13: end config pnpbios: handle 18 device ID PNP0f13 (130fd041) PNP0a03: end config pnpbios: handle 19 device ID PNP0a03 (030ad041) sc-: sc0 already exists, using sc1 instead vga-: vga0 already exists, using vga1 instead isa_probe_children: disabling PnP devices isa_probe_children: probing non-PnP devices fdc0: at port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on isa0 fdc0: FIFO enabled, 8 bytes threshold fd0: <1440-KB 3.5" drive> on fdc0 drive 0 ata2 failed to probe at port 0x1f0 irq 14 on isa0 ata3 failed to probe at port 0x170 irq 15 on isa0 atkbdc0: at port 0x60,0x64 on isa0 atkbd0: flags 0x1 irq 1 on atkbdc0 atkbd: the current kbd controller command byte 0065 atkbd: keyboard ID 0x41ab (2) kbdc: RESET_KBD return code:00fa kbdc: RESET_KBD status:00aa kbd0 at atkbd0 kbd0: atkbd0, AT 101/102 (2), config:0x1, flags:0x3d0000 psm0: current command byte:0065 kbdc: TEST_AUX_PORT status:0000 kbdc: RESET_AUX return code:00fa kbdc: RESET_AUX status:00aa kbdc: RESET_AUX ID:0000 psm: status 00 02 64 psm: status 0a 03 c8 psm: status 0a 03 c8 psm: status 0a 03 c8 psm: data c8 c2 50 psm: data 08 00 00 psm: status 00 02 64 psm0: irq 12 on atkbdc0 psm0: model MouseMan+, device ID 0-50, 3 buttons psm0: config:00000000, flags:00000000, packet size:3 psm0: syncmask:08, syncbits:08 vga0: at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 fb0: vga0, vga, type:VGA (5), flags:0x7007f fb0: port:0x3c0-0x3df, crtc:0x3d4, mem:0xa0000 0x20000 fb0: init mode:24, bios mode:3, current mode:24 fb0: window:0xc00b8000 size:32k gran:32k, buf:0 size:32k VGA parameters upon power-up 50 18 10 00 00 00 03 00 02 67 5f 4f 50 82 55 81 bf 1f 00 4f 0d 0e 00 00 06 e0 9c 8e 8f 28 1f 96 b9 a3 ff 00 01 02 03 04 05 14 07 38 39 3a 3b 3c 3d 3e 3f 0c 00 0f 08 00 00 00 00 00 10 0e 00 ff VGA parameters in BIOS for mode 24 50 18 10 00 10 00 03 00 02 67 5f 4f 50 82 55 81 bf 1f 00 4f 0d 0e 00 00 00 00 9c 8e 8f 28 1f 96 b9 a3 ff 00 01 02 03 04 05 14 07 38 39 3a 3b 3c 3d 3e 3f 0c 00 0f 08 00 00 00 00 00 10 0e 00 ff EGA/VGA parameters to be used for mode 24 50 18 10 00 10 00 03 00 02 67 5f 4f 50 82 55 81 bf 1f 00 4f 0d 0e 00 00 00 00 9c 8e 8f 28 1f 96 b9 a3 ff 00 01 02 03 04 05 14 07 38 39 3a 3b 3c 3d 3e 3f 0c 00 0f 08 00 00 00 00 00 10 0e 00 ff sc0: at flags 0x100 on isa0 sc0: VGA <16 virtual consoles, flags=0x300> sc0: fb0, kbd0, terminal emulator: sc (syscons terminal) pcic0 failed to probe on isa0 sio0: irq maps: 0x41 0x51 0x41 0x41 sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0 sio0: type 16550A sio1: configured irq 3 not in bitmap of probed irqs 0 sio1: irq maps: 0x41 0x41 0x41 0x41 sio1: probe failed test(s): 0 1 2 4 6 7 9 sio1 failed to probe at port 0x2f8-0x2ff irq 3 on isa0 sio2: not probed (disabled) sio3: not probed (disabled) ppc0: parallel port found at 0x378 ppc0: using extended I/O port range ppc0: ECP SPP ECP+EPP SPP ppc0: at port 0x378-0x37f irq 7 on isa0 ppc0: SMC-like chipset (ECP/EPP/PS2/NIBBLE) in COMPATIBLE mode ppc0: FIFO with 16/16/8 bytes threshold lpt0: on ppbus0 lpt0: Interrupt-driven port sc1: no video adapter is found. sc1: failed to probe on isa0 vga1: failed to probe on isa0 isa_probe_children: probing PnP devices unknown: can't assign resources unknown: at port 0x60 on isa0 unknown: failed to probe at port 0x61 on isa0 unknown: failed to probe at iomem 0xffb00000-0xffbfffff on isa0 unknown: can't assign resources unknown: at port 0x3f8-0x3ff on isa0 unknown: can't assign resources unknown: at port 0x378-0x37f on isa0 unknown: can't assign resources unknown: at port 0x3f0-0x3f5 on isa0 unknown: can't assign resources unknown: at irq 12 on isa0 BIOS Geometries: 0:03fefe3f 0..1022=1023 cylinders, 0..254=255 heads, 1..63=63 sectors 0 accounted for Device configuration finished. bpf: ppp0 attached new masks: bio 68c440, tty 631492, net 671c92 bpf: faith0 attached bpf: gif0 attached bpf: gif1 attached bpf: gif2 attached bpf: gif3 attached bpf: lo0 attached ata0-master: success setting UDMA4 on ICH chip ad0: ATA-5 disk at ata0 as master ad0: 28629MB (58633344 sectors), 58168 cyls, 16 heads, 63 S/T, 512 B/S ad0: 16 secs/int, 1 depth queue, UDMA66 ad0: piomode=4 dmamode=2 udmamode=4 cblid=1 Creating DISK ad0 ata1-master: piomode=4 dmamode=2 udmamode=2 dmaflag=1 ata1-master: success setting PIO4 on generic chip acd0: CDROM drive at ata1 as master acd0: read 8250KB/s (8250KB/s), 128KB buffer, PIO4 acd0: Reads: CD-R, CD-RW, CD-DA stream, packet acd0: Audio: play, 255 volume levels acd0: Mechanism: ejectable tray acd0: Medium: no/blank disc inside, unlocked, lock protected Mounting root from ufs:/dev/ad0s1a ad0s1: type 0xa5, start 63, end = 58621184, size 58621122 : OK start_init: trying /sbin/init splash: image decoder found: logo_saver Linux-ELF exec handler installed Viren -- "I sat around during the design phase going "this is going to suck so badly that we're going to have to hold onto desks to stop us from being drawn into the vortex"." -- Chris "Saundo" Saunderson in the scary devil monastery To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message