Subject: piixide intel VX problem
To: None <port-i386@netbsd.org>
From: Wojciech Puchar <wojtek@tensor.3miasto.net>
List: port-i386
Date: 11/09/2003 20:06:33
i have problems using cdrecord with intel VX motherboards and piixide.
2 machines tested, both have same problems. with intel TX chipset it
worked OK on one machine.


the problem:
activities that uses both IDE channels simultanously, most important
cdrecord locks up for a bit with message:
Nov  9 09:42:21 chylonia /netbsd: piixide0:0:0: lost interrupt
Nov  9 09:42:21 chylonia /netbsd:       type: ata tc_bcount: 4096 tc_skip:
0
Nov  9 09:42:21 chylonia /netbsd: piixide0:0:0: bus-master DMA error:
missing interrupt, status=0x20
Nov  9 09:42:22 chylonia /netbsd: wd0b: DMA error reading fsbn 1632 of
1632-1639 (wd0 bn 42592; cn 42
tn 4 sn 4), retrying
Nov  9 09:42:22 chylonia /netbsd: wd0: soft error (corrected)


there is always lost interrupt on disk, never on CD.

probability of this error decreases when:
1) lower recording speed is used
2) no other tasks are active or are doing very little disk I/O

doing dd if=/dev/rwd0d of=/dev/null while cdrecording gives this error
very very quickly.

this error comes when copying lots of data from CD to disk but less often,
and it doesn't mean broken CD-R...

is it known bug, or maybe some workarounds to try?

this computer is IBM PC300GL, before i had some unknown intel VX
motherboard.

both runs well under linux (hm... well as for linux, but doesn't give
errors)



config:

pchb0 at pci0 dev 0 function 0
pchb0: Intel 82437VX System Controller (TVX) (rev. 0x02)
pcib0 at pci0 dev 1 function 0
piixide0 at pci0 dev 1 function 1
piixide0: Intel 82371SB IDE Interface (PIIX3) (rev. 0x00)
piixide0: bus-master DMA support present
piixide0: primary channel wired to compatibility mode
piixide0: primary channel interrupting at irq 14
atabus0 at piixide0 channel 0
piixide0: secondary channel wired to compatibility mode
piixide0: secondary channel interrupting at irq 15
atabus1 at piixide0 channel 1
wd0 at atabus0 drive 0: <Maxtor 2F040J0>
wd0: drive supports 16-sector PIO transfers, LBA addressing
wd0: 39205 MB, 79656 cyl, 16 head, 63 sec, 512 bytes/sect x 80293248
sectors
wd0: 32-bit data port
wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 6 (Ultra/133)
wd0(piixide0:0:0): using PIO mode 4, DMA mode 2 (using DMA data transfers)
atapibus1 at atabus1: 2 targets
cd0 at atapibus1 drive 0: <HL-DT-ST GCE-8520B, , 1.00> cdrom removable
cd0: 32-bit data port
cd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 2 (Ultra/33)
cd0(piixide0:1:0): using PIO mode 4, DMA mode 2 (using DMA data transfers)