From owner-freebsd-bugs Mon Feb 21 7:40:16 2000 Delivered-To: freebsd-bugs@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id 04EE937BEE0 for ; Mon, 21 Feb 2000 07:40:07 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id HAA91092; Mon, 21 Feb 2000 07:40:06 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id 8307137BF0C for ; Mon, 21 Feb 2000 07:35:39 -0800 (PST) (envelope-from nobody@FreeBSD.org) Received: (from nobody@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id HAA90881; Mon, 21 Feb 2000 07:35:39 -0800 (PST) (envelope-from nobody@FreeBSD.org) Message-Id: <200002211535.HAA90881@freefall.freebsd.org> Date: Mon, 21 Feb 2000 07:35:39 -0800 (PST) From: viren@rstcorp.com To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-1.0 Subject: conf/16879: Sound drivers seem to be using shared irqs resulting in a panic at boot Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 16879 >Category: conf >Synopsis: Sound drivers seem to be using shared irqs resulting in a panic at boot >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Feb 21 07:40:00 PST 2000 >Closed-Date: >Last-Modified: >Originator: Viren Shah >Release: 4.0-CURRENT >Organization: >Environment: FreeBSD jabberwock 4.0-CURRENT FreeBSD 4.0-CURRENT #0: Mon Feb 21 09:24:19 EST 2000 vshah@jabberwock:/home/ncvs/FreeBSD/current-src/src/sys/compile/NOSOUND i386 >Description: I can use a kernel from jan18 and boot with sound configured. The next time I tried make world and a new kernel was feb 5, and the system paniced at boot. It seems that a new device is being found by the sound drivers -- csa0 (this device was not present in the jan18 kernel). It seems to be using an irq used by some other device. If I have xl0 (my NIC) configured in the kernel, then it uses the irq configured by xl0, resulting in a panic at boot when ifconfig is run. If xl0 is a module, csa0 takes theirq of my adaptec driver (ahc0), and then the panic is simply when the "idle" process is running. I can repeat this problem at will. I have a debug kernel lying around for the panic. If someone will tell me what debug info they want, I'll be happy to oblige. The panic is: Fatal trap 12: page fault while in kernel mode fault virtual address = 0x28 fault code = supervisor read, page not present isntruction pointer = 0x8:0xc01f79f3 stack pointer = 0x10:0xc0267798 frame pointer = 0x10:0xc026779c 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 = Idle interrupt mask = tty kernel: type 12 trap, code = 0 Stopped at csa_readio+0x17: movl 0x28(%eax), %edx db> trace csa_readio(c10b7bc4, 0) at csa_readio+0x17 csa_intr(c10b7bc0, 40031232, 0, 0, 0) at csa_intr+0x13 intr_mux(c0a65b80, 0, 10, 10, c0220010, ce220010) at intr_mux+0x1d Xresume9() at Xresume9+0x2b --- interrupt, eip=0xc0222ffc, esp = 0xc0267814, epb=0 --- The dmesg from jan 18 kernel (with working sound): Copyright (c) 1992-2000 The FreeBSD Project. Copyright (c) 1982, 1986, 1989, 1991, 1993 The Regents of the University of California. All rights reserved. FreeBSD 4.0-CURRENT #0: Tue Jan 18 13:28:32 EST 2000 vshah@jabberwock:/home/ncvs/FreeBSD/current-src/src/sys/compile/SEVEN Timecounter "i8254" frequency 1193182 Hz Timecounter "TSC" frequency 398271024 Hz CPU: Pentium II/Xeon/Celeron (398.27-MHz 686-class CPU) Origin = "GenuineIntel" Id = 0x651 Stepping = 1 Features=0x183f9ff real memory = 268435456 (262144K bytes) avail memory = 257232896 (251204K bytes) Preloaded elf kernel "kernel.jan18" at 0xc02f3000. Pentium Pro MTRR support enabled npx0: on motherboard npx0: INT 16 interface pcib0: on motherboard pci0: on pcib0 pcib1: at device 1.0 on pci0 pci1: on pcib1 vga-pci0: mem 0xfc000000-0xfcffffff,0xf5000000-0xf5ffffff irq 11 at device 0.0 on pci1 isab0: at device 7.0 on pci0 isa0: on isab0 ata-pci0: port 0x14a0-0x14af at device 7.1 on pci0 ata-pci0: Busmastering DMA supported ata0 at 0x01f0 irq 14 on ata-pci0 ata1 at 0x0170 irq 15 on ata-pci0 pci0: Intel 82371AB/EB (PIIX4) USB controller (vendor=0x8086, dev=0x7112) at 7.2 irq 9 chip1: port 0x7000-0x700f at device 7.3 on pci0 pci0: unknown card (vendor=0x1013, dev=0x6001) at 11.0 irq 9 xl0: <3Com 3c905B-TX Fast Etherlink XL> port 0x1400-0x147f mem 0xf4102000-0xf410207f irq 9 at device 15.0 on pci0 xl0: Ethernet address: 00:10:4b:94:a3:41 miibus0: on xl0 xlphy0: <3Com internal media interface> on miibus0 xlphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto ahc0: port 0x1000-0x10ff mem 0xf4101000-0xf4101fff irq 9 at device 16.0 on pci0 ahc0: aic7880 Wide Channel A, SCSI Id=7, 16/255 SCBs 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 ata-isa0: already registered as ata0 ata-isa1: already registered as ata1 atkbdc0: at port 0x60-0x6f on isa0 atkbd0: irq 1 on atkbdc0 psm0: irq 12 on atkbdc0 psm0: model IntelliMouse, device ID 3 vga0: at port 0x3b0-0x3df iomem 0xa0000-0xbffff on isa0 sc0: on isa0 sc0: VGA <16 virtual consoles, flags=0x200> 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 unknown0: at iomem 0xe0000-0xe3fff on isa0 unknown1: at port 0x370-0x371,0xea-0xeb iomem 0xfffc0000-0xffffffff on isa0 unknown2: at iomem 0-0x9ffff,0xe4000-0xfffff,0x100000-0xfffffff,0xfff80000-0xfffbffff on isa0 unknown3: at port 0-0xf,0x81-0x8f,0xc0-0xdf drq 4 on isa0 unknown: can't assign resources unknown4: at port 0x40-0x43 irq 0 on isa0 unknown5: at port 0x70-0x71 irq 8 on isa0 unknown: can't assign resources unknown6: at port 0xf0-0xff irq 13 on isa0 unknown: can't assign resources unknown7: at port 0xcf8-0xcff on isa0 unknown8: at port 0x4d0-0x4d1,0x8000-0x803f,0x7000-0x700f on isa0 unknown9: on isa0 unknown: can't assign resources unknown: can't assign resources unknown: can't assign resources unknown10: at port 0x378-0x37f irq 7 on isa0 pcm0: at port 0x534-0x537,0x388-0x38b,0x220-0x22f irq 5 drq 1,0 on isa0 unknown11: at port 0x200-0x207 on isa0 unknown12: at port 0x120-0x127 on isa0 unknown13: at port 0x330-0x331 irq 10 on isa0 IP packet filtering initialized, divert enabled, rule-based forwarding disabled, default to accept, logging limited to 100 packets/entry by default ad0: ATA-3 disk at ata0 as master ad0: 8063MB (16514064 sectors), 16383 cyls, 16 heads, 63 S/T, 512 B/S ad0: 16 secs/int, 1 depth queue, UDMA33 ad3: ATA-4 disk at ata1 as slave ad3: 9641MB (19746720 sectors), 19590 cyls, 16 heads, 63 S/T, 512 B/S ad3: 16 secs/int, 1 depth queue, UDMA33 acd0: CDROM drive at ata1 as master acd0: read 2412KB/s (5512KB/s), 256KB buffer, WDMA2 acd0: Reads: CD-R, CD-RW, CD-DA acd0: Audio: play, 256 volume levels acd0: Mechanism: ejectable tray acd0: Medium: no/blank disc inside, unlocked Waiting 6 seconds for SCSI devices to settle Mounting root from ufs:/dev/ad0s3a da0 at ahc0 bus 0 target 1 lun 0 da0: Fixed Direct Access SCSI-2 device da0: 10.000MB/s transfers (10.000MHz, offset 15), Tagged Queueing Enabled da0: 1030MB (2110812 512 byte sectors: 255H 63S/T 131C) The dmesg from a -current kernel from 02/21 without sound is: Copyright (c) 1992-2000 The FreeBSD Project. Copyright (c) 1982, 1986, 1989, 1991, 1993 The Regents of the University of California. All rights reserved. FreeBSD 4.0-CURRENT #0: Mon Feb 21 09:24:19 EST 2000 vshah@jabberwock:/home/ncvs/FreeBSD/current-src/src/sys/compile/NOSOUND Timecounter "i8254" frequency 1193182 Hz Timecounter "TSC" frequency 398271144 Hz CPU: Pentium II/Pentium II Xeon/Celeron (398.27-MHz 686-class CPU) Origin = "GenuineIntel" Id = 0x651 Stepping = 1 Features=0x183f9ff real memory = 268435456 (262144K bytes) avail memory = 257323008 (251292K bytes) Preloaded elf kernel "kernel.old" at 0xc02d7000. Pentium Pro MTRR support enabled npx0: on motherboard npx0: INT 16 interface pcib0: on motherboard pci0: on pcib0 pcib1: at device 1.0 on pci0 pci1: on pcib1 pci1: NVidia/SGS-Thomson Riva128 graphics accelerator (vendor=0x12d2, dev=0x0018) at 0.0 irq 11 isab0: at device 7.0 on pci0 isa0: on isab0 atapci0: port 0x14a0-0x14af at device 7.1 on pci0 ata0: at 0x1f0 irq 14 on atapci0 ata1: at 0x170 irq 15 on atapci0 pci0: Intel 82371AB/EB (PIIX4) USB controller (vendor=0x8086, dev=0x7112) at 7.2 irq 9 chip1: port 0x7000-0x700f at device 7.3 on pci0 pci0: unknown card (vendor=0x1013, dev=0x6001) at 11.0 irq 9 pci0: unknown card (vendor=0x10b7, dev=0x9055) at 15.0 irq 9 ahc0: port 0x1000-0x10ff mem 0xf4101000-0xf4101fff irq 9 at device 16.0 on pci0 ahc0: aic7880 Wide Channel A, SCSI Id=7, 16/255 SCBs 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 atkbdc0: at port 0x60-0x6f on isa0 atkbd0: irq 1 on atkbdc0 psm0: irq 12 on atkbdc0 psm0: model IntelliMouse, device ID 3 vga0: at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 sc0: on isa0 sc0: VGA <16 virtual consoles, flags=0x200> sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0 sio0: type 16550A unknown0: at port 0x534-0x537,0x388-0x38b,0x220-0x22f irq 5 drq 1,0 on isa0 unknown1: at port 0x200-0x207 on isa0 unknown2: at port 0x120-0x127 on isa0 unknown3: at port 0x330-0x331 irq 10 on isa0 ad0: 8063MB [16383/16/63] at ata0-master using UDMA33 ad3: 9641MB [19590/16/63] at ata1-slave using UDMA33 acd0: CDROM at ata1-master using WDMA2 Waiting 2 seconds for SCSI devices to settle Mounting root from ufs:/dev/ad0s3a da0 at ahc0 bus 0 target 1 lun 0 da0: Fixed Direct Access SCSI-2 device da0: 10.000MB/s transfers (10.000MHz, offset 15), Tagged Queueing Enabled da0: 1030MB (2110812 512 byte sectors: 255H 63S/T 131C) pci0: Intel 82371AB/EB (PIIX4) USB controller (vendor=0x8086, dev=0x7112) at 7.2 irq 9 pci0: unknown card (vendor=0x1013, dev=0x6001) at 11.0 irq 9 xl0: <3Com 3c905B-TX Fast Etherlink XL> port 0x1400-0x147f mem 0xf4102000-0xf410207f irq 9 at device 15.0 on pci0 xl0: Ethernet address: 00:10:4b:94:a3:41 pci1: NVidia/SGS-Thomson Riva128 graphics accelerator (vendor=0x12d2, dev=0x0018) at 0.0 irq 11 miibus0: on xl0 xlphy0: <3Com internal media interface> on miibus0 xlphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto I can't get dmesg's from the panic'ing kernels, since they panic at boot. >How-To-Repeat: Use a Dell XPS R400 w/ onboard soundcard. configure a kernel with options PNPBIOS options pcm0 >Fix: >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message