Subject: kern/23163: 1.6ZD hangs during drive probe
To: None <gnats-bugs@gnats.netbsd.org>
From: None <scotte@warped.com>
List: netbsd-bugs
Date: 10/15/2003 02:37:28
>Number:         23163
>Category:       kern
>Synopsis:       Kernel hangs during drive probe with 1.6ZD (-current)
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Oct 15 02:38:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     Scott Ellis
>Release:        NetBSD 1.6ZD
>Organization:
   //////////////////////////////////////////////////////////////////////
  //    Scott Ellis     //             scotte@warped.com              //
 //////////////////////////////////////////////////////////////////////
// WARNING: This signature warps  time and space in its vicinity    //
>Environment:
	
	
NetBSD 1.6ZD (INTREPID.MP.ACPI) #0: Tue Oct 14 18:19:51 PDT 2003 NetBSD 1.6ZD (INTREPID.MP.ACPI) #0: Tue Oct 14 18:19:51 PDT 2003
Architecture: i386
Machine: i386
>Description:
	
During boot, a 1.6ZD system sup'ed Oct 14, 2003 hangs during the probe of
the CDROM device (presumably).

dmesg of "hung" system is as follows:
NetBSD 1.6ZD (INTREPID.MP.ACPI) #0: Tue Oct 14 18:19:51 PDT 2003
        scotte@intrepid:/usr/src/sys/arch/i386/compile/INTREPID.MP.ACPI
