Subject: kern/23529: pciide0:0 and 0:1 bogus intr messages repeating forever on kernel load
To: None <gnats-bugs@gnats.NetBSD.org>
From: None <m.hertrick@neovera.com>
List: netbsd-bugs
Date: 11/22/2003 00:23:03
>Number:         23529
>Category:       kern
>Synopsis:       pciide0:0 and 0:1 bogus intr messages repeating forever on kernel load
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Nov 22 00:24:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     Michael Hertrick
>Release:        -current
>Organization:
Neovera, Inc.
>Environment:
NetBSD squarepeg 1.6.1_STABLE NetBSD 1.6.1_STABLE (squarepeg) #0: Mon Sep 15 00:56:19 EDT 2003     root@squarepeg:/usr/src/sys/arch/i386/compile/squarepeg i386

>Description:
Boot of latest -current kernel goes into endless loop just before it would have printed "Kernelized RAIDframe activated".  The kernel prints "pciide0:0 bogus intr" and "pciide0:1 bogus intr" indefinitely.

1.6.1-STABLE works fine with the same hardware configuration, however a single "pciide1:0 bogus intr" message is printed... but then finishes booting normally and functions properly.

Here's a dmesg from a good boot:

NetBSD 1.6.1_STABLE (squarepeg) #0: Mon Sep 15 00:56:19 EDT 2003
    root@squarepeg:/usr/src/sys/arch/i386/compile/squarepeg
