Date: Wed, 27 Jan 1999 21:39:00 -0700 (MST) From: "Kenneth D. Merry" <ken@plutotech.com> To: smp@FreeBSD.ORG Subject: interesting panic, probably PCI code Message-ID: <199901280439.VAA00675@panzer.plutotech.com>
next in thread | raw e-mail | index | archive | help
--ELM917498340-613-0_ Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit I got this panic tonight while trying to add USB support to my kernel. The code I'm running is from just before the -current/-stable split, probably about January 19th. This doesn't happen when I don't enable USB support in my kernel. Attached is a stack trace, as well as the output of mptable -dmesg -verbose, and my config file. I'll probably look at it some more, but I figured that someone more familiar with the code might see the problem right off. :) Ken -- Kenneth Merry ken@plutotech.com --ELM917498340-613-0_ Content-Type: text/plain; charset=ISO-8859-1 Content-Disposition: attachment; filename=panzer.panic.012799 Content-Description: panzer.panic.012799 Content-Transfer-Encoding: 7bit BIOS basemem: 639K, extmem: 195584K (from 0xe801 call) BIOS extmem (65472K) != RTC extmem (195584K) 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.0-CURRENT #0: Wed Jan 27 21:02:51 MST 1999 ken@panzer.plutotech.com:/usr/home/ken/perforce/cam/sys/compile/panzer Timecounter "i8254" frequency 1193182 Hz CPU: Pentium Pro (686-class CPU) Origin = "GenuineIntel" Id = 0x617 Stepping=7 Features=0xfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV> real memory = 201326592 (196608K bytes) avail memory = 192417792 (187908K bytes) Programming 24 pins in IOAPIC #0 FreeBSD/SMP: Multiprocessor motherboard cpu0 (BSP): apic id: 1, version: 0x00040011, at 0xfee00000 cpu1 (AP): apic id: 0, version: 0x00040011, at 0xfee00000 io0 (APIC): apic id: 2, version: 0x00170011, at 0xfec00000 Preloaded elf kernel "kernel.new" at 0xf0309000. Probing for devices on PCI bus 0: chip0: <Intel 82440FX (Natoma) PCI and memory controller> rev 0x02 on pci0.0.0 chip1: <Intel 82371SB PCI to ISA bridge> rev 0x01 on pci0.1.0 uhci0: <Intel 82371SB USB Host Controller> rev 0x01 int d irq 14 on pci0.1.2 kernel trap 12 with interrupts disabled Fatal trap 12: page fault while in kernel mode mp_lock = 00000002; cpuid = 0; lapic.id = 01000000 fault virtual address = 0x0 fault code = supervisor write, page not present instruction pointer = 0x8:0xf0229814 stack pointer = 0x10:0xf0315e18 frame pointer = 0x10:0xf0315e38 code segment = base 0x0, limit 0xfffff, type 0x1b = DPL 0, pres 1, def32 1, gran 1 processor eflags = resume, IOPL = 0 current process = 0 () interrupt mask = net tty bio cam <- SMP: XXX kernel: type 12 trap, code=0 Stopped at INTREN+0x2c: movl %ecx,0(%edx) db> trace INTREN(e,f020b1c4,f0f64000,f0289118,0) at INTREN+0x2c add_intrdesc(f0f5fec0,4000,f02867c4,f0f64000,e) at add_intrdesc+0x29 intr_connect(f0f5fec0,ffffffff,e,f020b1c4,f0f64000,f0289118,0) at intr_connect+0x2e pci_map_int_right(f091d688,f020b1c4,f0f64000,f0289118,0) at pci_map_int_right+0x31 pci_map_int(f091d688,f020b1c4,f0f64000,f0289118,f091d688,20) at pci_map_int+0x16 uhci_pci_attach(f091d688,0) at uhci_pci_attach+0x75 pci_drvattach(f091d680,f091d680,0,7,f0315f68) at pci_drvattach+0x5f pci_addcfg(f091d680,0,0,31d000,0) at pci_addcfg+0xcf pci_probebus(0,f0264bda,0) at pci_probebus+0x53 pci_probe(0,f0315f98,f022194b,f0315fac,f0143ed3) at pci_probe+0x39 pci_configure(f0315fac,f0143ed3,0,313f00,31d000) at pci_configure+0xa configure(0) at configure+0x1b main(f0315fb8,f015a0fd,f0403000,8000,8000) at main+0x83 begin() at begin+0x55 db> --ELM917498340-613-0_ Content-Type: text/plain; charset=ISO-8859-1 Content-Disposition: attachment; filename=panzer.mptable.012799 Content-Description: panzer.mptable.012799 Content-Transfer-Encoding: 7bit =============================================================================== MPTable, version 2.0.15 looking for EBDA pointer @ 0x040e, found, searching EBDA @ 0x0009fc00 searching CMOS 'top of mem' @ 0x0009f800 (638K) searching default 'top of mem' @ 0x0009fc00 (639K) searching BIOS @ 0x000f0000 MP FPS found in BIOS @ physical addr: 0x000f60b0 ------------------------------------------------------------------------------- MP Floating Pointer Structure: location: BIOS physical address: 0x000f60b0 signature: '_MP_' length: 16 bytes version: 1.4 checksum: 0x8b mode: Virtual Wire ------------------------------------------------------------------------------- MP Config Table Header: physical address: 0x000f5caa signature: 'PCMP' base table length: 300 version: 1.4 checksum: 0x1a OEM ID: 'OEM00000' Product ID: 'PROD00000000' OEM table pointer: 0x00000000 OEM table size: 0 entry count: 29 local APIC address: 0xfee00000 extended table length: 0 extended table checksum: 0 ------------------------------------------------------------------------------- MP Config Base Table Entries: -- Processors: APIC ID Version State Family Model Step Flags 1 0x11 BSP, usable 6 1 7 0xfbff 0 0x11 AP, usable 6 1 7 0xfbff -- Bus: Bus ID Type 0 PCI 1 PCI 2 ISA -- I/O APICs: APIC ID Version State Address 2 0x11 usable 0xfec00000 -- I/O Ints: Type Polarity Trigger Bus ID IRQ APIC ID PIN# ExtINT conforms conforms 2 0 2 0 INT conforms conforms 2 1 2 1 INT conforms conforms 2 0 2 2 INT conforms conforms 2 3 2 3 INT conforms conforms 2 4 2 4 INT conforms conforms 2 5 2 5 INT conforms conforms 2 6 2 6 INT conforms conforms 2 7 2 7 INT conforms conforms 2 8 2 8 INT conforms conforms 2 9 2 9 INT conforms conforms 2 10 2 10 INT conforms conforms 2 11 2 11 INT conforms conforms 2 12 2 12 INT conforms conforms 2 15 2 15 INT active-lo level 1 4:A 2 19 INT active-lo level 1 5:A 2 16 INT active-lo level 0 10:A 2 18 INT active-lo level 0 12:A 2 16 INT active-lo level 0 11:A 2 17 INT active-lo level 0 13:A 2 19 INT active-lo level 0 1:A 2 19 -- Local Ints: Type Polarity Trigger Bus ID IRQ APIC ID PIN# ExtINT active-hi edge 2 0 255 0 NMI active-hi edge 2 0 255 1 ------------------------------------------------------------------------------- # SMP kernel config file options: # Required: options SMP # Symmetric MultiProcessor Kernel options APIC_IO # Symmetric (APIC) I/O # Optional (built-in defaults will work in most cases): #options NCPU=2 # number of CPUs #options NBUS=3 # number of busses #options NAPIC=1 # number of IO APICs #options NINTR=24 # number of INTs ------------------------------------------------------------------------------- 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.0-CURRENT #0: Thu Jan 21 21:10:23 MST 1999 ken@panzer.plutotech.com:/usr/home/ken/perforce/cam/sys/compile/panzer Timecounter "i8254" frequency 1193182 Hz CPU: Pentium Pro (686-class CPU) Origin = "GenuineIntel" Id = 0x617 Stepping=7 Features=0xfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV> real memory = 201326592 (196608K bytes) avail memory = 192475136 (187964K bytes) Programming 24 pins in IOAPIC #0 FreeBSD/SMP: Multiprocessor motherboard cpu0 (BSP): apic id: 1, version: 0x00040011, at 0xfee00000 cpu1 (AP): apic id: 0, version: 0x00040011, at 0xfee00000 io0 (APIC): apic id: 2, version: 0x00170011, at 0xfec00000 Preloaded elf kernel "kernel" at 0xf02fb000. DEVFS: ready for devices Probing for devices on PCI bus 0: chip0: <Intel 82440FX (Natoma) PCI and memory controller> rev 0x02 on pci0.0.0 chip1: <Intel 82371SB PCI to ISA bridge> rev 0x01 on pci0.1.0 chip2: <DEC 21050 PCI-PCI bridge> rev 0x02 on pci0.9.0 de0: <Digital 21140 Fast Ethernet> rev 0x11 int a irq 18 on pci0.10.0 de0: SMC 9332DST 21140 [10-100Mb/s] pass 1.1 de0: address 00:00:c0:5c:d2:be de0: enabling 10baseT port bktr0: <BrookTree 848> rev 0x11 int a irq 17 on pci0.11.0 bti2c0: <bt848 Hard/Soft I2C controller> iicbb0: <I2C generic bit-banging driver> on bti2c0 iicbus0: <Philips I2C bus> on iicbb0 master-only iicsmb0: <I2C to SMB bridge> on iicbus0 smbus0: <System Management Bus> on iicsmb0 smb0: <SMBus general purpose I/O> on smbus0 iic0: <I2C general purpose I/O> on iicbus0 smbus1: <System Management Bus> on bti2c0 smb1: <SMBus general purpose I/O> on smbus1 Hauppauge WinCast/TV, Philips NTSC tuner, dbx stereo. de1: <Digital 21140 Fast Ethernet> rev 0x12 int a irq 16 on pci0.12.0 de1: SMC 9332DST 21140 [10-100Mb/s] pass 1.2 de1: address 00:00:c0:53:3d:e7 de1: enabling 10baseT port vga0: <Matrox MGA 2064W graphics accelerator> rev 0x01 int a irq 19 on pci0.13.0 Probing for devices on PCI bus 1: ahc0: <Adaptec 3940 Ultra SCSI host adapter> rev 0x00 int a irq 19 on pci1.4.0 ahc0: aic7880 Wide Channel A, SCSI Id=7, 16/255 SCBs ahc1: <Adaptec 3940 Ultra SCSI host adapter> rev 0x00 int a irq 16 on pci1.5.0 ahc1: aic7880 Wide Channel B, SCSI Id=7, 16/255 SCBs Probing for PnP devices: CSN 1 Vendor ID: GRV0001 [0x0100561e] Serial 0x00000001 Comp ID: PNPb02f [0x2fb0d041] mss_attach <GusPnP>1 at 0x328 irq 11 dma 6:5 flags 0x15 pcm1 (GusPnP <GusPnP> sn 0x00000001) at 0x328-0x32f irq 11 drq 6 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 0x30 on isa sio0: type 16550A, console sio1 at 0x2f8-0x2ff irq 3 on isa sio1: type 16550A lpt0 at 0x378-0x37f irq 7 on isa lpt0: Interrupt-driven port lp0: TCP/IP capable interface fdc0 at 0x3f0-0x3f7 irq 6 drq 2 on isa fdc0: FIFO enabled, 8 bytes threshold fd0: 1.44MB 3.5in pcm0 not found vga0 at 0x3b0-0x3df maddr 0xa0000 msize 131072 on isa npx0 on motherboard npx0: INT 16 interface DEVFS: ready to run APIC_IO: Testing 8254 interrupt delivery APIC_IO: routing 8254 via pin 2 IP packet filtering initialized, divert enabled, rule-based forwarding disabled, logging limited to 100 packets/entry Waiting 2 seconds for SCSI devices to settle SMP: AP CPU #1 Launched! da0 at ahc0 bus 0 target 0 lun 0 da0: <QUANTUM XP34550W LXY4> Fixed Direct Access SCSI-2 device da0: 40.0MB/s transfers (20.0MHz, offset 8, 16bit), Tagged Queueing Enabled da0: 4341MB (8890760 512 byte sectors: 255H 63S/T 553C) da1 at ahc1 bus 0 target 1 lun 0 da1: <IBM DGVS09U 03B0> Fixed Direct Access SCSI-3 device da1: 40.0MB/s transfers (20.0MHz, offset 8, 16bit), Tagged Queueing Enabled da1: 8705MB (17829870 512 byte sectors: 255H 63S/T 1109C) changing root device to da0s2a ffs_mountfs: superblock updated for soft updates ffs_mountfs: superblock updated for soft updates ffs_mountfs: superblock updated for soft updates cd0 at ahc1 bus 0 target 4 lun 0 cd0: <PLEXTOR CD-ROM PX-12CS 1.00> Removable CD-ROM SCSI-2 device cd0: 10.0MB/s transfers (10.0MHz, offset 15) cd0: cd present [209537 x 2048 byte records] (da0:ahc0:0:0:0): tagged openings now 31 (da0:ahc0:0:0:0): tagged openings now 30 (da1:ahc1:0:1:0): tagged openings now 64 (da0:ahc0:0:0:0): tagged openings now 29 (da0:ahc0:0:0:0): tagged openings now 28 (da0:ahc0:0:0:0): tagged openings now 27 (da0:ahc0:0:0:0): tagged openings now 26 (da0:ahc0:0:0:0): tagged openings now 25 (da0:ahc0:0:0:0): tagged openings now 24 =============================================================================== --ELM917498340-613-0_ Content-Type: text/plain; charset=ISO-8859-1 Content-Disposition: attachment; filename=panzer.config.012799 Content-Description: panzer.config.012799 Content-Transfer-Encoding: 7bit # # GENERIC -- Generic machine with WD/AHx/NCR/BTx family disks # # For more information read the handbook part System Administration -> # Configuring the FreeBSD Kernel -> The Configuration File. # The handbook is available in /usr/share/doc/handbook or online as # latest version from the FreeBSD World Wide Web server # <URL:http://www.FreeBSD.ORG/> # # An exhaustive list of options and more detailed explanations of the # device lines is present in the ./LINT configuration file. If you are # in doubt as to the purpose or necessity of a line, check first in LINT. # # $Id: GENERIC,v 1.77.2.1 1996/12/21 02:10:50 se Exp $ machine "i386" # cpu "I386_CPU" # cpu "I486_CPU" cpu "I586_CPU" cpu "I686_CPU" ident panzer maxusers 128 # options MATH_EMULATE #Support for x87 emulation options INET #InterNETworking options FFS #Berkeley Fast Filesystem options NFS #Network Filesystem options MSDOSFS #MSDOS Filesystem options "CD9660" #ISO 9660 Filesystem options PROCFS #Process filesystem options "COMPAT_43" #Compatible with BSD 4.3 [KEEP THIS!] # options SCSI_DELAY=15 #Be pessimistic about Joe SCSI device options UCONSOLE #Allow users to grab the console # options USERCONFIG #boot -c editor # options VISUAL_USERCONFIG #visual boot -c editor #options CHILD_MAX=128 #options OPEN_MAX=128 options SYSVSHM options SYSVSEM options SYSVMSG options KTRACE options MROUTING options IPFIREWALL options IPFIREWALL_VERBOSE options "IPFIREWALL_VERBOSE_LIMIT=100" options IPDIVERT #options DEVFS #options "MAXMEM=(192*1024)" options "VM86" options MAXCONS=16 options AHC_ALLOW_MEMIO options SMP # Symmetric MultiProcessor Kernel #options SMP_AUTOSTART # crank up SMP automagically options APIC_IO # Symmetric (APIC) I/O options NCPU=2 # number of CPUs options NBUS=3 # number of busses options NAPIC=1 # number of IO APICs options NINTR=24 # number of INTs #options SMP_INVLTLB # options COMPAT_LINUX options DDB options "MSGBUF_SIZE=32768" options CONSPEED=115200 options SOFTUPDATES config kernel root on da0 controller isa0 # controller eisa0 controller pci0 controller fdc0 at isa? port "IO_FD1" bio irq 6 drq 2 vector fdintr disk fd0 at fdc0 drive 0 disk fd1 at fdc0 drive 1 # A single entry for any of these controllers (ncr, ahb, ahc, amd) is # sufficient for any number of installed devices. controller ahc0 #options "AHC_FORCE_PIO" # Some motherboards choke on MemI/O, # so use PIO in the ahc driver in the # generic kernel. controller scbus0 device da0 device sa0 device cd0 #Only need one of these, the code dynamically grows # Ken's passthrough SCSI driver device pass0 controller pnp0 device pcm0 at isa? vector pcmintr #controller snd0 #device gus0 at isa? vector gusintr # device gus0 at isa? port 0x220 irq 11 drq 1 flags 0x3 vector gusintr # *sigh* hard-code the card to a Hauppauge, tuner to Philips NTSC options OVERRIDE_CARD=2 options OVERRIDE_TUNER=4 # Brooktree 848 driver device bktr0 controller smbus0 device smb0 at smbus? controller iicbus0 controller iicbb0 device ic0 at iicbus? device iic0 at iicbus? device iicsmb0 at iicbus? # atkbdc0 controlls both the keyboard and the PS/2 mouse controller atkbdc0 at isa? port IO_KBD tty device atkbd0 at isa? tty irq 1 device psm0 at isa? tty irq 12 device vga0 at isa? port ? conflicts # syscons is the default console driver, resembling an SCO console device sc0 at isa? tty # Mandatory, don't remove device npx0 at isa? port "IO_NPX" irq 13 vector npxintr #device sio0 at isa? port "IO_COM1" tty irq 4 vector siointr device sio0 at isa? port "IO_COM1" tty flags 0x30 irq 4 vector siointr device sio1 at isa? port "IO_COM2" tty irq 3 vector siointr device lpt0 at isa? port? tty irq 7 vector lptintr device lpt1 at isa? disable port? tty device psm0 at isa? port "IO_KBD" conflicts tty irq 12 vector psmintr # USB support controller uhci0 controller ohci0 controller usb0 # # for the moment we have to specify the priorities of the device # drivers explicitly by the ordering in the list below. This will # be changed in the future. # device ums0 device ukbd0 device ulpt0 device uhub0 device ucom0 device umodem0 device hid0 device ugen0 # #options USB_DEBUG #options USBVERBOSE # Order is important here due to intrusive probes, do *not* alphabetize # this list of network interfaces until the probes have been fixed. # Right now it appears that the ie0 must be probed before ep0. See # revision 1.20 of this file. device de0 # device fxp0 # device vx0 # device ed0 at isa? port 0x280 net irq 5 iomem 0xd8000 vector edintr pseudo-device loop pseudo-device ether pseudo-device sl 1 # ijppp uses tun instead of ppp device pseudo-device ppp 1 pseudo-device tun 3 pseudo-device pty 128 pseudo-device gzip # Exec gzipped a.out's pseudo-device bpfilter 4 pseudo-device snp 3 pseudo-device vn --ELM917498340-613-0_-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-smp" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199901280439.VAA00675>