total memory = 511 MB
avail memory = 471 MB
using 6144 buffers containing 26292 KB of memory
BIOS32 rev. 0 found at 0xfb2a0
mainbus0 (root)
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Intel Pentium III (686-class), 602.23 MHz, id 0x673
cpu0: features 387fbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR>
cpu0: features 387fbff<PGE,MCA,CMOV,PAT,PSE36,PN,MMX>
cpu0: features 387fbff<FXSR,SSE>
cpu0: I-cache 16 KB 32b/line 4-way, D-cache 16 KB 32b/line 4-way
cpu0: L2 cache 512 KB 32b/line 4-way
cpu0: ITLB 32 4 KB entries 4-way, 2 4 MB entries fully associative
cpu0: DTLB 64 4 KB entries 4-way, 8 4 MB entries 4-way
cpu0: serial number 0000-0673-0003-899B-4AD3-E890
cpu0: calibrating local timer
cpu0: apic clock running at 133 MHz
cpu0: 32 page colors
cpu1 at mainbus0: apid 1 (application processor)
cpu1: starting
cpu1: Intel Pentium III (686-class), 602.19 MHz, id 0x673
cpu1: features 387fbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR>
cpu1: features 387fbff<PGE,MCA,CMOV,PAT,PSE36,PN,MMX>
cpu1: features 387fbff<FXSR,SSE>
cpu1: I-cache 16 KB 32b/line 4-way, D-cache 16 KB 32b/line 4-way
cpu1: L2 cache 512 KB 32b/line 4-way
cpu1: ITLB 32 4 KB entries 4-way, 2 4 MB entries fully associative
cpu1: DTLB 64 4 KB entries 4-way, 8 4 MB entries 4-way
cpu1: serial number 0000-0673-0001-7410-01B6-49C8
ioapic0 at mainbus0 apid 2 (I/O APIC)
ioapic0: pa 0xfec00000, version 11, 24 pins
acpi0 at mainbus0
acpi0: using Intel ACPI CA subsystem version 20030228
acpi0: X/RSDT: OemId <VIA694,AWRDACPI,42302e31>, AslId <AWRD,00000000>
acpi0: SCI interrupting at int 3
acpi0: fixed-feature power button present
ACPI Object Type 'Processor' (0x0c) at acpi0 not configured
ACPI Object Type 'Processor' (0x0c) at acpi0 not configured
acpibut0 at acpi0 (PNP0C0C): ACPI Power Button
PNP0C01 at acpi0 not configured
PNP0A03 at acpi0 not configured
PNP0C0F at acpi0 not configured
PNP0C0F at acpi0 not configured
PNP0C0F at acpi0 not configured
PNP0C0F at acpi0 not configured
PNP0C02 at acpi0 not configured
PNP0000 at acpi0 not configured
PNP0200 at acpi0 not configured
PNP0100 at acpi0 not configured
PNP0B00 at acpi0 not configured
PNP0800 at acpi0 not configured
npx0 at acpi0 (PNP0C04)
npx0: io 0xf0-0xff irq 13
npx0: using exception 16
PNP0700 at acpi0 not configured
com0 at acpi0 (PNP0501-1)
com0: io 0x3f8-0x3ff irq 4
com0: ns16550a, working fifo
com0: console
lpt0 at acpi0 (PNP0400-1)
lpt0: io 0x378-0x37f irq 7
PNP0C0B at acpi0 not configured
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 0x1106 product 0x0691 (rev. 0xc4)
agp0 at pchb0: aperture at 0xd0000000, size 0x10000000
ppb0 at pci0 dev 1 function 0: vendor 0x1106 product 0x8598 (rev. 0x00)
pci1 at ppb0 bus 1
pci1: i/o space, memory space enabled
pcib0 at pci0 dev 7 function 0
pcib0: vendor 0x1106 product 0x0596 (rev. 0x23)
viaide0 at pci0 dev 7 function 1
viaide0: VIA Technologies VT82C596A (Apollo Pro) ATA66 controller
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
viaide0: secondary channel configured to compatibility mode
viaide0: secondary channel interrupting at ioapic0 pin 15 (irq 15)
atabus1 at viaide0 channel 1
uhci0 at pci0 dev 7 function 2: vendor 0x1106 product 0x3038 (rev. 0x11)
uhci0: interrupting at ioapic0 pin 12 (irq 12)
usb0 at uhci0: USB revision 1.0
uhub0 at usb0
uhub0: vendor 0x1106 UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
pchb1 at pci0 dev 7 function 3
pchb1: vendor 0x1106 product 0x3050 (rev. 0x30)
cmpci0 at pci0 dev 8 function 0: vendor 0x13f6 product 0x0111 (rev. 0x10)
cmpci0: interrupting at ioapic0 pin 12 (irq 12)
audio0 at cmpci0: full duplex, mmap, independent
opl0 at cmpci0: model OPL3: LR swapped
midi0 at opl0: CMPCI Yamaha OPL3
mpu0 at cmpci0
midi1 at mpu0: CMPCI MPU-401 MIDI UART
ex0 at pci0 dev 13 function 0: 3Com 3c905B-TX 10/100 Ethernet (rev. 0x30)
ex0: interrupting at ioapic0 pin 10 (irq 10)
ex0: MAC address 00:10:5a:0f:35:6f
exphy0 at ex0 phy 24: 3Com internal media interface
exphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
ohci0 at pci0 dev 14 function 0: vendor 0x1033 product 0x0035 (rev. 0x41)
ohci0: interrupting at ioapic0 pin 5 (irq 5)
ohci0: OHCI version 1.0
usb1 at ohci0: USB revision 1.0
uhub1 at usb1
uhub1: vendor 0x1033 OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub1: 3 ports with 3 removable, self powered
ohci1 at pci0 dev 14 function 1: vendor 0x1033 product 0x0035 (rev. 0x41)
ohci1: interrupting at ioapic0 pin 11 (irq 11)
ohci1: OHCI version 1.0
usb2 at ohci1: USB revision 1.0
uhub2 at usb2
uhub2: vendor 0x1033 OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub2: 2 ports with 2 removable, self powered
ehci0 at pci0 dev 14 function 2: vendor 0x1033 product 0x00e0 (rev. 0x02)
ehci0: interrupting at ioapic0 pin 12 (irq 12)
ehci0: EHCI version 0.95
ehci0: companion controllers, 3 ports each: ohci0 ohci1
usb3 at ehci0: USB revision 2.0
uhub3 at usb3
uhub3: vendor 0x1033 EHCI root hub, class 9/0, rev 2.00/1.00, addr 1
uhub3: 5 ports with 5 removable, self powered
pdcide0 at pci0 dev 15 function 0
pdcide0: Promise Ultra133/ATA Bus Master IDE Accelerator (rev. 0x02)
pdcide0: bus-master DMA support present
pdcide0: primary channel configured to native-PCI mode
pdcide0: using ioapic0 pin 11 (irq 11) for native-PCI interrupt
atabus2 at pdcide0 channel 0
pdcide0: secondary channel configured to native-PCI mode
atabus3 at pdcide0 channel 1
isa0 at pcib0
lm0 at isa0 port 0x290-0x297: W83782D
pcppi0 at isa0 port 0x61
midi2 at pcppi0: PC speaker
sysbeep0 at pcppi0
fdc0 at isa0 port 0x3f0-0x3f7 irq 6 drq 2
ioapic0: enabling
fd0 at fdc0 drive 0: 1.44MB, 80 cyl, 2 head, 18 sec
atapibus0 at atabus0: 2 targets
atapibus0 drive 0: <_NEC DV-5700A, , 1.91> cdrom removable not configured

(system never proceeds past this)

On a working system, dmesg is:

NetBSD 1.6ZC (INTREPID.MP.ACPI) #0: Sun Oct  5 16:49:29 PDT 2003
        scotte@intrepid:/usr/src/sys/arch/i386/compile/INTREPID.MP.ACPI
