cvs commit: src/sys/dev/bce if_bce.c src/sys/dev/em if_em.c if_em.h src/sys/dev/mpt mpt.h mpt_pci.c

Pawel Worach pawel.worach at gmail.com
Thu Nov 16 20:29:11 UTC 2006


On 11/16/06, John Baldwin <jhb at freebsd.org> wrote:
> On Thursday 16 November 2006 13:36, Pawel Worach wrote:
> > On 11/15/06, John Baldwin <jhb at freebsd.org> wrote:
> > > jhb         2006-11-15 20:04:57 UTC
> > >
> > >  FreeBSD src repository
> > >
> > >  Modified files:
> > >    sys/dev/bce          if_bce.c
> > >    sys/dev/em           if_em.c if_em.h
> > >    sys/dev/mpt          mpt.h mpt_pci.c
> > >  Log:
> > >  Add MSI support to em(4), bce(4), and mpt(4).  For now, we only support
> > >  devices that support a maximum of 1 message, and we use that 1 message
> > >  instead of the INTx rid 0 IRQ with the same interrupt handler, etc.
> > >
> >
> > Hi John,
> >
> > This seems to cause an NMI here on a IBM x345 box, boot -v below.
> > (It's frozen for about 1-2 seconds before the NMI fires)
> >
> > OK boot -v
> > /boot/kernel/acpi.ko text=0x4d134 data=0x2540+0x1010
> > syms=[0x4+0x7cb0+0x4+0xaa13]
> > GDB: no debug ports present
> > KDB: debugger backends: ddb
> > KDB: current backend: ddb
> > SMAP type=01 base=0000000000000000 len=000000000009d400
> > SMAP type=02 base=000000000009d400 len=0000000000002c00
> > SMAP type=02 base=00000000000e0000 len=0000000000020000
> > SMAP type=01 base=0000000000100000 len=000000003fedb2c0
> > SMAP type=02 base=000000003ffe0000 len=0000000000020000
> > SMAP type=03 base=000000003ffdb2c0 len=0000000000004d40
> > SMAP type=02 base=00000000fec00000 len=0000000001400000
> > 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 is a registered trademark of The FreeBSD Foundation.
> > FreeBSD 7.0-CURRENT #0: Thu Nov 16 14:42:47 CET 2006
> >     root at zero:/usr/obj/usr/src/sys/ZERO
> > Using 16 colors for the VM-PQ tuning (512, 8)
> > Preloaded elf kernel "/boot/kernel/kernel" at 0xc08e2000.
> > Preloaded elf module "/boot/kernel/acpi.ko" at 0xc08e216c.
> > MP Configuration Table version 1.4 found at 0xc009e2a0
> > Table 'FACP' at 0x3ffdff00
> > Table 'APIC' at 0x3ffdfe40
> > MADT: Found table at 0x3ffdfe40
> > APIC: Using the MADT enumerator.
> > MADT: Found CPU APIC ID 0 ACPI ID 0: enabled
> > SMP: Added CPU 0 (AP)
> > MADT: Found CPU APIC ID 6 ACPI ID 1: enabled
> > SMP: Added CPU 6 (AP)
> > MADT: Found CPU APIC ID 1 ACPI ID 2: enabled
> > SMP: Added CPU 1 (AP)
> > MADT: Found CPU APIC ID 7 ACPI ID 3: enabled
> > SMP: Added CPU 7 (AP)
> > INTR: Adding local APIC 0 as a target
> > ACPI APIC Table: <IBM    SERONYXP>
> > Calibrating clock(s) ... i8254 clock: 1193166 Hz
> > CLK_USE_I8254_CALIBRATION not specified - using default frequency
> > Timecounter "i8254" frequency 1193182 Hz quality 0
> > Calibrating TSC clock ... TSC clock: 2793899688 Hz
> > CPU: Intel(R) Xeon(TM) CPU 2.80GHz (2793.90-MHz 686-class CPU)
> >   Origin = "GenuineIntel"  Id = 0xf29  Stepping = 9
> >
> Features=0xbfebfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE>
> >   Features2=0x4400<CNTX-ID,XTPR>
> >   Logical CPUs per core: 2
> >
> > Instruction TLB: 4 KB, 2 MB or 4 MB pages, fully associative, 64 entries
> > Data TLB: 4 KB or 4 MB pages, fully associative, 64 entries
> > 1st-level data cache: 8 KB, 4-way set associative, sectored cache, 64
> > byte line size
> > Trace cache: 12K-uops, 8-way set associative
> > 2nd-level cache: 512 KB, 8-way set associative, sectored cache, 64
> > byte line size
> > real memory  = 1073590272 (1023 MB)
> > Physical memory chunk(s):
> > 0x0000000000001000 - 0x000000000009cfff, 638976 bytes (156 pages)
> > 0x0000000000100000 - 0x00000000003fffff, 3145728 bytes (768 pages)
> > 0x0000000000c28000 - 0x000000003ed92fff, 1041674240 bytes (254315 pages)
> > avail memory = 1041301504 (993 MB)
> > INTR: Adding local APIC 6 as a target
> > FreeBSD/SMP: Multiprocessor System Detected: 4 CPUs
> >  cpu0 (BSP): APIC ID:  0
> >  cpu1 (AP): APIC ID:  1
> >  cpu2 (AP): APIC ID:  6
> >  cpu3 (AP): APIC ID:  7
> > bios32: Found BIOS32 Service Directory header at 0xc00fd790
> > bios32: Entry = 0xfd7a1 (c00fd7a1)  Rev = 0  Len = 1
> > pcibios: PCI BIOS entry at 0xf0000+0xd7dc
> > pnpbios: Found PnP BIOS data at 0xc00fdf90
> > pnpbios: Entry = f0000:440f  Rev = 1.0
> > Other BIOS signatures found:
> > APIC: CPU 0 has ACPI ID 0
> > APIC: CPU 1 has ACPI ID 2
> > APIC: CPU 2 has ACPI ID 1
> > APIC: CPU 3 has ACPI ID 3
> > Security auditing service present
> > BSM auditing present
> > MADT: Found IO APIC ID 14, Interrupt 0 at 0xfec00000
> > ioapic0: Routing external 8259A's -> intpin 0
> > ioapic0: intpin 0 -> ExtINT (edge, high)
> > ioapic0: intpin 1 -> ISA IRQ 1 (edge, high)
> > ioapic0: intpin 2 -> ISA IRQ 2 (edge, high)
> > ioapic0: intpin 3 -> ISA IRQ 3 (edge, high)
> > ioapic0: intpin 4 -> ISA IRQ 4 (edge, high)
> > ioapic0: intpin 5 -> ISA IRQ 5 (edge, high)
> > ioapic0: intpin 6 -> ISA IRQ 6 (edge, high)
> > ioapic0: intpin 7 -> ISA IRQ 7 (edge, high)
> > ioapic0: intpin 8 -> ISA IRQ 8 (edge, high)
> > ioapic0: intpin 9 -> ISA IRQ 9 (edge, high)
> > ioapic0: intpin 10 -> ISA IRQ 10 (edge, high)
> > ioapic0: intpin 11 -> ISA IRQ 11 (edge, high)
> > ioapic0: intpin 12 -> ISA IRQ 12 (edge, high)
> > ioapic0: intpin 13 -> ISA IRQ 13 (edge, high)
> > ioapic0: intpin 14 -> ISA IRQ 14 (edge, high)
> > ioapic0: intpin 15 -> ISA IRQ 15 (edge, high)
> > MADT: Found IO APIC ID 13, Interrupt 16 at 0xfec01000
> > ioapic1: intpin 0 -> PCI IRQ 16 (level, low)
> > ioapic1: intpin 1 -> PCI IRQ 17 (level, low)
> > ioapic1: intpin 2 -> PCI IRQ 18 (level, low)
> > ioapic1: intpin 3 -> PCI IRQ 19 (level, low)
> > ioapic1: intpin 4 -> PCI IRQ 20 (level, low)
> > ioapic1: intpin 5 -> PCI IRQ 21 (level, low)
> > ioapic1: intpin 6 -> PCI IRQ 22 (level, low)
> > ioapic1: intpin 7 -> PCI IRQ 23 (level, low)
> > ioapic1: intpin 8 -> PCI IRQ 24 (level, low)
> > ioapic1: intpin 9 -> PCI IRQ 25 (level, low)
> > ioapic1: intpin 10 -> PCI IRQ 26 (level, low)
> > ioapic1: intpin 11 -> PCI IRQ 27 (level, low)
> > ioapic1: intpin 12 -> PCI IRQ 28 (level, low)
> > ioapic1: intpin 13 -> PCI IRQ 29 (level, low)
> > ioapic1: intpin 14 -> PCI IRQ 30 (level, low)
> > ioapic1: intpin 15 -> PCI IRQ 31 (level, low)
> > MADT: Found IO APIC ID 12, Interrupt 32 at 0xfec02000
> > ioapic2: intpin 0 -> PCI IRQ 32 (level, low)
> > ioapic2: intpin 1 -> PCI IRQ 33 (level, low)
> > ioapic2: intpin 2 -> PCI IRQ 34 (level, low)
> > ioapic2: intpin 3 -> PCI IRQ 35 (level, low)
> > ioapic2: intpin 4 -> PCI IRQ 36 (level, low)
> > ioapic2: intpin 5 -> PCI IRQ 37 (level, low)
> > ioapic2: intpin 6 -> PCI IRQ 38 (level, low)
> > ioapic2: intpin 7 -> PCI IRQ 39 (level, low)
> > ioapic2: intpin 8 -> PCI IRQ 40 (level, low)
> > ioapic2: intpin 9 -> PCI IRQ 41 (level, low)
> > ioapic2: intpin 10 -> PCI IRQ 42 (level, low)
> > ioapic2: intpin 11 -> PCI IRQ 43 (level, low)
> > ioapic2: intpin 12 -> PCI IRQ 44 (level, low)
> > ioapic2: intpin 13 -> PCI IRQ 45 (level, low)
> > ioapic2: intpin 14 -> PCI IRQ 46 (level, low)
> > ioapic2: intpin 15 -> PCI IRQ 47 (level, low)
> > MADT: Interrupt override: source 0, irq 2
> > ioapic0: Routing IRQ 0 -> intpin 2
> > ioapic0: intpin 2 trigger: edge
> > ioapic0: intpin 2 polarity: high
> > lapic0: Routing NMI -> LINT1
> > MADT: Ignoring local NMI routed to ACPI CPU 6
> > lapic6: Routing NMI -> LINT1
> > MADT: Ignoring local NMI routed to ACPI CPU 7
> > MADT: Forcing active-low polarity and level trigger for SCI
> > ioapic0: intpin 3 polarity: low
> > ioapic0: intpin 3 trigger: level
> > ioapic2 <Version 1.1> irqs 32-47 on motherboard
> > ioapic1 <Version 1.1> irqs 16-31 on motherboard
> > ioapic0 <Version 1.1> irqs 0-15 on motherboard
> > cpu0 BSP:
> >      ID: 0x00000000   VER: 0x00050014 LDR: 0x00000000 DFR: 0xffffffff
> >   lint0: 0x00010700 lint1: 0x00000400 TPR: 0x00000000 SVR: 0x000001ff
> >   timer: 0x000100ef therm: 0x00010000 err: 0x00010000 pcm: 0x00010000
> > null: <null device, zero device>
> > random: <entropy source, Software, Yarrow>
> > mem: <memory>
> > Pentium Pro MTRR support enabled
> > io: <I/O>
> > npx0: INT 16 interface
> > acpi0: <IBM SERONYXP> on motherboard
> > ioapic0: routing intpin 3 (ISA IRQ 3) to vector 48
> > acpi0: [MPSAFE]
> > pci_open(1):    mode 1 addr port (0x0cf8) is 0x80002800
> > pci_open(1a):   mode1res=0x80000000 (0x80000000)
> > pci_cfgcheck:   device 0 [class=060000] [hdr=80] is there (id=00141166)
> > pcibios: BIOS version 2.10
> > AcpiOsDerivePciId: bus 0 dev 15 func 2
> > acpi0: Power Button (fixed)
> > acpi0: wakeup code va 0xd73cb000 pa 0x9c000
> > AcpiOsDerivePciId: bus 0 dev 0 func 0
> > AcpiOsDerivePciId: bus 0 dev 16 func 0
> > AcpiOsDerivePciId: bus 0 dev 16 func 2
> > AcpiOsDerivePciId: bus 0 dev 17 func 0
> > AcpiOsDerivePciId: bus 0 dev 17 func 2
> > acpi0: reservation of 460, 2 (4) failed
> > ACPI timer: 1/2 0/3 1/2 1/2 0/3 1/2 1/2 1/2 0/3 1/2 -> 7
> > Timecounter "ACPI-safe" frequency 3579545 Hz quality 1000
> > acpi_timer0: <32-bit timer at 3.579545MHz> port 0x488-0x48b on acpi0
> > pci_link0:        Index  IRQ  Rtd  Ref  IRQs
> >   Initial Probe       0  255   N     0  none
> >   Validation          0  255   N     0  none
> >   After Disable       0  255   N     0  none
> > pci_link1:        Index  IRQ  Rtd  Ref  IRQs
> >   Initial Probe       0  255   N     0  none
> >   Validation          0  255   N     0  none
> >   After Disable       0  255   N     0  none
> > pci_link2:        Index  IRQ  Rtd  Ref  IRQs
> >   Initial Probe       0  255   N     0  none
> >   Validation          0  255   N     0  none
> >   After Disable       0  255   N     0  none
> > pci_link3:        Index  IRQ  Rtd  Ref  IRQs
> >   Initial Probe       0  255   N     0  none
> >   Validation          0  255   N     0  none
> >   After Disable       0  255   N     0  none
> > pci_link4:        Index  IRQ  Rtd  Ref  IRQs
> >   Initial Probe       0   10   N     0  10
> >   Validation          0   10   N     0  10
> >   After Disable       0  255   N     0  10
> > pci_link5:        Index  IRQ  Rtd  Ref  IRQs
> >   Initial Probe       0  255   N     0  none
> >   Validation          0  255   N     0  none
> >   After Disable       0  255   N     0  none
> > pci_link6:        Index  IRQ  Rtd  Ref  IRQs
> >   Initial Probe       0  255   N     0  none
> >   Validation          0  255   N     0  none
> >   After Disable       0  255   N     0  none
> > pci_link7:        Index  IRQ  Rtd  Ref  IRQs
> >   Initial Probe       0  255   N     0  none
> >   Validation          0  255   N     0  none
> >   After Disable       0  255   N     0  none
> > pci_link8:        Index  IRQ  Rtd  Ref  IRQs
> >   Initial Probe       0  255   N     0  none
> >   Validation          0  255   N     0  none
> >   After Disable       0  255   N     0  none
> > pci_link9:        Index  IRQ  Rtd  Ref  IRQs
> >   Initial Probe       0  255   N     0  none
> >   Validation          0  255   N     0  none
> >   After Disable       0  255   N     0  none
> > pci_link10:       Index  IRQ  Rtd  Ref  IRQs
> >   Initial Probe       0   10   N     0  10
> >   Validation          0   10   N     0  10
> >   After Disable       0  255   N     0  10
> > pci_link11:       Index  IRQ  Rtd  Ref  IRQs
> >   Initial Probe       0    9   N     0  9
> >   Validation          0    9   N     0  9
> >   After Disable       0  255   N     0  9
> > pci_link12:       Index  IRQ  Rtd  Ref  IRQs
> >   Initial Probe       0    9   N     0  9
> >   Validation          0    9   N     0  9
> >   After Disable       0  255   N     0  9
> > pci_link13:       Index  IRQ  Rtd  Ref  IRQs
> >   Initial Probe       0   11   N     0  11
> >   Validation          0   11   N     0  11
> >   After Disable       0  255   N     0  11
> > pci_link14:       Index  IRQ  Rtd  Ref  IRQs
> >   Initial Probe       0    3   N     0  3
> >   Validation          0    3   N     0  3
> >   After Disable       0  255   N     0  3
> > pci_link15:       Index  IRQ  Rtd  Ref  IRQs
> >   Initial Probe       0  255   N     0  none
> >   Validation          0  255   N     0  none
> >   After Disable       0  255   N     0  none
> > pci_link16:       Index  IRQ  Rtd  Ref  IRQs
> >   Initial Probe       0  255   N     0  none
> >   Validation          0  255   N     0  none
> >   After Disable       0  255   N     0  none
> > pci_link17:       Index  IRQ  Rtd  Ref  IRQs
> >   Initial Probe       0  255   N     0  none
> >   Validation          0  255   N     0  none
> >   After Disable       0  255   N     0  none
> > pci_link18:       Index  IRQ  Rtd  Ref  IRQs
> >   Initial Probe       0  255   N     0  none
> >   Validation          0  255   N     0  none
> >   After Disable       0  255   N     0  none
> > pci_link19:       Index  IRQ  Rtd  Ref  IRQs
> >   Initial Probe       0  255   N     0  none
> >   Validation          0  255   N     0  none
> >   After Disable       0  255   N     0  none
> > pci_link20:       Index  IRQ  Rtd  Ref  IRQs
> >   Initial Probe       0  255   N     0  none
> >   Validation          0  255   N     0  none
> >   After Disable       0  255   N     0  none
> > pci_link21:       Index  IRQ  Rtd  Ref  IRQs
> >   Initial Probe       0  255   N     0  none
> >   Validation          0  255   N     0  none
> >   After Disable       0  255   N     0  none
> > pci_link22:       Index  IRQ  Rtd  Ref  IRQs
> >   Initial Probe       0  255   N     0  none
> >   Validation          0  255   N     0  none
> >   After Disable       0  255   N     0  none
> > pci_link23:       Index  IRQ  Rtd  Ref  IRQs
> >   Initial Probe       0  255   N     0  none
> >   Validation          0  255   N     0  none
> >   After Disable       0  255   N     0  none
> > pci_link24:       Index  IRQ  Rtd  Ref  IRQs
> >   Initial Probe       0  255   N     0  none
> >   Validation          0  255   N     0  none
> >   After Disable       0  255   N     0  none
> > pci_link25:       Index  IRQ  Rtd  Ref  IRQs
> >   Initial Probe       0  255   N     0  none
> >   Validation          0  255   N     0  none
> >   After Disable       0  255   N     0  none
> > pci_link26:       Index  IRQ  Rtd  Ref  IRQs
> >   Initial Probe       0  255   N     0  none
> >   Validation          0  255   N     0  none
> >   After Disable       0  255   N     0  none
> > pci_link27:       Index  IRQ  Rtd  Ref  IRQs
> >   Initial Probe       0  255   N     0  none
> >   Validation          0  255   N     0  none
> >   After Disable       0  255   N     0  none
> > pci_link28:       Index  IRQ  Rtd  Ref  IRQs
> >   Initial Probe       0  255   N     0  none
> >   Validation          0  255   N     0  none
> >   After Disable       0  255   N     0  none
> > pci_link29:       Index  IRQ  Rtd  Ref  IRQs
> >   Initial Probe       0  255   N     0  none
> >   Validation          0  255   N     0  none
> >   After Disable       0  255   N     0  none
> > pci_link30:       Index  IRQ  Rtd  Ref  IRQs
> >   Initial Probe       0  255   N     0  none
> >   Validation          0  255   N     0  none
> >   After Disable       0  255   N     0  none
> > pci_link31:       Index  IRQ  Rtd  Ref  IRQs
> >   Initial Probe       0  255   N     0  none
> >   Validation          0  255   N     0  none
> >   After Disable       0  255   N     0  none
> > pci_link32:       Index  IRQ  Rtd  Ref  IRQs
> >   Initial Probe       0   11   N     0  11
> >   Validation          0   11   N     0  11
> >   After Disable       0  255   N     0  11
> > cpu0: <ACPI CPU> on acpi0
> > cpu1: <ACPI CPU> on acpi0
> > cpu2: <ACPI CPU> on acpi0
> > cpu3: <ACPI CPU> on acpi0
> > pcib0: <ACPI Host-PCI bridge> on acpi0
> > ACPI: Found matching pin for 0.15.INTA at func 2: 11
> > pci0: <ACPI PCI bus> on pcib0
> > pci0: physical bus=0
> > found-> vendor=0x1166, dev=0x0014, revid=0x33
> >         bus=0, slot=0, func=0
> >         class=06-00-00, hdrtype=0x00, mfdev=1
> >         cmdreg=0x0000, statreg=0x0000, cachelnsz=16 (dwords)
> >         lattimer=0x00 (0 ns), mingnt=0x00 (0 ns), maxlat=0x00 (0 ns)
> > found-> vendor=0x1166, dev=0x0014, revid=0x00
> >         bus=0, slot=0, func=1
> >         class=06-00-00, hdrtype=0x00, mfdev=1
> >         cmdreg=0x0000, statreg=0x0000, cachelnsz=16 (dwords)
> >         lattimer=0x00 (0 ns), mingnt=0x00 (0 ns), maxlat=0x00 (0 ns)
> > found-> vendor=0x1166, dev=0x0014, revid=0x00
> >         bus=0, slot=0, func=2
> >         class=06-00-00, hdrtype=0x00, mfdev=1
> >         cmdreg=0x0000, statreg=0x0000, cachelnsz=16 (dwords)
> >         lattimer=0x00 (0 ns), mingnt=0x00 (0 ns), maxlat=0x00 (0 ns)
> > found-> vendor=0x1002, dev=0x4752, revid=0x27
> >         bus=0, slot=6, func=0
> >         class=03-00-00, hdrtype=0x00, mfdev=0
> >         cmdreg=0x0087, statreg=0x0290, cachelnsz=8 (dwords)
> >         lattimer=0x40 (1920 ns), mingnt=0x08 (2000 ns), maxlat=0x00 (0 ns)
> >         intpin=a, irq=10
> >         powerspec 2  supports D0 D1 D2 D3  current D0
> >         map[10]: type 1, range 32, base 0xfd000000, size 24, enabled
> >         map[14]: type 4, range 32, base 0x2400, size  8, enabled
> >         map[18]: type 1, range 32, base 0xfebff000, size 12, enabled
> > pcib0: matched entry for 0.6.INTA
> > pcib0: slot 6 INTA hardwired to IRQ 26
> > found-> vendor=0x1166, dev=0x0201, revid=0x93
> >         bus=0, slot=15, func=0
> >         class=06-00-00, hdrtype=0x00, mfdev=1
> >         cmdreg=0x0147, statreg=0x2200, cachelnsz=0 (dwords)
> >         lattimer=0x40 (1920 ns), mingnt=0x00 (0 ns), maxlat=0x00 (0 ns)
> > found-> vendor=0x1166, dev=0x0212, revid=0x93
> >         bus=0, slot=15, func=1
> >         class=01-01-82, hdrtype=0x00, mfdev=1
> >         cmdreg=0x0155, statreg=0x0200, cachelnsz=8 (dwords)
> >         lattimer=0x40 (1920 ns), mingnt=0x00 (0 ns), maxlat=0x00 (0 ns)
> >         map[20]: type 4, range 32, base 0x700, size  4, enabled
> > found-> vendor=0x1166, dev=0x0220, revid=0x05
> >         bus=0, slot=15, func=2
> >         class=0c-03-10, hdrtype=0x00, mfdev=1
> >         cmdreg=0x0157, statreg=0x0280, cachelnsz=8 (dwords)
> >         lattimer=0x40 (1920 ns), mingnt=0x00 (0 ns), maxlat=0x50 (20000 ns)
> >         intpin=a, irq=11
> >         map[10]: type 1, range 32, base 0xfebfe000, size 12, enabled
> > pcib0: matched entry for 0.15.INTA (src \LPUS:0)
> > ioapic0: Changing trigger for pin 11 to level
> > ioapic0: Changing polarity for pin 11 to low
> > pcib0: slot 15 INTA routed to irq 11 via \LPUS
> > found-> vendor=0x1166, dev=0x0225, revid=0x00
> >         bus=0, slot=15, func=3
> >         class=06-01-00, hdrtype=0x00, mfdev=1
> >         cmdreg=0x0144, statreg=0x0200, cachelnsz=0 (dwords)
> >         lattimer=0x00 (0 ns), mingnt=0x00 (0 ns), maxlat=0x00 (0 ns)
> > found-> vendor=0x1166, dev=0x0101, revid=0x05
> >         bus=0, slot=16, func=0
> >         class=06-00-00, hdrtype=0x00, mfdev=1
> >         cmdreg=0x0142, statreg=0x22b0, cachelnsz=0 (dwords)
> >         lattimer=0x40 (1920 ns), mingnt=0x00 (0 ns), maxlat=0x00 (0 ns)
> > found-> vendor=0x1166, dev=0x0101, revid=0x05
> >         bus=0, slot=16, func=2
> >         class=06-00-00, hdrtype=0x00, mfdev=1
> >         cmdreg=0x0142, statreg=0x2230, cachelnsz=0 (dwords)
> >         lattimer=0x40 (1920 ns), mingnt=0x00 (0 ns), maxlat=0x00 (0 ns)
> > found-> vendor=0x1166, dev=0x0101, revid=0x05
> >         bus=0, slot=17, func=0
> >         class=06-00-00, hdrtype=0x00, mfdev=1
> >         cmdreg=0x0142, statreg=0x2230, cachelnsz=0 (dwords)
> >         lattimer=0x40 (1920 ns), mingnt=0x00 (0 ns), maxlat=0x00 (0 ns)
> > found-> vendor=0x1166, dev=0x0101, revid=0x05
> >         bus=0, slot=17, func=2
> >         class=06-00-00, hdrtype=0x00, mfdev=1
> >         cmdreg=0x0142, statreg=0x2230, cachelnsz=0 (dwords)
> >         lattimer=0x40 (1920 ns), mingnt=0x00 (0 ns), maxlat=0x00 (0 ns)
> > vgapci0: <VGA-compatible display> port 0x2400-0x24ff mem
> > 0xfd000000-0xfdffffff,0xfebff000-0xfebfffff irq 26 at device 6.0 on
> > pci0
> > atapci0: <ServerWorks CSB5 UDMA100 controller> port
> > 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0x700-0x70f at device 15.1 on pci0
> > atapci0: Reserved 0x10 bytes for rid 0x20 type 4 at 0x700
> > ata0: <ATA channel 0> on atapci0
> > atapci0: Reserved 0x8 bytes for rid 0x10 type 4 at 0x1f0
> > atapci0: Reserved 0x1 bytes for rid 0x14 type 4 at 0x3f6
> > ata0: reset tp1 mask=03 ostat0=50 ostat1=00
> > ata0: stat0=0x00 err=0x01 lsb=0x14 msb=0xeb
> > ata0: stat1=0x00 err=0x04 lsb=0x00 msb=0x00
> > ata0: reset tp2 stat0=00 stat1=00 devices=0x4<ATAPI_MASTER>
> > ioapic0: routing intpin 14 (ISA IRQ 14) to vector 49
> > ata0: [MPSAFE]
> > ata1: <ATA channel 1> on atapci0
> > atapci0: Reserved 0x8 bytes for rid 0x18 type 4 at 0x170
> > atapci0: Reserved 0x1 bytes for rid 0x1c type 4 at 0x376
> > ata1: reset tp1 mask=00 ostat0=ff ostat1=ff
> > ioapic0: routing intpin 15 (ISA IRQ 15) to vector 50
> > ata1: [MPSAFE]
> > pci0: <serial bus, USB> at device 15.2 (no driver attached)
> > isab0: <PCI-ISA bridge> at device 15.3 on pci0
> > isa0: <ISA bus> on isab0
> > pcib1: <ACPI Host-PCI bridge> on acpi0
> > pci2: <ACPI PCI bus> on pcib1
> > pci2: physical bus=2
> > found-> vendor=0x8086, dev=0x1229, revid=0x0c
> >         bus=2, slot=3, func=0
> >         class=02-00-00, hdrtype=0x00, mfdev=0
> >         cmdreg=0x0157, statreg=0x0290, cachelnsz=8 (dwords)
> >         lattimer=0x40 (1920 ns), mingnt=0x08 (2000 ns), maxlat=0x38 (14000
> ns)
> >         intpin=a, irq=10
> >         powerspec 2  supports D0 D1 D2 D3  current D0
> >         map[10]: type 1, range 32, base 0xfbfff000, size 12, enabled
> >         map[14]: type 4, range 32, base 0x2500, size  6, enabled
> >         map[18]: type 1, range 32, base 0xfbfc0000, size 17, enabled
> > pcib1: matched entry for 2.3.INTA
> > pcib1: slot 3 INTA hardwired to IRQ 20
> > fxp0: <Intel 82550 Pro/100 Ethernet> port 0x2500-0x253f mem
> > 0xfbfff000-0xfbffffff,0xfbfc0000-0xfbfdffff irq 20 at device 3.0 on
> > pci2
> > fxp0: Reserved 0x1000 bytes for rid 0x10 type 3 at 0xfbfff000
> > fxp0: using memory space register mapping
> > fxp0: PCI IDs: 8086 1229 1014 01f1 000c
> > fxp0: Dynamic Standby mode is disabled
> > miibus0: <MII bus> on fxp0
> > inphy0: <i82555 10/100 media interface> on miibus0
> > inphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
> > fxp0: bpf attached
> > fxp0: Ethernet address: 00:0e:0c:2e:98:88
> > ioapic1: routing intpin 4 (PCI IRQ 20) to vector 51
> > fxp0: [MPSAFE]
> > pcib2: <ACPI Host-PCI bridge> on acpi0
> > pci4: <ACPI PCI bus> on pcib2
> > pci4: physical bus=4
> > pcib3: <ACPI Host-PCI bridge> on acpi0
> > pci6: <ACPI PCI bus> on pcib3
> > pci6: physical bus=6
> > found-> vendor=0x8086, dev=0x1010, revid=0x01
> >         bus=6, slot=8, func=0
> >         class=02-00-00, hdrtype=0x00, mfdev=1
> >         cmdreg=0x0157, statreg=0x0230, cachelnsz=8 (dwords)
> >         lattimer=0x40 (1920 ns), mingnt=0xff (63750 ns), maxlat=0x00 (0 ns)
> >         intpin=a, irq=11
> >         powerspec 2  supports D0 D3  current D0
> >         MSI supports 1 message, 64 bit
> >         map[10]: type 1, range 64, base 0xf9fe0000, size 17, enabled
> >         map[20]: type 4, range 32, base 0x2540, size  6, enabled
> > pcib3: matched entry for 6.8.INTA
> > pcib3: slot 8 INTA hardwired to IRQ 29
> > found-> vendor=0x8086, dev=0x1010, revid=0x01
> >         bus=6, slot=8, func=1
> >         class=02-00-00, hdrtype=0x00, mfdev=1
> >         cmdreg=0x0157, statreg=0x0230, cachelnsz=8 (dwords)
> >         lattimer=0x40 (1920 ns), mingnt=0xff (63750 ns), maxlat=0x00 (0 ns)
> >         intpin=b, irq=3
> >         powerspec 2  supports D0 D3  current D0
> >         MSI supports 1 message, 64 bit
> >         map[10]: type 1, range 64, base 0xf9fc0000, size 17, enabled
> >         map[20]: type 4, range 32, base 0x2580, size  6, enabled
> > pcib3: matched entry for 6.8.INTB
> > pcib3: slot 8 INTB hardwired to IRQ 30
> > em0: <Intel(R) PRO/1000 Network Connection Version - 6.2.9> port
> > 0x2540-0x257f mem 0xf9fe0000-0xf9ffffff irq 29 at device 8.0 on pci6
> > em0: Reserved 0x20000 bytes for rid 0x10 type 3 at 0xf9fe0000
> > em0: Reserved 0x40 bytes for rid 0x20 type 4 at 0x2540
> > em0: bpf attached
> > em0: Ethernet address: 00:0d:60:1a:4f:c6
> > NMI ISA 34, EISA 0
> > NMI ... going to debugger
> > [thread pid 0 tid 0 ]
> > Stopped at      em_clear_hw_cntrs+0xc6: movl    %eax,-0x4(%ebp)
>
> So em triggered an interrupt and you got an NMI out of it instead.  What
> does 'show lapic' show?
>

db> show lapic
lapic ID = 0
version  = 1.4
max LVT  = 5
SVR      = ff (enabled)
TPR      = 00
In-service Interrupts:
TMR Interrupts:
IRR Interrupts:

-- 
Pawel


More information about the cvs-src mailing list