Subject: UBC breaks my IDE disk!?!
To: None <current-users@netbsd.org>
From: Urban Boquist <urban@boquist.net>
List: current-users
Date: 02/03/2001 12:02:38
Hi all,

on my laptop, a Toshiba Portege 7020CT the following holds:

- a kernel from 2000-11-25, i.e. right before UBC, works just great.

- a kernel from 2000-11-28, i.e. with UBC, fails miserably when
  putting some pressure on the hard disk. I get lots of the infamous:

    pciide0:0:0: lost interrupt
            type: ata tc_bcount: 65536 tc_skip: 0
    pciide0:0:0: bus-master DMA error: status=0x22
    pciide0:0:0: bus-master DMA error: missing interrupt, status=0x22
    wd0e: DMA error reading fsbn 7200512 of 7200512-7200639 (wd0 bn
    9986372; cn 10567 tn 8 sn 53), retrying

  even when the driver downgrades to not using DMA at all the problem
  continues.

  Moreover, all the errors are reported as "soft error (corrected)"
  but they still result in corrupted files... ;-(

- more recent -current kernels also fail in the same way, the last one
  I tried was 2000-02-01.

Although one should never say this in the i386 world, I really don't
think the hardware is the problem here. With the 2000-11-25 kernel I
never see any IDE errors or corrupted files, and I have pounded on the
machine very hard...

Any ideas would be greatly appreciated! I'm including full dmesg below
for the working and a non-working kernel.

Thanks,

        -- Urban

-------------------------------------------------------------------------------
2000-11-25 kernel, working:

NetBSD 1.5K (ILLER-$Revision: 1.28 $) #0: Fri Feb  2 23:55:15 CET 2001
    root@groda:/usr/tabort/sys.2000-11-25/arch/i386/compile/ILLER
cpu0: Intel Celeron (Mendocino) (686-class), 366.61 MHz
cpu0: I-cache 16K 32b/line 4-way, D-cache 16K 32b/line 2/4-way
cpu0: L2 cache 256K 32b/line 4-way
cpu0: features 183f9ff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR>
cpu0: features 183f9ff<PGE,MCA,CMOV,FGPAT,PSE36,MMX,FXSR>
total memory = 127 MB
avail memory = 115 MB
using 1657 buffers containing 6628 KB of memory
BIOS32 rev. 0 found at 0xfc36f
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: Intel 82443BX Host Bridge/Controller (AGP disabled) (rev. 0x03)
pchb0: fixing Idle/Pipeline DRAM Leadoff Timing
vga0 at pci0 dev 4 function 0: Neomagic MagicMedia 256AV VGA (rev. 0x12)
wsdisplay0 at vga0: console (80x25, vt100 emulation)
pcib0 at pci0 dev 5 function 0
pcib0: Intel 82371AB PCI-to-ISA Bridge (PIIX4) (rev. 0x02)
pciide0 at pci0 dev 5 function 1: Intel 82371AB IDE controller (PIIX4) (rev. 0x01)
pciide0: bus-master DMA support present
pciide0: primary channel wired to compatibility mode
wd0 at pciide0 channel 0 drive 0: <IBM-DJSA-210>
wd0: drive supports 16-sector pio transfers, lba addressing
wd0: 6194 MB, 13424 cyl, 15 head, 63 sec, 512 bytes/sect x 12685680 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 2 (Ultra/33) (using DMA data transfers)
pciide0: secondary channel wired to compatibility mode
pciide0: disabling secondary channel (no drives)
uhci0 at pci0 dev 5 function 2: Intel 82371AB USB Host Controller (PIIX4) (rev. 0x01)
uhci0: interrupting at irq 11
usb0 at uhci0: USB revision 1.0
uhub0 at usb0
uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
Intel 82371AB Power Management Controller (PIIX4) (miscellaneous bridge, revision 0x02) at pci0 dev 5 function 3 not configured
Lucent Technologies K56flex DSVD LTMODEM (miscellaneous communications, revision 0x01) at pci0 dev 7 function 0 not configured
Toshiba Fast Infrared Type O (miscellaneous communications, revision 0x23) at pci0 dev 9 function 0 not configured
cbb0 at pci0 dev 11 function 0: Toshiba ToPIC95B CardBus-PCI Bridge (rev. 0x07)
cbb1 at pci0 dev 11 function 1: Toshiba ToPIC95B CardBus-PCI Bridge (rev. 0x07)
ESS Technology Inc Maestro 2E PCI Audio Accelerator (audio multimedia, revision 0x10) at pci0 dev 12 function 0 not configured
C-Cube Microsystems Cinemaster C 3.0 DVD Decoder (miscellaneous multimedia, revision 0x02) at pci0 dev 13 function 0 not configured
isa0 at pcib0
com0 at isa0 port 0x3f8-0x3ff irq 4: 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
npx0 at isa0 port 0xf0-0xff: using exception 16
fdc0 at isa0 port 0x3f0-0x3f7 irq 6 drq 2
cbb0: interrupting at irq 11
cbb0: cacheline 0x0 lattimer 0x0
cbb0: bhlc 0x820000 lscp 0x141400
cardslot0 at cbb0 slot 0 flags 0
cardbus0 at cardslot0: bus 20 device 0 cacheline 0x0, lattimer 0x0
pcmcia0 at cardslot0
cbb1: interrupting at irq 11
cbb1: cacheline 0x0 lattimer 0x0
cbb1: bhlc 0x820000 lscp 0x151500
cardslot1 at cbb1 slot 1 flags 0
cardbus1 at cardslot1: bus 21 device 0 cacheline 0x0, lattimer 0x0
pcmcia1 at cardslot1
apm0 at mainbus0: Power Management spec V1.2
biomask ef6d netmask ef6d ttymask ffef
IPsec: Initialized Security Association Processing.
ray0 at pcmcia0 function 0: WebGear, PC Card WLAN Adapter, Version 4.88 Jan 1999
ray0: firmware version 85
ray0: 802.11 address 00:00:f1:11:61:c9
ep0 at pcmcia1 function 0: 3Com 3c589 10Mbps Ethernet
ep0: address 00:10:4b:7f:41:6f, 8KB byte-wide FIFO, 5:3 Rx:Tx split
ep0: 10baseT, 10base5, 10base2 (default 10baseT)
ums0 at uhub0 port 1 configuration 1 interface 0
ums0: Logitech USB-PS/2 Mouse, rev 1.00/1.10, addr 2, iclass 3/1
ums0: 3 buttons and Z dir.
wsmouse1 at ums0 mux 0
boot device: wd0
root on wd0a dumps on wd0b
wsdisplay0: screen 1 added (80x25, vt100 emulation)
wsdisplay0: screen 2 added (80x25bf, vt100 emulation)
wsdisplay0: screen 3 added (80x50, vt100 emulation)
wsdisplay0: screen 4 added (80x25, vt100 emulation)
wsdisplay0: screen 5 added (80x25, vt100 emulation)
wsdisplay0: screen 6 added (80x25, vt100 emulation)
wsdisplay0: screen 7 added (80x25, vt100 emulation)
wsmux1: connecting to wsdisplay0
-------------------------------------------------------------------------------


-------------------------------------------------------------------------------
2000-11-28 kernel, non-working:

NetBSD 1.5L (ILLER-$Revision: 1.28 $) #0: Sat Feb  3 00:59:05 CET 2001
    root@groda:/usr/tabort/sys.2000-11-28/arch/i386/compile/ILLER
cpu0: Intel Celeron (Mendocino) (686-class), 366.62 MHz
cpu0: I-cache 16K 32b/line 4-way, D-cache 16K 32b/line 2/4-way
cpu0: L2 cache 256K 32b/line 4-way
cpu0: features 183f9ff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR>
cpu0: features 183f9ff<PGE,MCA,CMOV,FGPAT,PSE36,MMX,FXSR>
total memory = 127 MB
avail memory = 115 MB
using 1657 buffers containing 6628 KB of memory
BIOS32 rev. 0 found at 0xfc36f
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: Intel 82443BX Host Bridge/Controller (AGP disabled) (rev. 0x03)
vga0 at pci0 dev 4 function 0: Neomagic MagicMedia 256AV VGA (rev. 0x12)
wsdisplay0 at vga0: console (80x25, vt100 emulation)
pcib0 at pci0 dev 5 function 0
pcib0: Intel 82371AB PCI-to-ISA Bridge (PIIX4) (rev. 0x02)
pciide0 at pci0 dev 5 function 1: Intel 82371AB IDE controller (PIIX4) (rev. 0x01)
pciide0: bus-master DMA support present
pciide0: primary channel wired to compatibility mode
wd0 at pciide0 channel 0 drive 0: <IBM-DJSA-210>
wd0: drive supports 16-sector pio transfers, lba addressing
wd0: 6194 MB, 13424 cyl, 15 head, 63 sec, 512 bytes/sect x 12685680 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 2 (Ultra/33) (using DMA data transfers)
pciide0: secondary channel wired to compatibility mode
pciide0: disabling secondary channel (no drives)
uhci0 at pci0 dev 5 function 2: Intel 82371AB USB Host Controller (PIIX4) (rev. 0x01)
uhci0: interrupting at irq 11
usb0 at uhci0: USB revision 1.0
uhub0 at usb0
uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
Intel 82371AB Power Management Controller (PIIX4) (miscellaneous bridge, revision 0x02) at pci0 dev 5 function 3 not configured
Lucent Technologies K56flex DSVD LTMODEM (miscellaneous communications, revision 0x01) at pci0 dev 7 function 0 not configured
Toshiba Fast Infrared Type O (miscellaneous communications, revision 0x23) at pci0 dev 9 function 0 not configured
cbb0 at pci0 dev 11 function 0: Toshiba ToPIC95B CardBus-PCI Bridge (rev. 0x07)
cbb1 at pci0 dev 11 function 1: Toshiba ToPIC95B CardBus-PCI Bridge (rev. 0x07)
ESS Technology Inc Maestro 2E PCI Audio Accelerator (audio multimedia, revision 0x10) at pci0 dev 12 function 0 not configured
C-Cube Microsystems Cinemaster C 3.0 DVD Decoder (miscellaneous multimedia, revision 0x02) at pci0 dev 13 function 0 not configured
isa0 at pcib0
com0 at isa0 port 0x3f8-0x3ff irq 4: 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
npx0 at isa0 port 0xf0-0xff: using exception 16
fdc0 at isa0 port 0x3f0-0x3f7 irq 6 drq 2
cbb0: interrupting at irq 11
cbb0: cacheline 0x0 lattimer 0x0
cbb0: bhlc 0x820000 lscp 0x141400
cardslot0 at cbb0 slot 0 flags 0
cardbus0 at cardslot0: bus 20 device 0 cacheline 0x0, lattimer 0x0
pcmcia0 at cardslot0
cbb1: interrupting at irq 11
cbb1: cacheline 0x0 lattimer 0x0
cbb1: bhlc 0x820000 lscp 0x151500
cardslot1 at cbb1 slot 1 flags 0
cardbus1 at cardslot1: bus 21 device 0 cacheline 0x0, lattimer 0x0
pcmcia1 at cardslot1
apm0 at mainbus0: Power Management spec V1.2
biomask ef6d netmask ef6d ttymask ffef
IPsec: Initialized Security Association Processing.
ray0 at pcmcia0 function 0: WebGear, PC Card WLAN Adapter, Version 4.88 Jan 1999
ray0: firmware version 85
ray0: 802.11 address 00:00:f1:11:61:c9
ep0 at pcmcia1 function 0: 3Com 3c589 10Mbps Ethernet
ep0: address 00:10:4b:7f:41:6f, 8KB byte-wide FIFO, 5:3 Rx:Tx split
ep0: 10baseT, 10base5, 10base2 (default 10baseT)
ums0 at uhub0 port 1 configuration 1 interface 0
ums0: Logitech USB-PS/2 Mouse, rev 1.00/1.10, addr 2, iclass 3/1
ums0: 3 buttons and Z dir.
wsmouse1 at ums0 mux 0
boot device: wd0
root on wd0a dumps on wd0b
wsdisplay0: screen 1 added (80x25, vt100 emulation)
wsdisplay0: screen 2 added (80x25bf, vt100 emulation)
wsdisplay0: screen 3 added (80x50, vt100 emulation)
wsdisplay0: screen 4 added (80x25, vt100 emulation)
wsdisplay0: screen 5 added (80x25, vt100 emulation)
wsdisplay0: screen 6 added (80x25, vt100 emulation)
wsdisplay0: screen 7 added (80x25, vt100 emulation)
wsmux1: connecting to wsdisplay0
pciide0:0:0: lost interrupt
	type: ata tc_bcount: 65536 tc_skip: 0
pciide0:0:0: bus-master DMA error: status=0x22
pciide0:0:0: bus-master DMA error: missing interrupt, status=0x22
wd0e: DMA error reading fsbn 7200512 of 7200512-7200639 (wd0 bn 9986372; cn 10567 tn 8 sn 53), retrying
pciide0:0:0: lost interrupt
	type: ata tc_bcount: 65536 tc_skip: 0
pciide0:0:0: bus-master DMA error: status=0x22
pciide0:0:0: bus-master DMA error: missing interrupt, status=0x22
wd0e: DMA error reading fsbn 7200512 of 7200512-7200639 (wd0 bn 9986372; cn 10567 tn 8 sn 53), retrying
pciide0:0:0: lost interrupt
	type: ata tc_bcount: 65536 tc_skip: 0
pciide0:0:0: bus-master DMA error: status=0x22
pciide0:0:0: bus-master DMA error: missing interrupt, status=0x22
wd0e: DMA error reading fsbn 7200512 of 7200512-7200639 (wd0 bn 9986372; cn 10567 tn 8 sn 53), retrying
pciide0:0:0: lost interrupt
	type: ata tc_bcount: 65536 tc_skip: 0
pciide0:0:0: bus-master DMA error: status=0x22
pciide0:0:0: bus-master DMA error: missing interrupt, status=0x22
wd0: transfer error, downgrading to Ultra-DMA mode 1
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 1 (using DMA data transfers)
wd0e: DMA error reading fsbn 7200512 of 7200512-7200639 (wd0 bn 9986372; cn 10567 tn 8 sn 53), retrying
wd0: soft error (corrected)
-------------------------------------------------------------------------------