total memory = 511 MB
avail memory = 471 MB
using 6144 buffers containing 26292 KB of memory
BIOS32 rev. 0 found at 0xfb2a0
mainbus0 (root)
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Intel Pentium III (686-class), 602.25 MHz, id 0x673
cpu0: features 387fbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR>
cpu0: features 387fbff<PGE,MCA,CMOV,PAT,PSE36,PN,MMX>
cpu0: features 387fbff<FXSR,SSE>
cpu0: I-cache 16 KB 32b/line 4-way, D-cache 16 KB 32b/line 4-way
cpu0: L2 cache 512 KB 32b/line 4-way
cpu0: ITLB 32 4 KB entries 4-way, 2 4 MB entries fully associative
cpu0: DTLB 64 4 KB entries 4-way, 8 4 MB entries 4-way
cpu0: serial number 0000-0673-0003-899B-4AD3-E890
cpu0: calibrating local timer
cpu0: apic clock running at 133 MHz
cpu0: 32 page colors
cpu1 at mainbus0: apid 1 (application processor)
cpu1: starting
cpu1: Intel Pentium III (686-class), 602.20 MHz, id 0x673
cpu1: features 387fbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR>
cpu1: features 387fbff<PGE,MCA,CMOV,PAT,PSE36,PN,MMX>
cpu1: features 387fbff<FXSR,SSE>
cpu1: I-cache 16 KB 32b/line 4-way, D-cache 16 KB 32b/line 4-way
cpu1: L2 cache 512 KB 32b/line 4-way
cpu1: ITLB 32 4 KB entries 4-way, 2 4 MB entries fully associative
cpu1: DTLB 64 4 KB entries 4-way, 8 4 MB entries 4-way
cpu1: serial number 0000-0673-0001-7410-01B6-49C8
ioapic0 at mainbus0 apid 2 (I/O APIC)
ioapic0: pa 0xfec00000, version 11, 24 pins
acpi0 at mainbus0
acpi0: using Intel ACPI CA subsystem version 20030228
acpi0: X/RSDT: OemId <VIA694,AWRDACPI,42302e31>, AslId <AWRD,00000000>
acpi0: SCI interrupting at int 3
acpi0: fixed-feature power button present
ACPI Object Type 'Processor' (0x0c) at acpi0 not configured
ACPI Object Type 'Processor' (0x0c) at acpi0 not configured
acpibut0 at acpi0 (PNP0C0C): ACPI Power Button
PNP0C01 at acpi0 not configured
PNP0A03 at acpi0 not configured
PNP0C0F at acpi0 not configured
PNP0C0F at acpi0 not configured
PNP0C0F at acpi0 not configured
PNP0C0F at acpi0 not configured
PNP0C02 at acpi0 not configured
PNP0000 at acpi0 not configured
PNP0200 at acpi0 not configured
PNP0100 at acpi0 not configured
PNP0B00 at acpi0 not configured
PNP0800 at acpi0 not configured
npx0 at acpi0 (PNP0C04)
npx0: io 0xf0-0xff irq 13
npx0: using exception 16
PNP0700 at acpi0 not configured
com0 at acpi0 (PNP0501-1)
com0: io 0x3f8-0x3ff irq 4
com0: ns16550a, working fifo
com0: console
lpt0 at acpi0 (PNP0400-1)
lpt0: io 0x378-0x37f irq 7
PNP0C0B at acpi0 not configured
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 0x1106 product 0x0691 (rev. 0xc4)
agp0 at pchb0: aperture at 0xd0000000, size 0x10000000
ppb0 at pci0 dev 1 function 0: vendor 0x1106 product 0x8598 (rev. 0x00)
pci1 at ppb0 bus 1
pci1: i/o space, memory space enabled
pcib0 at pci0 dev 7 function 0
pcib0: vendor 0x1106 product 0x0596 (rev. 0x23)
pciide0 at pci0 dev 7 function 1
pciide0: VIA Technologies VT82C596A (Apollo Pro) ATA66 controller
pciide0: bus-master DMA support present
pciide0: primary channel configured to compatibility mode
pciide0: primary channel interrupting at ioapic0 pin 14 (irq 14)
pciide0: secondary channel configured to compatibility mode
pciide0: secondary channel interrupting at ioapic0 pin 15 (irq 15)
uhci0 at pci0 dev 7 function 2: vendor 0x1106 product 0x3038 (rev. 0x11)
uhci0: interrupting at ioapic0 pin 12 (irq 12)
usb0 at uhci0: USB revision 1.0
uhub0 at usb0
uhub0: vendor 0x1106 UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
pchb1 at pci0 dev 7 function 3
pchb1: vendor 0x1106 product 0x3050 (rev. 0x30)
cmpci0 at pci0 dev 8 function 0: vendor 0x13f6 product 0x0111 (rev. 0x10)
cmpci0: interrupting at ioapic0 pin 12 (irq 12)
audio0 at cmpci0: full duplex, mmap, independent
opl0 at cmpci0: model OPL3: LR swapped
midi at opl0 not configured
mpu0 at cmpci0
midi at mpu0 not configured
ex0 at pci0 dev 13 function 0: 3Com 3c905B-TX 10/100 Ethernet (rev. 0x30)
ex0: interrupting at ioapic0 pin 10 (irq 10)
ex0: MAC address 00:10:5a:0f:35:6f
exphy0 at ex0 phy 24: 3Com internal media interface
exphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
ohci0 at pci0 dev 14 function 0: vendor 0x1033 product 0x0035 (rev. 0x41)
ohci0: interrupting at ioapic0 pin 5 (irq 5)
ohci0: OHCI version 1.0
usb1 at ohci0: USB revision 1.0
uhub1 at usb1
uhub1: vendor 0x1033 OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub1: 3 ports with 3 removable, self powered
ohci1 at pci0 dev 14 function 1: vendor 0x1033 product 0x0035 (rev. 0x41)
ohci1: interrupting at ioapic0 pin 11 (irq 11)
ohci1: OHCI version 1.0
usb2 at ohci1: USB revision 1.0
uhub2 at usb2
uhub2: vendor 0x1033 OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub2: 2 ports with 2 removable, self powered
ehci0 at pci0 dev 14 function 2: vendor 0x1033 product 0x00e0 (rev. 0x02)
ehci0: interrupting at ioapic0 pin 12 (irq 12)
ehci0: EHCI version 0.95
ehci0: companion controllers, 3 ports each: ohci0 ohci1
usb3 at ehci0: USB revision 2.0
uhub3 at usb3
uhub3: vendor 0x1033 EHCI root hub, class 9/0, rev 2.00/1.00, addr 1
uhub3: 5 ports with 5 removable, self powered
pciide1 at pci0 dev 15 function 0
pciide1: Promise Ultra133/ATA Bus Master IDE Accelerator (rev. 0x02)
pciide1: bus-master DMA support present
pciide1: primary channel configured to native-PCI mode
pciide1: using ioapic0 pin 11 (irq 11) for native-PCI interrupt
pciide1: secondary channel configured to native-PCI mode
isa0 at pcib0
lm0 at isa0 port 0x290-0x297: W83782D
pcppi0 at isa0 port 0x61
sysbeep0 at pcppi0
fdc0 at isa0 port 0x3f0-0x3f7 irq 6 drq 2
ioapic0: enabling
atapibus0 at pciide0 channel 0: 2 targets
cd0 at atapibus0 drive 0: <_NEC DV-5700A, , 1.91> cdrom removable
cd0: 32-bit data port
cd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 2 (Ultra/33)
cd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 2 (Ultra/33) (using DMA data
transfers)
wd0 at pciide1 channel 0 drive 0: <WDC WD1200JB-75CRA0>
wd0: drive supports 16-sector PIO transfers, LBA addressing
wd0: 111 GB, 232514 cyl, 16 head, 63 sec, 512 bytes/sect x 234375000 sectors
wd0: 32-bit data port
wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 5 (Ultra/100)
wd0(pciide1:0:0): using PIO mode 4, Ultra-DMA mode 5 (Ultra/100) (using DMA data
 transfers)
wd1 at pciide1 channel 1 drive 0: <WDC WD1200JB-75CRA0>
wd1: drive supports 16-sector PIO transfers, LBA addressing
wd1: 111 GB, 232514 cyl, 16 head, 63 sec, 512 bytes/sect x 234375000 sectors
wd1: 32-bit data port
wd1: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 5 (Ultra/100)
wd1(pciide1:1:0): using PIO mode 4, Ultra-DMA mode 5 (Ultra/100) (using DMA data
 transfers)
fd0 at fdc0 drive 0: 1.44MB, 80 cyl, 2 head, 18 sec
boot device: wd0
root on wd0a dumps on wd0b
root file system type: ffs
cpu1: CPU 1 running
uhub1: device problem, disabling port 3
 (and system continued to boot)

>How-To-Repeat:
	
Boot on my box with a 1.6ZD kernel! :-)
>Fix:
	
The patch posted by Manuel Bouyer in http://mail-index.netbsd.org/current-users/2003/10/14/0032.html makes no difference in the problem.
>Release-Note:
>Audit-Trail:
>Unformatted: