Subject: Re: U10 wd at pciide UDMA problem
To: None <port-sparc64@netbsd.org>
From: FUKAUMI Naoki <naoki@fukaumi.org>
List: port-sparc64
Date: 11/12/2001 13:08:47
On Mon, Nov 12, 2001 at 11:50:22AM +0900, FUKAUMI Naoki wrote:
> I'm compiling GENERIC kernel (2001/11/9) now. And I'll test it soon. If it
> has problem, then I'll change wd flags and test again.

With GENERIC kernel which compiled from 2001/11/9 source,

  :
pciide0 at pci3 dev 3 function 0: CMD Technology PCI0646 (rev. 0x03)
pciide0: bus-master DMA support present
pciide0: primary channel configured to native-PCI mode
pciide0: using ivec 1820 for native-PCI interrupt
wd0 at pciide0 channel 0 drive 0: <ST39140A>
wd0: drive supports 16-sector PIO transfers, LBA addressing
wd0: 8693 MB, 17662 cyl, 16 head, 63 sec, 512 bytes/sect x 17803440 sectors
wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 2 (Ultra/33)
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 2 (Ultra/33) (using DMA data transfers)
pciide0: secondary channel configured to native-PCI mode
atapibus0 at pciide0 channel 1: 2 targets
cd0 at atapibus0 drive 0: <CRD-8322B, 1998/06/30, 1.03> type 5 cdrom removable
cd0: drive supports PIO mode 4, DMA mode 2
cd0(pciide0:1:0): using PIO mode 4, DMA mode 2 (using DMA data transfers)
pcons0 at mainbus0
No counter-timer -- using %tick at 333MHz as system clock.
scsibus0: waiting 2 seconds for devices to settle...
Kernelized RAIDframe activated
root on wd0a dumps on wd0b
wd0: NetBSD disk label corrupted
no file system for wd0 (dev 0xc00)
cannot mount root, error = 79
root device (default wd0a):

It can't boot with UDMA mode 2

Next, GENERIC but wd flags 0x0900 (was 0x0a00)

  :
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 1 (using DMA data transfers)
pciide0: secondary channel configured to native-PCI mode
atapibus0 at pciide0 channel 1: 2 targets
cd0 at atapibus0 drive 0: <CRD-8322B, 1998/06/30, 1.03> type 5 cdrom removable
cd0: drive supports PIO mode 4, DMA mode 2
cd0(pciide0:1:0): using PIO mode 4, DMA mode 2 (using DMA data transfers)
pcons0 at mainbus0
No counter-timer -- using %tick at 333MHz as system clock.
scsibus0: waiting 2 seconds for devices to settle...
Kernelized RAIDframe activated
root on wd0a dumps on wd0b
root file system type: ffs
Enter pathname of shell or RETURN for sh:

It boot UDMA mode 1, but...

# mount -u -w /
pciide0:0:0: lost interrupt
        type: ata tc_bcount: 2048 tc_skip: 0
pciide0:0:0: bus-master DMA error: missing interrupt, status=0x20
wd0a: DMA error writing fsbn 16 of 16-19 (wd0 bn 16; cn 0 tn 0 sn 16), retrying
pciide0:0:0: lost interrupt
        type: ata tc_bcount: 2048 tc_skip: 0
pciide0:0:0: bus-master DMA error: missing interrupt, status=0x21
wd0a: DMA error writing fsbn 16 of 16-19 (wd0 bn 16; cn 0 tn 0 sn 16), retrying
pciide0:0:0: lost interrupt
        type: ata tc_bcount: 2048 tc_skip: 0
pciide0:0:0: bus-master DMA error: missing interrupt, status=0x21
wd0a: DMA error writing fsbn 16 of 16-19 (wd0 bn 16; cn 0 tn 0 sn 16), retrying
pciide0:0:0: lost interrupt
        type: ata tc_bcount: 2048 tc_skip: 0
pciide0:0:0: bus-master DMA error: missing interrupt, status=0x21
wd0a: DMA error writing fsbn 16 of 16-19 (wd0 bn 16; cn 0 tn 0 sn 16), retrying
wd0: soft error (corrected)
pciide0:0:0: lost interrupt
        type: ata tc_bcount: 1024 tc_skip: 0
pciide0:0:0: bus-master DMA error: missing interrupt, status=0x20
wd0a: DMA error writing fsbn 512 of 512-513 (wd0 bn 512; cn 0 tn 8 sn 8), retrying
  :

not usable...

-- 
FUKAUMI Naoki