Subject: Spectacular Train Wreck: WD DMA bad on tweaked Alpha...
To: Manuel Bouyer <bouyer@netbsd.org>
From: Matthew Jacob <mjacob@feral.com>
List: port-alpha
Date: 05/27/2001 17:15:19
(Top of Tree -current)

Hmm- I changed MAXBSIZE to 128*1024 && MAXPHYS to 1024*1024.....

but then when I was doing some large filesystem XFER stuff on a SCSI based
filesystem (I boot off of IDE on this PC164), apparently in the swap area, I
got....

What's a poor fella to do :-)?

I rather suspect that some limit checks about breaking up large transfers for
DMA is in order here...


....
isp2: fwoptions from nvram are 0xb
scsibus2 at isp2: 256 targets, 8 luns per target
pciide0 at pci0 dev 11 function 0: CMD Technology PCI0646 (rev. 0x01)
pciide0: bus-master DMA support present
pciide0: primary channel wired to compatibility mode
wd0 at pciide0 channel 0 drive 0: <WDC AC32500H>
wd0: drive supports 16-sector PIO transfers, LBA addressing
wd0: 2441 MB, 4960 cyl, 16 head, 63 sec, 512 bytes/sect x 4999680 sectors
wd0: 32-bit data port
wd0: drive supports PIO mode 4, DMA mode 2
pciide0: primary channel interrupting at isa irq 14
wd0(pciide0:0:0): using PIO mode 4, DMA mode 2 (using DMA data transfers
....

pciide0:0: unable to load xfer DMA map fordrive 0, error=22
wd0b: DMA error writing fsbn 6976 of 6976-7151 (wd0 bn 4038976; cn 4006 tn 14
sn 46), retrying
pciide0:0: unable to load xfer DMA map fordrive 0, error=22
wd0b: DMA error writing fsbn 6976 of 6976-7151 (wd0 bn 4038976; cn 4006 tn 14
sn 46), retrying
pciide0:0: unable to load xfer DMA map fordrive 0, error=22
wd0b: DMA error writing fsbn 6976 of 6976-7151 (wd0 bn 4038976; cn 4006 tn 14
sn 46), retrying
pciide0:0: unable to load xfer DMA map fordrive 0, error=22
wd0b: DMA error writing fsbn 6976 of 6976-7151 (wd0 bn 4038976; cn 4006 tn 14
sn 46), retrying
wd0: soft error (corrected)
pciide0:0: unable to load xfer DMA map fordrive 0, error=22
wd0b: DMA error writing fsbn 10480 of 10480-10671 (wd0 bn 4042480; cn 4010 tn
6 sn 22), retrying
pciide0:0: unable to load xfer DMA map fordrive 0, error=22
wd0b: DMA error writing fsbn 10480 of 10480-10671 (wd0 bn 4042480; cn 4010 tn
6 sn 22), retrying
pciide0:0: unable to load xfer DMA map fordrive 0, error=22
wd0b: DMA error writing fsbn 10480 of 10480-10671 (wd0 bn 4042480; cn 4010 tn
6 sn 22), retrying
pciide0:0: unable to load xfer DMA map fordrive 0, error=22
wd0b: DMA error writing fsbn 10480 of 10480-10671 (wd0 bn 4042480; cn 4010 tn
6 sn 22), retrying
wd0: soft error (corrected)
pciide0:0: unable to load xfer DMA map fordrive 0, error=22
wd0b: DMA error writing fsbn 18608 of 18608-18767 (wd0 bn 4050608; cn 4018 tn
7 sn 23), retrying
pciide0:0: unable to load xfer DMA map fordrive 0, error=22
wd0b: DMA error writing fsbn 18608 of 18608-18767 (wd0 bn 4050608; cn 4018 tn
7 sn 23), retrying
pciide0:0: unable to load xfer DMA map fordrive 0, error=22
wd0b: DMA error writing fsbn 18608 of 18608-18767 (wd0 bn 4050608; cn 4018 tn
7 sn 23), retrying
pciide0:0: unable to load xfer DMA map fordrive 0, error=22
wd0b: DMA error writing fsbn 18608 of 18608-18767 (wd0 bn 4050608; cn 4018 tn
7 sn 23), retrying
wd0: soft error (corrected)
halted CPU 0

halt code = 2
kernel stack not valid halt
PC = 12011e0f8