cpu0: AMD Athlon Model 7 (Morgan) (686-class), 995.80 MHz
cpu0: I-cache 64 KB 64b/line 2-way, D-cache 64 KB 64b/line 2-way
cpu0: L2 cache 64 KB 64b/line 16-way
cpu0: features 383f9ff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR>
cpu0: features 383f9ff<PGE,MCA,CMOV,FGPAT,PSE36,MMX>
cpu0: features 383f9ff<FXSR,SSE>
total memory = 191 MB
avail memory = 174 MB
using 2478 buffers containing 9912 KB of memory
BIOS32 rev. 0 found at 0xfdae0
mainbus0 (root)
pci0 at mainbus0 bus 0: configuration mode 1
pci0: i/o space, memory space enabled, rd/line, rd/mult, wr/inv ok
pchb0 at pci0 dev 0 function 0
pchb0: vendor 0x1039 product 0x0735 (rev. 0x01)
agp0 at pchb0: aperture at 0xd0000000, size 0x4000000
ppb0 at pci0 dev 1 function 0: vendor 0x1039 product 0x0001 (rev. 0x00)
pci1 at ppb0 bus 1
pci1: i/o space, memory space enabled
vga0 at pci1 dev 0 function 0: vendor 0x10de product 0x0110 (rev. 0xa1)
wsdisplay0 at vga0 kbdmux 1: console (80x25, vt100 emulation)
wsmux1: connecting to wsdisplay0
pcib0 at pci0 dev 2 function 0
pcib0: vendor 0x1039 product 0x0008 (rev. 0x00)
ohci0 at pci0 dev 2 function 2: vendor 0x1039 product 0x7001 (rev. 0x07)
ohci0: interrupting at irq 11
ohci0: OHCI version 1.0, legacy support
usb0 at ohci0: USB revision 1.0
uhub0 at usb0
uhub0: vendor 0x1039 OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 3 ports with 3 removable, self powered
ohci1 at pci0 dev 2 function 3: vendor 0x1039 product 0x7001 (rev. 0x07)
ohci1: interrupting at irq 11
ohci1: OHCI version 1.0, legacy support
usb1 at ohci1: USB revision 1.0
uhub1 at usb1
uhub1: vendor 0x1039 OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub1: 3 ports with 3 removable, self powered
pciide0 at pci0 dev 2 function 5: Silicon Integrated System 735 IDE controller (rev. 0xd0)
pciide0: bus-master DMA support present
pciide0: primary channel wired to compatibility mode
wd0 at pciide0 channel 0 drive 0: <QUANTUM FIREBALLlct08 08>
wd0: drive supports 16-sector PIO transfers, LBA addressing
wd0: 8063 MB, 16383 cyl, 16 head, 63 sec, 512 bytes/sect x 16514064 sectors
wd0: 32-bit data port
wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 4 (Ultra/66)
pciide0: primary channel interrupting at irq 14
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 4 (Ultra/66) (using DMA data transfers)
pciide0: secondary channel wired to compatibility mode
atapibus0 at pciide0 channel 1: 2 targets
cd0 at atapibus0 drive 0: <SONY    CD-RW  CRX175A1, , 5YS2> type 5 cdrom removable
cd0: 32-bit data port
cd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 2 (Ultra/33)
wd1 at pciide0 channel 1 drive 1: <Maxtor 6Y080P0>
wd1: drive supports 16-sector PIO transfers, LBA addressing
wd1: 78167 MB, 16383 cyl, 16 head, 63 sec, 512 bytes/sect x 160086528 sectors
wd1: 32-bit data port
wd1: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 6 (Ultra/133)
pciide0: secondary channel interrupting at irq 15
cd0(pciide0:1:0): using PIO mode 4, Ultra-DMA mode 2 (Ultra/33) (using DMA data transfers)
wd1(pciide0:1:1): using PIO mode 4, Ultra-DMA mode 5 (Ultra/100) (using DMA data transfers)
vendor 0x1039 product 0x7013 (modem communications, revision 0xa0) at pci0 dev 2 function 6 not configured
vendor 0x1039 product 0x7012 (audio multimedia, revision 0xa0) at pci0 dev 2 function 7 not configured
sip0 at pci0 dev 3 function 0: SiS 900 10/100 Ethernet, rev 0x90
sip0: interrupting at irq 11
sip0: Ethernet address 00:07:95:a8:a6:45
ukphy0 at sip0 phy 1: Generic IEEE 802.3u media interface
ukphy0: OUI 0x000004, model 0x0020, rev. 1
ukphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
pciide1 at pci0 dev 9 function 0: Promise Ultra100/ATA Bus Master IDE Accelerator (rev. 0x02)
pciide1: bus-master DMA support present
pciide1: primary channel configured to native-PCI mode
pciide1: using irq 5 for native-PCI interrupt
wd2 at pciide1 channel 0 drive 0: <QUANTUM FIREBALLlct08 08>
wd2: drive supports 16-sector PIO transfers, LBA addressing
wd2: 8063 MB, 16383 cyl, 16 head, 63 sec, 512 bytes/sect x 16514064 sectors
wd2: 32-bit data port
wd2: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 4 (Ultra/66)
wd2(pciide1:0:0): using PIO mode 4, Ultra-DMA mode 4 (Ultra/66) (using DMA data transfers)
pciide1: secondary channel configured to native-PCI mode
wd3 at pciide1 channel 1 drive 0: <Maxtor 6Y080P0>
wd3: drive supports 16-sector PIO transfers, LBA addressing
wd3: 78167 MB, 16383 cyl, 16 head, 63 sec, 512 bytes/sect x 160086528 sectors
wd3: 32-bit data port
wd3: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 6 (Ultra/133)
wd3(pciide1:1:0): using PIO mode 4, Ultra-DMA mode 5 (Ultra/100) (using DMA data transfers)
vendor 0x104c product 0x8400 (miscellaneous network) at pci0 dev 11 function 0 not configured
ex0 at pci0 dev 13 function 0: 3Com 3c905C-TX 10/100 Ethernet with mngmt (rev. 0x74)
ex0: interrupting at irq 11
ex0: MAC address 00:50:da:b4:ac:4b
bmtphy0 at ex0 phy 24: Broadcom 3c905C internal PHY, rev. 6
bmtphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
bktr0 at pci0 dev 15 function 0
bktr0: interrupting at irq 11
bktr0: Hauppauge Model 38101 B410
bktr0: Hauppauge WinCast/TV, Philips NTSC tuner.
vendor 0x109e product 0x0878 (miscellaneous multimedia, revision 0x11) at pci0 dev 15 function 1 not configured
emuxki0 at pci0 dev 17 function 0: vendor 0x1102 product 0x0002 (audio multimedia, revision 0x05)
emuxki0: interrupting at irq 5
emuxki0: SigmaTel STAC9721/23 codec; 18 bit DAC, 18 bit ADC, SigmaTel 3D
audio0 at emuxki0: full duplex, mmap, independent
vendor 0x1102 product 0x7002 (miscellaneous input, revision 0x05) at pci0 dev 17 function 1 not configured
isa0 at pcib0
com0 at isa0 port 0x3f8-0x3ff irq 4: ns16550a, working fifo
com1 at isa0 port 0x2f8-0x2ff irq 3: ns16550a, working fifo
pckbc0 at isa0 port 0x60-0x64
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pms0 at pckbc0 (aux slot)
pckbc0: using irq 12 for aux slot
wsmouse0 at pms0 mux 0
lpt0 at isa0 port 0x378-0x37b irq 7
pcppi0 at isa0 port 0x61
midi0 at pcppi0: PC speaker
spkr0 at pcppi0
sysbeep0 at pcppi0
isapnp0 at isa0 port 0x279: ISA Plug 'n Play device support
npx0 at isa0 port 0xf0-0xff: using exception 16
fdc0 at isa0 port 0x3f0-0x3f7 irq 6 drq 2
fd0 at fdc0 drive 0: 1.44MB, 80 cyl, 2 head, 18 sec
isapnp0: no ISA Plug 'n Play devices found
biomask ef65 netmask ef65 ttymask ffe7
pciide1:0: bogus intr
Kernelized RAIDframe activated
IPsec: Initialized Security Association Processing.
RAID autoconfigure
Configuring raid0:
RAIDFRAME: protectedSectors is 64
RAIDFRAME: Configure (RAID Level 1): total number of sectors is 15227776 (7435 MB)
RAIDFRAME(RAID Level 1): Using 6 floating recon bufs with no head sep limit
RAID autoconfigure
Configuring raid1:
RAIDFRAME: Configure (RAID Level 1): total number of sectors is 160086464 (78167 MB)
RAIDFRAME(RAID Level 1): Using 6 floating recon bufs with no head sep limit
boot device: raid0
root on raid0a dumps on raid0b
root file system type: ffs
raid0: Device already configured!
raid1: Device already configured!
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)
IP Filter: v3.4.29 initialized.  Default = pass all, Logging = enabled


As you can see, at pciide0 I have a Silicon Integrated System 735 IDE controller with QUANTUM FIREBALL, Sony CD-RW, and Maxtor drives connected.  At pciide1 I have a Promise Ultra100/ATA Bus Master IDE Accelerator with QUANTUM FIREBALL and Maxtor drives connected.

My RAID configuration has the two QUANTUM drives mirrored and the two Maxtor drives mirrored.
>How-To-Repeat:
Begin with said hardware configuration.

Download the latest -current sources via anoncvs:
  cvs checkout src

Build the tools and GENERIC kernel:
  ./build.sh tools kernel=GENERIC

Install the new kernel:
  cp sys/arch/i386/compile/obj.i386/GENERIC/netbsd /netbsd

Reboot into the new kernel:
  reboot


>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted: