Subject: kern/11293: UDMA is unstable on Iwill VD133PL (Apollo MVP3, IDE rev 0x10)
To: None <gnats-bugs@gnats.netbsd.org>
From: None <toddpw@apricot.com>
List: netbsd-bugs
Date: 10/23/2000 02:53:11
>Number:         11293
>Category:       kern
>Synopsis:       UDMA is unstable on Iwill VD133PL (Apollo MVP3, IDE rev 0x10)
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Oct 23 02:53:00 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator:     Todd Whitesel
>Release:        1.4.2, 1.5_ALPHA2
>Organization:
Anime Expo
>Environment:
NetBSD kei 1.5_ALPHA2 NetBSD 1.5_ALPHA2 (GENERIC) #2: Sun Oct 22 17:55:45 PDT 2000     toddpw@vader.toddpw.net:/usr/src/sys/arch/i386/compile/GENERIC i386

>Description:
After 5 minutes of continual load (make -j2 or two parallel compiles),
processes get spurious segv's and eventually there is a kernel mode fault.
Problem occurs with both ATA66 and ATA33 drives, but not if pciide is disabled.
The following dmesg is taken from a working kernel I built on a different machine.

NetBSD 1.5_ALPHA2 (GENERIC) #2: Sun Oct 22 17:55:45 PDT 2000
    toddpw@vader.toddpw.net:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: Intel Pentium III (E) (686-class)
total memory = 127 MB 
avail memory = 113 MB
using 1658 buffers containing 6632 KB of memory
BIOS32 rev. 0 found at 0xfb380
mainbus0 (root)
pci0 at mainbus0 bus 0: configuration mode 1
pci0: i/o space, memory space enabled
pchb0 at pci0 dev 0 function 0
pchb0: VIA Technologies VT82C691 (Apollo Pro) Host-PCI (rev. 0xc2)
ppb0 at pci0 dev 1 function 0: VIA Technologies VT82C598 (Apollo MVP3) PCI-AGP (
rev. 0x00)
pci1 at ppb0 bus 1
pci1: i/o space, memory space enabled
vga1 at pci1 dev 0 function 0: S3 Trio3D/2X (rev. 0x02)
wsdisplay0 at vga1: console (80x25, vt100 emulation)
pcib0 at pci0 dev 7 function 0
pcib0: VIA Technologies VT82C686A (Apollo KX133) PCI-ISA Bridge (rev. 0x22)
VIA Technologies VT82C586A IDE Controller (IDE mass storage, interface 0x8a, rev
ision 0x10) at pci0 dev 7 function 1 not configured
pchb1 at pci0 dev 7 function 4
pchb1: VIA Technologies VT82C686A SMBus Controller (rev. 0x30)
auvia0 at pci0 dev 7 function 5: VIA VT82C686A AC'97 Audio (rev H)
auvia0: interrupting at irq 11  
auvia0: ADS72 codec; headphone, Analog Devices Phat Stereo
audio0 at auvia0: full duplex, mmap, independent
ne2 at pci0 dev 11 function 0: RealTek 8029 Ethernet
ne2: 10base2, 10baseT, 10baseT-FDX, auto, default [0x00 0x30] auto
ne2: Ethernet address 00:80:c8:c1:8a:78
ne2: interrupting at irq 12
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
wdc0 at isa0 port 0x1f0-0x1f7 irq 14 
wd0 at wdc0 channel 0 drive 0: <ST310210A> 
wd0: drive supports 16-sector pio transfers, lba addressing
wd0: 9729 MB, 16383 cyl, 16 head, 63 sec, 512 bytes/sect x 19925880 sectors
wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 4
wdc1 at isa0 port 0x170-0x177 irq 15
atapibus0 at wdc1 channel 0
cd0 at atapibus0 drive 0: <FX162T4, , p01> type 5 cdrom removable
cd0: drive supports PIO mode 3, DMA mode 2
lpt0 at isa0 port 0x378-0x37b irq 7
pcppi0 at isa0 port 0x61
midi0 at pcppi0: PC speaker
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 e765 netmask f765 ttymask f7e7
boot device: wd0
root on wd0a dumps on wd0b
root file system type: ffs

>How-To-Repeat:
Buy an Iwill VD133Pro from www.motherboards.com.
You actually get a VD133PL but the price is correct for that, so no biggie.
Build a midrange system (P3 733EB, 128MB PC133, Barracuda II ATA66).
Install it and notice the installer get spurious errors, especially with FTP install during the extractions.
Run two long compiles on the system and watch it spit chunks after 5 minutes.
(I actually wrote a quick script to repeatedly remove, extract, configure, and make, programs like cvs and ssh.)

>Fix:
Use another machine to compile a kernel without pciide0,
and install the disk on this machine.
Remove pciide0 from the GENERIC/INSTALL configs and build a snapshot, then install from that.

These are only workarounds of course.

BTW if someone in the SFbay can jump on this I can loan you a machine.
>Release-Note:
>Audit-Trail:
>Unformatted: