Subject: Promise Ultra66 problem on AlphaServer 4100
To: None <port-alpha@netbsd.org>
From: None <tnn@netilium.org>
List: port-alpha
Date: 10/01/2002 17:14:34
I thought about adding a Promise Ultra66 card to my AS4100
for a cheapo ide softraid solution, and ran into problems.
With my testdisk, an udma-capable 4 GB Seagate disk everything
worked fine. newfs'ed, mounted, everything ok.
Tried with a CD-ROM, worked fine.

However when trying with larger disks (60GB WD and 120GB Maxtor)
it reported DMA errors, downgraded, settled on a DMA mode
but didn't even manage to read the disk label correctly.

I tried compiling a kernel without DMA support (flags 0x0002),
but data transfers for the UATA66-disks are still slow
and inconsistent(garbled data gets read or written, it seems).

Any ideas?
Does anyone know if the AlphaServer 4100 has a nonstandard
pci frequency or timings? That's the only reason I can think of,
since the first disk worked fine, and someone else apparently
got the card to run on alpha.
( http://mail-index.netbsd.org/port-alpha/2000/08/19/0002.html )

All the hardware works fine when placed in an i386 box.

Here's a dmesg of the box, although _not_ with the drives attached.
If you think that will be useful drop a mail and I'll post it.

NetBSD 1.6 (GENERIC) #0: Mon Sep 30 22:55:25 CEST 2002
    root@hellywood.netilium.org:/export/usr/src/sys/arch/alpha/compile/GENERICAlphaServer 4100 5/466 4MB, 467MHz, s/n AY81408195
8192 byte page size, 1 processor.
total memory = 512 MB
(2064 KB reserved for PROM, 509 MB used by NetBSD)
avail memory = 467 MB
using 3276 buffers containing 26208 KB of memory
mainbus0 (root)
cpu0 at mainbus0: ID 0 (primary), 21164A-2
cpu0: Architecture extensions: 1<BWX>
mcbus0 at mainbus0: 4MB BCache
mcmem0 at mcbus0 mid 1: Memory
mcpcia0 at mcbus0 mid 5: PCI Bridge
mcpcia0: Horse Revision 3, Left Handed Saddle Revision 0, CAP Revision 2
pci0 at mcpcia0 bus 0
pci0: i/o space, memory space enabled, rd/line, rd/mult, wr/inv ok
siop0 at pci0 dev 1 function 0: Symbios Logic 53c810 (fast scsi)
siop0: interrupting at kn300 irq 36
scsibus0 at siop0: 8 targets, 8 luns per target
isp0 at pci0 dev 2 function 0: QLogic 1020 Ultra Wide SCSI HBA
isp0: interrupting at kn300 irq 40
scsibus1 at isp0: 16 targets, 8 luns per target
tlp0 at pci0 dev 3 function 0: DECchip 21140A Ethernet, pass 2.0
tlp0: interrupting at kn300 irq 44
tlp0: DEC DE500-AA, Ethernet address 00:00:f8:06:f2:96
nsphy0 at tlp0 phy 5: DP83840 10/100 media interface, rev. 0
nsphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
mcpcia1 at mcbus0 mid 4: PCI Bridge
mcpcia1: Horse Revision 3, Left Handed Saddle Revision 0, CAP Revision 2
pci1 at mcpcia1 bus 0
pci1: i/o space, memory space enabled, rd/line, rd/mult, wr/inv ok
pceb0 at pci1 dev 1 function 0: Intel 82375EB/SB PCI-EISA Bridge (PCEB)
(rev. 0x15)vga0 at pci1 dev 2 function 0: S3 Trio32/64 (rev. 0x54)
wsdisplay0 at vga0 (kbdmux ignored)
tlp1 at pci1 dev 3 function 0: DECchip 21140A Ethernet, pass 2.2
tlp1: interrupting at kn300 irq 12
tlp1: DEC DE500-AA, Ethernet address 00:00:f8:1a:13:a2
nsphy1 at tlp1 phy 5: DP83840 10/100 media interface, rev. 0
nsphy1: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
pciide0 at pci1 dev 4 function 0: Promise Ultra66/ATA Bus Master IDE
Accelerator (rev. 0x01)pciide0: bus-master DMA support present
pciide0: primary channel configured to native-PCI mode
pciide0: using kn300 irq 16 for native-PCI interrupt
pciide0: disabling primary channel (no drives)
pciide0: secondary channel configured to native-PCI mode
pciide0: disabling secondary channel (no drives)
eisa0 at pceb0
eisa0: can't map I/O space for slot 1
eisa0: can't map I/O space for slot 6
isa0 at pceb0
com0 at isa0 port 0x3f8-0x3ff irq 4: ns16550a, working fifo
com0: console
com1 at isa0 port 0x2f8-0x2ff irq 3: ns16550a, working fifo
pckbc0 at isa0 port 0x60-0x64
lpt0 at isa0 port 0x3bc-0x3bf irq 7
pcppi0 at isa0 port 0x61
midi0 at pcppi0: PC speaker
spkr0 at pcppi0
isabeep0 at pcppi0
fdc0 at isa0 port 0x3f0-0x3f7 irq 6 drq 2
fd0 at fdc0 drive 0: 1.44MB, 80 cyl, 2 head, 18 sec
mcclock0 at isa0 port 0x70-0x71: mc146818 or compatible
scsibus0: waiting 2 seconds for devices to settle...
cd0 at scsibus0 target 5 lun 0: <DEC, RRD46   (C) DEC, 1337> SCSI2 5/cdrom
removablecd0: sync (100.0ns offset 8), 8-bit (10.000MB/s) transfers
scsibus1: waiting 2 seconds for devices to settle...
sd0 at scsibus1 target 0 lun 0: <DEC, RZ1CB-CS (C) DEC, 0844> SCSI2
0/direct fixedsd0: 4091 MB, 3708 cyl, 20 head, 113 sec, 512 bytes/sect x 8380080 sectors
sd0: sync (100.0ns offset 8), 16-bit (20.000MB/s) transfers, tagged queueing
sd1 at scsibus1 target 2 lun 0: <DEC, RZ1CB-CS (C) DEC, 0844> SCSI2
0/direct fixedsd1: 4091 MB, 3708 cyl, 20 head, 113 sec, 512 bytes/sect x 8380080 sectors
stray kn300 irq 40
sd1: sync (100.0ns offset 8), 16-bit (20.000MB/s) transfers, tagged queueing
sd2 at scsibus1 target 4 lun 0: <DEC, RZ1CB-CS (C) DEC, 0844> SCSI2
0/direct fixedsd2: 4091 MB, 3708 cyl, 20 head, 113 sec, 512 bytes/sect x 8380080 sectors
stray kn300 irq 40
sd2: sync (100.0ns offset 8), 16-bit (20.000MB/s) transfers, tagged queueing
sd3 at scsibus1 target 6 lun 0: <DEC, RZ1DF-CB (C) DEC, 0371> SCSI2
0/direct fixedsd3: 8678 MB, 5273 cyl, 20 head, 168 sec, 512 bytes/sect x 17773524 sectors
sd3: sync (100.0ns offset 8), 16-bit (20.000MB/s) transfers, tagged queueing
Kernelized RAIDframe activated
RAID autoconfigure
Configuring raid0:
RAIDFRAME: protectedSectors is 64
RAIDFRAME: Configure (RAID Level 5): total number of sectors is 16235712
(7927 MB)RAIDFRAME(RAID Level 5): Using 20 floating recon bufs with head sep limit 10
root on raid0a dumps on raid0b
root file system type: ffs

Tobias Nygren
tnn@netilium.org