Re: if_em panic

From: Julian Elischer <julian_at_elischer.org>
Date: Thu, 12 Jan 2006 19:05:19 -0800
Huang wen hui wrote:

>hi,
>when I load if_em on TP42P got this panic:
>  
>

looks like the first interrupt occurs before the driver has finished
setting itself up..
(just a first impression).
Scott'll probably nail it.

I'm guessing it works fine if compiled in..


>#kldload if_em
>[thread pid 1300 tid 100060 ]
>Stopped at em_intr_fast+0xb: movl 0x4(%eax),%edx
>db>
>db> bt
>Tracing pid 1300 tid 100060 td 0xc673b340
>em_intr_fast(c6b07800) at em_intr_fast+0xb
>intr_execute_handlers(c096d718,e8d338b8,c673b340,c096d514,c096d718) at
>intr_execute_handlers+0xe1
>atpic_handle_intr(b) at atpic_handle_intr+0x96
>Xatpic_intr11() at Xatpic_intr11+0x20
>--- interrupt, eip = 0xc0853d23, esp = 0xe8d338f8, ebp = 0xe8d338fc ---
>spinlock_exit(c096d718,0,c6b07948,e8d3392c,c085067d) at spinlock_exit+0x27
>atpic_enable_source(c096d718,c096d718,c096d718) at atpic_enable_source+0x7f
>intr_add_handler(c64d83c0,b,c6c55418,c6b07800,84) at intr_add_handler+0x59
>nexus_setup_intr(c6390780,c6505480,c6afdd00,84,c6c55418,c6b07800,c6b07948)
>at nexus_setup_intr+0x66
>bus_generic_setup_intr(c6484200,c6505480,c6afdd00,84,c6c55418,c6b07800,c6b07948)
>at bus_generic_setup_intr+0x76
>bus_generic_setup_intr(c6484880,c6505480,c6afdd00,84,c6c55418,c6b07800,c6b07948)
>at bus_generic_setup_intr+0x76
>bus_generic_setup_intr(c64d0100,c6505480,c6afdd00,84,c6c55418,c6b07800,c6b07948)
>at bus_generic_setup_intr+0x76
>bus_generic_setup_intr(c64d1000,c6505480,c6afdd00,84,c6c55418,c6b07800,c6b07948)
>at bus_generic_setup_intr+0x76
>bus_generic_setup_intr(c6505800,c6505480,c6afdd00,84,c6c55418,c6b07800,c6b07948)t
>bus_generic_setup_intr+0x76
>bus_setup_intr(c6505480,c6afdd00,84,c6c55418,c6b07800) at
>bus_setup_intr+0x99
>em_attach(c6505480) at em_attach+0x787
>device_attach(c6505480,c6505480,c6505480,2,c64f5000) at device_attach+0x58
>device_probe_and_attach(c6505480,c6505480,c64f5000) at
>device_probe_and_attach+0xc4
>pci_driver_added(c6505800,c6c63b08) at pci_driver_added+0xd1
>devclass_add_driver(c6387e40,c6c63b08,c6aa9700,c6c63ae8,c6863cc0) at
>devclass_add_driver+0xb7
>driver_module_handler(c6aa9700,0,c6c63af4,c0991040,0) at
>driver_module_handler+0x59
>module_register_init(c6c63ae8) at module_register_init+0x4b
>linker_file_sysinit(c6b94200,c6b94200,1,c6b94200,c6863cc0) at
>linker_file_sysinit+0x7d
>linker_load_file(c6863cc0,e8d33c50,400,0,c64e7c00) at linker_load_file+0xce
>linker_load_module(0,c64e7c00,0,0,e8d33c7c) at linker_load_module+0xa3
>kldload(c673b340,e8d33d04,1,1,296) at kldload+0xe7
>syscall(3b,3b,3b,0,bfbfed54) at syscall+0x2ee
>Xint0x80_syscall() at Xint0x80_syscall+0x1f
>--- syscall (304, FreeBSD ELF32, kldload), eip = 0x280c41cb, esp =
>0xbfbfeccc, ebp = 0xbfbfed08 ---
>
>#dmesg
>Copyright (c) 1992-2006 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 7.0-CURRENT #27: Thu Jan 12 23:40:06 CST 2006
>root_at_tp.gddsn.org.cn:/usr/obj/usr/src/sys/IBM01
>Timecounter "i8254" frequency 1193182 Hz quality 0
>CPU: Intel(R) Pentium(R) M processor 1.80GHz (598.06-MHz 686-class CPU)
>Origin = "GenuineIntel" Id = 0x6d6 Stepping = 6
>Features=0xafe9f9bf<FPU,VME,DE,PSE,TSC,MSR,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,C
>LFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,TM,PBE>
>Features2=0x180<EST,TM2>
>real memory = 2146828288 (2047 MB)
>avail memory = 2095865856 (1998 MB)
>ath_hal: 0.9.14.9 (AR5210, AR5211, AR5212, RF5111, RF5112, RF2413)
>npx0: [FAST]
>npx0: <math processor> on motherboard
>npx0: INT 16 interface
>acpi0: <IBM TP-1R> on motherboard
>acpi_ec0: <Embedded Controller: GPE 0x1c, ECDT> port 0x62,0x66 on acpi0
>acpi0: Power Button (fixed)
>Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000
>acpi_timer0: <24-bit timer at 3.579545MHz> port 0x1008-0x100b on acpi0
>cpu0: <ACPI CPU> on acpi0
>acpi_perf0: <ACPI CPU Frequency Control> on cpu0
>acpi_throttle0: <ACPI CPU Throttling> on cpu0
>acpi_lid0: <Control Method Lid Switch> on acpi0
>acpi_button0: <Sleep Button> on acpi0
>pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
>pci0: <ACPI PCI bus> on pcib0
>agp0: <Intel 82855 host to AGP bridge> on hostb0
>pcib1: <ACPI PCI-PCI bridge> at device 1.0 on pci0
>pci1: <ACPI PCI bus> on pcib1
>vgapci0: <VGA-compatible display> port 0x3000-0x30ff mem
>0xe0000000-0xe7ffffff,0 xc0100000-0xc010ffff irq 11 at device 0.0 on pci1
>uhci0: <Intel 82801DB (ICH4) USB controller USB-A> port 0x1800-0x181f
>irq 11 at device 29.0 on pci0
>uhci0: [GIANT-LOCKED]
>usb0: <Intel 82801DB (ICH4) USB controller USB-A> 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
>uhci1: <Intel 82801DB (ICH4) USB controller USB-B> port 0x1820-0x183f
>irq 11 at device 29.1 on pci0
>uhci1: [GIANT-LOCKED]
>usb1: <Intel 82801DB (ICH4) USB controller USB-B> on uhci1
>usb1: USB revision 1.0
>uhub1: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
>uhub1: 2 ports with 2 removable, self powered
>uhci2: <Intel 82801DB (ICH4) USB controller USB-C> port 0x1840-0x185f
>irq 11 at device 29.2 on pci0
>uhci2: [GIANT-LOCKED]
>usb2: <Intel 82801DB (ICH4) USB controller USB-C> on uhci2
>usb2: USB revision 1.0
>uhub2: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
>uhub2: 2 ports with 2 removable, self powered
>ehci0: <Intel 82801DB/L/M (ICH4) USB 2.0 controller> mem
>0xc0000000-0xc00003ff i rq 11 at device 29.7 on pci0
>ehci0: [GIANT-LOCKED]
>usb3: EHCI version 1.0
>usb3: companion controllers, 2 ports each: usb0 usb1 usb2
>usb3: <Intel 82801DB/L/M (ICH4) USB 2.0 controller> on ehci0
>usb3: USB revision 2.0
>uhub3: Intel EHCI root hub, class 9/0, rev 2.00/1.00, addr 1
>uhub3: 6 ports with 6 removable, self powered
>pcib2: <ACPI PCI-PCI bridge> at device 30.0 on pci0
>pci2: <ACPI PCI bus> on pcib2
>cbb0: <PCI-CardBus Bridge> mem 0xb0000000-0xb0000fff irq 11 at device
>0.0 on pci 2
>cardbus0: <CardBus bus> on cbb0
>pccard0: <16-bit PCCard bus> on cbb0
>cbb1: <PCI-CardBus Bridge> mem 0xb1000000-0xb1000fff irq 11 at device
>0.1 on pci 2
>cardbus1: <CardBus bus> on cbb1
>pccard1: <16-bit PCCard bus> on cbb1
>pci2: <network, ethernet> at device 1.0 (no driver attached)
>ath0: <Atheros 5212> mem 0xc0210000-0xc021ffff irq 11 at device 2.0 on pci2
>ath0: Ethernet address: 00:05:4e:4d:2a:7b
>ath0: mac 5.6 phy 4.1 5ghz radio 1.7 2ghz radio 2.3
>isab0: <PCI-ISA bridge> at device 31.0 on pci0
>isa0: <ISA bus> on isab0
>atapci0: <Intel ICH4 UDMA100 controller> port
>0x1f0-0x1f7,0x3f6,0x170-0x177,0x37 6,0x1860-0x186f at device 31.1 on pci0
>ata0: <ATA channel 0> on atapci0
>ata1: <ATA channel 1> on atapci0
>ichsmb0: <Intel 82801DC (ICH4) SMBus controller> port 0x1880-0x189f irq
>11 at de vice 31.3 on pci0
>ichsmb0: [GIANT-LOCKED]
>smbus0: <System Management Bus> on ichsmb0
>smb0: <SMBus generic I/O> on smbus0
>pcm0: <Intel ICH4 (82801DB)> port 0x1c00-0x1cff,0x18c0-0x18ff mem
>0xc0000c00-0xc 0000dff,0xc0000800-0xc00008ff irq 11 at device 31.5 on pci0
>pcm0: <Analog Devices AD1981B AC97 Codec>
>pci0: <simple comms, generic modem> at device 31.6 (no driver attached)
>acpi_tz0: <Thermal Zone> on acpi0
>atkbdc0: <Keyboard controller (i8042)> port 0x60,0x64 irq 1 on acpi0
>atkbd0: <AT Keyboard> irq 1 on atkbdc0
>kbd0 at atkbd0
>atkbd0: [GIANT-LOCKED]
>psm0: <PS/2 Mouse> irq 12 on atkbdc0
>psm0: [GIANT-LOCKED]
>psm0: model Generic PS/2 mouse, device ID 0
>sio0: configured irq 4 not in bitmap of probed irqs 0
>sio0: port may not be enabled
>sio0: <16550A-compatible COM port> port 0x3f8-0x3ff irq 4 flags 0x10 on
>acpi0
>sio0: type 8250 or not responding
>ppc0: <Standard parallel printer port> port 0x378-0x37f irq 7 on acpi0
>ppc0: Generic chipset (NIBBLE-only) in COMPATIBLE mode
>ppbus0: <Parallel port bus> on ppc0
>plip0: <PLIP network interface> on ppbus0
>lpt0: <Printer> on ppbus0
>lpt0: Interrupt-driven port
>ppi0: <Parallel I/O> on ppbus0
>sio1: configured irq 3 not in bitmap of probed irqs 0
>sio1: port may not be enabled
>battery0: <ACPI Control Method Battery> on acpi0
>acpi_acad0: <AC Adapter> on acpi0
>sio1: configured irq 3 not in bitmap of probed irqs 0
>sio1: port may not be enabled
>pmtimer0 on isa0
>orm0: <ISA Option ROMs> at iomem
>0xd0000-0xd0fff,0xd1000-0xd1fff,0xdc000-0xdffff pnpid ORM0000 on isa0
>sc0: <System console> at flags 0x100 on isa0
>sc0: VGA <16 virtual consoles, flags=0x300>
>vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
>sio1: configured irq 3 not in bitmap of probed irqs 0
>sio1: port may not be enabled
>ugen0: vendor 0x1668 product 0x2441, rev 1.10/5.46, addr 2
>Timecounter "TSC" frequency 598061766 Hz quality 800
>Timecounters tick every 1.000 msec
>ad0: 57231MB <HTS726060M9AT00 MH4OA6GA> at ata0-master UDMA100
>cardbus1: CIS pointer is 0!
>fwohci0: <Texas Instruments TSB43AB23> mem
>0xc0240000-0xc02407ff,0xc0244000-0xc0 247fff at device 0.0 on cardbus1
>fwohci0: OHCI version 1.10 (ROM=1)
>fwohci0: No. of Isochronous channels is 4.
>fwohci0: EUI64 00:00:30:bd:00:00:00:00
>fwohci0: Phy 1394a available S400, 3 ports.
>fwohci0: Link S400, max_rec 2048 bytes.
>firewire0: <IEEE1394(FireWire) bus> on fwohci0
>dcons_crom0: <dcons configuration ROM> on firewire0
>dcons_crom0: bus_addr 0x7d7b0000
>fwip0: <IP over FireWire> on firewire0
>fwip0: Firewire address: 00:00:30:bd:00:00:00:00 _at_ 0xfffe00000000, S400,
>maxrec 2048
>sbp0: <SBP-2/SCSI over FireWire> on firewire0
>fwohci0: Initiate bus reset
>fwohci0: node_id=0xc000ffc0, gen=1, CYCLEMASTER mode
>firewire0: 1 nodes, maxhop <= 0, cable IRM = 0 (me)
>firewire0: bus manager 0 (me)
>fwohci0: BUS reset
>fwohci0: BUS reset
>fwohci0: node_id=0x8000ffc0, gen=2, non CYCLEMASTER mode
>firewire0: 2 nodes, maxhop <= 1, cable IRM = 1
>firewire0: bus manager 1
>firewire0: New S400 device ID:0001b700000104a8
>acd0: DVDR <MATSHITADVD-RAM UJ-812/K104> at ata1-master UDMA33
>Trying to mount root from ufs:/dev/ad0s1a
>WARNING: / was not properly dismounted
>WARNING: /tmp was not properly dismounted
>/tmp: mount pending error: blocks 16 files 4
>WARNING: /var was not properly dismounted
>/var: mount pending error: blocks 140 files 14
>WARNING: /usr was not properly dismounted
>/usr: mount pending error: blocks 4 files 1
>WARNING: /home was not properly dismounted
>fwohci0: BUS reset
>fwohci0: node_id=0xc000ffc0, gen=3, CYCLEMASTER mode
>firewire0: 1 nodes, maxhop <= 0, cable IRM = 0 (me)
>firewire0: bus manager 0 (me)
>drm0: <ATI Radeon FireGL T2 128> on vgapci0
>info: [drm] AGP at 0xd0000000 256MB
>info: [drm] Initialized radeon 1.19.0 20050911
>info: [drm] Loading R300 Microcode
>fwohci0: device physically ejected?
>dcons_crom0: detached
>fwip0: detached
>sbp0: detached
>firewire0: detached
>fwohci0: detached
>ath0: link state changed to UP
>info: [drm] Loading R300 Microcode
>
>
>_______________________________________________
>freebsd-current_at_freebsd.org mailing list
>http://lists.freebsd.org/mailman/listinfo/freebsd-current
>To unsubscribe, send any mail to "freebsd-current-unsubscribe_at_freebsd.org"
>  
>
Received on Fri Jan 13 2006 - 02:05:19 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:50 UTC