Subject: Re: Interrupts with MP kernel
To: None <port-i386@netbsd.org>
From: rudolf <rudolf@eq.cz>
List: port-i386
Date: 10/16/2007 23:48:27
This is a multi-part message in MIME format.
--------------010601060508010201060502
Content-Type: text/plain; charset=ISO-8859-2; format=flowed
Content-Transfer-Encoding: 7bit

rudolf wrote:
> Hi,
> 
> I have a problem with interrupts with NetBSD 4.0_RC2 GENERIC.MP kernel. 
> There seems to be everything ok with plain GENERIC or GENERIC_DIAGNOSTIC 
> kernel. The machine is Sun Fire X2200 M2 with one dual-core Opteron.

Attached is a dmesg from jmcnaill-pm branch: kernel GENERIC.MP (also one 
CPU core busy with interrupts). I hope someone will get some idea from 
the dmesg what I could try.

I tested the MP kernels with bge disabled from BIOS (there is a Service 
Processor attached to one port of bge and under NetBSD it is visible 
from outside only when the NetBSD doesn't touch the bge), but the 
interrupts are there in both cases. I also tried to disable USB and 
Service Processor USB devices (virtual keyboard/mouse/cd) with no success.

r.

--------------010601060508010201060502
Content-Type: text/plain;
 name="dmesg"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="dmesg"

NetBSD 4.99.31 (GENERIC.MP) #0: Tue Oct 16 23:18:18 CEST 2007
	root@bludicka.crlf.cz:/mnt/B/obj/sys/arch/i386/compile/GENERIC.MP
total memory = 2047 MB
rbus: rbus_min_start set to 0x80000000
avail memory = 1997 MB
timecounter: Timecounters tick every 10.000 msec
timecounter: Timecounter "i8254" frequency 1193182 Hz quality 100
BIOS32 rev. 0 found at 0xf0010
SMBIOS rev. 2.4 @ 0xfbc30 (52 entries)
Sun Microsystems Sun Fire X2200 M2 (Rev 50)
mainbus0 (root)
cpu0 at mainbus0 apid 0: (boot processor)
cpu0: AMD Dual-Core Opteron (686-class), 2613.58 MHz, id 0x40f13
cpu0: features ffdbfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR>
cpu0: features ffdbfbff<PGE,MCA,CMOV,PAT,PSE36,MPC,NOX,MMXX,MMX>
cpu0: features ffdbfbff<FXSR,SSE,SSE2,RDTSCP,HTT,LONG,3DNOW2,3DNOW>
cpu0: features2 2001<SSE3>
cpu0: "Dual-Core AMD Opteron(tm) Processor 2218 HE"
cpu0: I-cache 64 KB 64B/line 2-way, D-cache 64 KB 64B/line 2-way
cpu0: L2 cache 1 MB 64B/line 16-way
cpu0: ITLB 32 4 KB entries fully associative, 8 4 MB entries fully associative
cpu0: DTLB 32 4 KB entries fully associative, 8 4 MB entries fully associative
cpu0: AMD Power Management features: 3f<STC,TM,TTP,VID,FID,TS>
cpu0: calibrating local timer
cpu0: apic clock running at 201 MHz
cpu0: 16 page colors
cpu0: using generic power management <D0,D3>
cpu1 at mainbus0 apid 1: (application processor)
cpu1: AMD Dual-Core Opteron (686-class), 2613.40 MHz, id 0x40f13
cpu1: features ffdbfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR>
cpu1: features ffdbfbff<PGE,MCA,CMOV,PAT,PSE36,MPC,NOX,MMXX,MMX>
cpu1: features ffdbfbff<FXSR,SSE,SSE2,RDTSCP,HTT,LONG,3DNOW2,3DNOW>
cpu1: features2 2001<SSE3>
cpu1: "Dual-Core AMD Opteron(tm) Processor 2218 HE"
cpu1: I-cache 64 KB 64B/line 2-way, D-cache 64 KB 64B/line 2-way
cpu1: L2 cache 1 MB 64B/line 16-way
cpu1: ITLB 32 4 KB entries fully associative, 8 4 MB entries fully associative
cpu1: DTLB 32 4 KB entries fully associative, 8 4 MB entries fully associative
cpu1: AMD Power Management features: 3f<STC,TM,TTP,VID,FID,TS>
cpu1: using generic power management <D0,D3>
ioapic0 at mainbus0 apid 2
ioapic0: pa 0xfec00000, version 11, 24 pins
ioapic0: using generic power management <D0,D3>
acpi0 at mainbus0: Advanced Configuration and Power Interface
acpi0: using Intel ACPI CA subsystem version 20070320
acpi0: using generic power management <D0,D3>
acpi_pci_link: WARNING: powerhook_establish is deprecated
acpi_pci_link: WARNING: powerhook_establish is deprecated
acpi_pci_link: WARNING: powerhook_establish is deprecated
acpi_pci_link: WARNING: powerhook_establish is deprecated
acpi_pci_link: WARNING: powerhook_establish is deprecated
acpi_pci_link: WARNING: powerhook_establish is deprecated
acpi_pci_link: WARNING: powerhook_establish is deprecated
acpi_pci_link: WARNING: powerhook_establish is deprecated
acpi_pci_link: WARNING: powerhook_establish is deprecated
acpi_pci_link: WARNING: powerhook_establish is deprecated
acpi_pci_link: WARNING: powerhook_establish is deprecated
acpi_pci_link: WARNING: powerhook_establish is deprecated
acpi_pci_link: WARNING: powerhook_establish is deprecated
acpi_pci_link: WARNING: powerhook_establish is deprecated
acpi_pci_link: WARNING: powerhook_establish is deprecated
acpi0: SCI interrupting at int 9
acpi0: fixed-feature power button present
timecounter: Timecounter "ACPI-Fast" frequency 3579545 Hz quality 1000
ACPI-Fast 24-bit timer
PCI0 (PNP0A03) [PCI/PCI-X Host Bridge] at acpi0 not configured
PIC (PNP0000) [AT Interrupt Controller] at acpi0 not configured
DMAD (PNP0200) [AT DMA Controller] at acpi0 not configured
attimer1 at acpi0 (TMR, PNP0100): AT Timer
attimer1: io 0x40-0x43 irq 0
attimer1: using generic power management <D0,D3>
RTC0 (PNP0B00) [AT Real-Time Clock] at acpi0 not configured
pcppi1 at acpi0 (SPKR, PNP0800)
pcppi1: io 0x61
midi0 at pcppi1: PC speaker (CPU-intensive output)
midi0: WARNING: power management not supported
sysbeep0 at pcppi1
sysbeep0: WARNING: power management not supported
pcppi1: using generic power management <D0,D3>
npx1 at acpi0 (COPR, PNP0C04)
npx1: io 0xf0-0xff irq 13
npx1: reported by CPUID; using exception 16
npx1: using generic power management <D0,D3>
com3 at acpi0 (UAR1, PNP0501-1)
com3: io 0x3f8-0x3ff irq 4
com3: ns16550a, working fifo
com3: WARNING: powerhook_establish is deprecated
com3: WARNING: power management not supported
com4 at acpi0 (UAR2, PNP0501-2)
com4: io 0x2f8-0x2ff irq 3
com4: ns16550a, working fifo
com4: WARNING: powerhook_establish is deprecated
com4: WARNING: power management not supported
RMSC (PNP0C02) [Plug and Play motherboard register resources] at acpi0 not configured
OMSC (PNP0C02) [Plug and Play motherboard register resources] at acpi0 not configured
pckbc1 at acpi0 (PS2K, PNP0303): kbd port
pckbc1: io 0x60,0x64 irq 1
pckbc1: using generic power management <D0,D3>
SIOR (PNP0C02) [Plug and Play motherboard register resources] at acpi0 not configured
PCIE (PNP0C02) [Plug and Play motherboard register resources] at acpi0 not configured
RMEM (PNP0C01) [System Board] at acpi0 not configured
acpibut0 at acpi0 (PWRB, PNP0C0C-170): ACPI Power Button
acpibut0: using generic power management <D0,D3>
LNKB (PNP0C0F) [PCI interrupt link device] at acpi0 not configured
LNEA (PNP0C0F) [PCI interrupt link device] at acpi0 not configured
LNED (PNP0C0F) [PCI interrupt link device] at acpi0 not configured
LUB0 (PNP0C0F) [PCI interrupt link device] at acpi0 not configured
LMAD (PNP0C0F) [PCI interrupt link device] at acpi0 not configured
LUB2 (PNP0C0F) [PCI interrupt link device] at acpi0 not configured
LMAC (PNP0C0F) [PCI interrupt link device] at acpi0 not configured
LSMB (PNP0C0F) [PCI interrupt link device] at acpi0 not configured
LPMU (PNP0C0F) [PCI interrupt link device] at acpi0 not configured
LSA0 (PNP0C0F) [PCI interrupt link device] at acpi0 not configured
apm0 at acpi0: Power Management spec V1.2
apm0: using generic power management <D0,D3>
pcppi1: attached to attimer1
pci0 at mainbus0 bus 0: configuration mode 1
pci0: i/o space, memory space enabled, rd/line, rd/mult, wr/inv ok
NVIDIA nForce MCP55 Memory Controller (RAM memory, revision 0xa2) at pci0 dev 0 function 0 not configured
pcib0 at pci0 dev 1 function 0
pcib0: NVIDIA product 0x0364 (rev. 0xa3)
pcib0: using generic power management <D0,D3>
NVIDIA nForce MCP55 SMBus Controller (SMBus serial bus, revision 0xa3) at pci0 dev 1 function 1 not configured
ohci0 at pci0 dev 2 function 0: NVIDIA nForce MCP55 OHCI USB Controller (rev. 0xa1)
LUB0: Picked IRQ 20 with weight 0
ohci0: interrupting at ioapic0 pin 20 (irq 15)
ohci0: OHCI version 1.0, legacy support
ohci0: using generic power management <D0,D1,D2,D3>
usb0 at ohci0: USB revision 1.0
uhub0 at usb0
uhub0: NVIDIA OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 10 ports with 10 removable, self powered
uhub0: using generic power management <D0,D3>
usb0: WARNING: power management not supported
ehci0 at pci0 dev 2 function 1: NVIDIA nForce MCP55 EHCI USB Controller (rev. 0xa2)
LUB2: Picked IRQ 21 with weight 0
ehci0: interrupting at ioapic0 pin 21 (irq 7)
ehci0: BIOS has given up ownership
ehci0: EHCI version 1.0
ehci0: companion controller, 10 ports each: ohci0
ehci0: using generic power management <D0,D1,D2,D3>
usb1 at ehci0: USB revision 2.0
uhub1 at usb1
uhub1: NVIDIA EHCI root hub, class 9/0, rev 2.00/1.00, addr 1
uhub1: 10 ports with 10 removable, self powered
uhub1: using generic power management <D0,D3>
usb1: WARNING: power management not supported
viaide0 at pci0 dev 4 function 0
viaide0: NVIDIA MCP55 IDE Controller (rev. 0xa1)
viaide0: bus-master DMA support present
viaide0: primary channel configured to compatibility mode
viaide0: primary channel interrupting at ioapic0 pin 14 (irq 14)
atabus0 at viaide0 channel 0
atabus0: using generic power management <D0,D1,D3>
viaide0: secondary channel configured to compatibility mode
viaide0: secondary channel ignored (disabled)
viaide0: WARNING: power management not supported
viaide1 at pci0 dev 5 function 0
viaide1: NVIDIA MCP55 Serial ATA Controller (rev. 0xa3)
viaide1: bus-master DMA support present
viaide1: primary channel wired to native-PCI mode
LSA0: Picked IRQ 22 with weight 0
viaide1: using ioapic0 pin 22 (irq 10) for native-PCI interrupt
atabus1 at viaide1 channel 0
atabus1: using generic power management <D0,D1,D3>
viaide1: secondary channel wired to native-PCI mode
atabus2 at viaide1 channel 1
atabus2: using generic power management <D0,D1,D3>
viaide1: WARNING: power management not supported
ppb0 at pci0 dev 6 function 0: NVIDIA nForce MCP55 PCI-PCI Bridge (rev. 0xa2)
ppb0: using generic power management <D0,D3>
pci1 at ppb0 bus 1
pci1: i/o space, memory space enabled
vga1 at pci1 dev 5 function 0: unknown vendor 0x1a03 product 0x2000 (rev. 0x00)
wsdisplay0 at vga1 kbdmux 1: console (80x25, vt100 emulation)
wsmux1: connecting to wsdisplay0
wsdisplay0: using generic power management <D0,D3>
vga1: using display power management <D0,D3>
direct rendering for vga1 unsupported
pci1: using generic power management <D0,D3>
nfe0 at pci0 dev 8 function 0: NVIDIA nForce MCP55 Gigabit Ethernet Controller (rev. 0xa3)
LMAC: Picked IRQ 23 with weight 0
nfe0: interrupting at ioapic0 pin 23 (irq 11)
nfe0: Ethernet address 00:1b:24:5c:42:23
ukphy0 at nfe0 phy 2: Generic IEEE 802.3u media interface
ukphy0: OUI 0x000ac2, model 0x000b, rev. 3
ukphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-FDX, auto
ukphy0: WARNING: power management not supported
nfe0: using network power management <D0,D1,D2,D3>
nfe1 at pci0 dev 9 function 0: NVIDIA nForce MCP55 Gigabit Ethernet Controller (rev. 0xa3)
LMAD: Picked IRQ 20 with weight 1
nfe1: interrupting at ioapic0 pin 20 (irq 5)
nfe1: Ethernet address 00:1b:24:5c:42:24
ukphy1 at nfe1 phy 3: Generic IEEE 802.3u media interface
ukphy1: OUI 0x000ac2, model 0x000b, rev. 3
ukphy1: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-FDX, auto
ukphy1: WARNING: power management not supported
nfe1: using network power management <D0,D1,D2,D3>
ppb1 at pci0 dev 10 function 0: NVIDIA product 0x0376 (rev. 0xa3)
ppb1: using generic power management <D0,D3>
pci2 at ppb1 bus 2
pci2: no spaces enabled!
pci2: WARNING: power management not supported
ppb2 at pci0 dev 11 function 0: NVIDIA product 0x0374 (rev. 0xa3)
ppb2: using generic power management <D0,D3>
pci3 at ppb2 bus 3
pci3: no spaces enabled!
pci3: WARNING: power management not supported
ppb3 at pci0 dev 12 function 0: NVIDIA product 0x0374 (rev. 0xa3)
ppb3: using generic power management <D0,D3>
pci4 at ppb3 bus 4
pci4: no spaces enabled!
pci4: WARNING: power management not supported
ppb4 at pci0 dev 13 function 0: NVIDIA product 0x0378 (rev. 0xa3)
ppb4: using generic power management <D0,D3>
pci5 at ppb4 bus 5
pci5: memory space enabled, rd/line, wr/inv ok
ppb5 at pci5 dev 0 function 0: ServerWorks bcm5714/bcm5715 integral PCI-E to PCI-X bridge (rev. 0xb5)
ppb5: using generic power management <D0,D3>
pci6 at ppb5 bus 6
pci6: memory space enabled, rd/line, wr/inv ok
bge0 at pci6 dev 4 function 0: Broadcom BCM5714/5715 Gigabit Ethernet
LNED: Picked IRQ 16 with weight 0
bge0: interrupting at ioapic0 pin 16 (irq 15)
bge0: ASIC unknown BCM5714 (0x9003), Ethernet address 00:1b:24:5c:42:21
bge0: setting short Tx thresholds
brgphy0 at bge0 phy 1: BCM5714 1000BASE-T media interface, rev. 0
brgphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-FDX, auto
brgphy0: WARNING: power management not supported
bge0: using network power management <D0,D3>
bge1 at pci6 dev 4 function 1: Broadcom BCM5714/5715 Gigabit Ethernet
LNEA: Picked IRQ 17 with weight 0
bge1: interrupting at ioapic0 pin 17 (irq 10)
bge1: ASIC unknown BCM5714 (0x9003), Ethernet address 00:1b:24:5c:42:22
bge1: setting short Tx thresholds
brgphy1 at bge1 phy 1: BCM5714 1000BASE-T media interface, rev. 0
brgphy1: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-FDX, auto
brgphy1: WARNING: power management not supported
bge1: using network power management <D0,D3>
pci6: using generic power management <D0,D3>
pci5: using generic power management <D0,D3>
ppb6 at pci0 dev 15 function 0: NVIDIA nForce MCP55 PCI-Express 16x Port (rev. 0xa3)
ppb6: using generic power management <D0,D3>
pci7 at ppb6 bus 7
pci7: no spaces enabled!
pci7: WARNING: power management not supported
pchb0 at pci0 dev 24 function 0
pchb0: Advanced Micro Devices K8 AMD64 HyperTransport configuration (rev. 0x00)
pchb0: using generic power management <D0,D3>
pchb1 at pci0 dev 24 function 1
pchb1: Advanced Micro Devices K8 AMD64 Address Map configuration (rev. 0x00)
pchb1: using generic power management <D0,D3>
pchb2 at pci0 dev 24 function 2
pchb2: Advanced Micro Devices K8 AMD64 DRAM configuration (rev. 0x00)
pchb2: using generic power management <D0,D3>
pchb3 at pci0 dev 24 function 3
pchb3: Advanced Micro Devices K8 AMD64 Miscellaneous configuration (rev. 0x00)
pchb3: using generic power management <D0,D3>
pci0: using generic power management <D0,D3>
isa0 at pcib0
isapnp0 at isa0 port 0x279: ISA Plug 'n Play device support
isapnp0: using generic power management <D0,D3>
isa0: using generic power management <D0,D3>
isapnp0: no ISA Plug 'n Play devices found
mainbus0: using generic power management <D0,D3>
timecounter: Timecounter "clockinterrupt" frequency 100 Hz quality 0
Kernelized RAIDframe activated
viaide1 port 0: device present, speed: 3.0Gb/s
viaide1 port 1: device present, speed: 3.0Gb/s
wd0 at atabus1 drive 0: <Hitachi HDS721075KLA330>
wd0: drive supports 16-sector PIO transfers, LBA48 addressing
wd0: 698 GB, 1453521 cyl, 16 head, 63 sec, 512 bytes/sect x 1465149168 sectors
wd0: using disk power management <D0,D3>
wd0: 32-bit data port
wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 6 (Ultra/133)
wd0(viaide1:0:0): using PIO mode 4, Ultra-DMA mode 6 (Ultra/133) (using DMA)
wd1 at atabus2 drive 0: <Hitachi HDS721075KLA330>
wd1: drive supports 16-sector PIO transfers, LBA48 addressing
wd1: 698 GB, 1453521 cyl, 16 head, 63 sec, 512 bytes/sect x 1465149168 sectors
wd1: using disk power management <D0,D3>
wd1: 32-bit data port
wd1: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 6 (Ultra/133)
wd1(viaide1:1:0): using PIO mode 4, Ultra-DMA mode 6 (Ultra/133) (using DMA)
boot device: wd0
root on wd0a dumps on wd0b
root file system type: ffs
uhidev0 at uhub0 port 2 configuration 1 interface 0
uhidev0: Virtual USB MULTIMEDIA KEYBOARD, rev 1.10/0.01, addr 2, iclass 3/1
ukbd0 at uhidev0
wskbd0 at ukbd0: console keyboard, using wsdisplay0
wskbd0: using generic power management <D0,D3>
ukbd0: WARNING: power management not supported
uhidev0: WARNING: power management not supported
uhidev1 at uhub0 port 2 configuration 1 interface 1
uhidev1: Virtual USB MULTIMEDIA KEYBOARD, rev 1.10/0.01, addr 2, iclass 3/1
ums0 at uhidev1: 3 buttons and Z dir.
wsmouse0 at ums0 mux 0
wsmouse0: using generic power management <D0,D3>
ums0: WARNING: power management not supported
uhidev1: WARNING: power management not supported
wsdisplay0: screen 1 added (80x25, vt100 emulation)
wsdisplay0: screen 2 added (80x25, vt100 emulation)
wsdisplay0: screen 3 added (80x25, vt100 emulation)
wsdisplay0: screen 4 added (80x25, vt100 emulation)

--------------010601060508010201060502--