Subject: Experiences on Promise FastTrak S150 (pdcsata)
To: None <netbsd-users@NetBSD.org>
From: Joseph A. Dacuma <jadacuma@ched.gov.ph>
List: netbsd-users
Date: 11/22/2006 04:27:01
Hi All!

Firstly, kudos to all NetBSD developers for successfuly releasing 3.1!

A few days ago, I tried installing NetBSD 3.1 on a machine using a Promise
FastTrack S150 TX2 plus (pdc20371) after reading what's new for 3.1. The
card was configured using a RAID 1 set-up (mirror) with pair of identcal
Segate 160 GB SATA drives (st3160812as).

Installation was successful using generic mp kernel and ld0 as the target
device for installing sets. However, during the first boot-up I noticed
something unusual:

ld0 at ataraid0 vendtype 0 unit 0: Promise ATA RAID-1 array
ld0: 149 GB, 19452 cyl, 255 head, 63 sec, 512 bytes/sect x 312500000 sectors
WARNING: double match for boot device (wd0, wd1)
WARNING: double match for boot device (wd0, ld0)

I was able to login successfully, but failed to make changes spcially in
/etc. It seems that the entire "/" directory is read-only as mount
suggests:

root_device on / type ffs (read-only, local)
/dev/ld0f on /var type ffs (local)
/dev/ld0e on /usr type ffs (local)
/dev/ld0g on /home type ffs (local)
mfs:379 on /tmp type mfs (synchronous, local)
kernfs on /kern type kernfs (local)
/dev/sd0e on /mnt type msdos (local)

Investigating further, using iostat the outupt is as follows:

    tty              fd0               md0               cd0             CPU
 tin tout  KB/t  t/s  MB/s   KB/t  t/s  MB/s   KB/t  t/s  MB/s  us ni sy
in id
   1  146  0.00    0  0.00   0.00    0  0.00   0.00    0  0.00   0  0  0 
0 99


No trace of ld0 where I was expecting it would normally show "ld0". But
iostat ld0 produced an output:

  tty              ld0             CPU
 tin tout  KB/t  t/s  MB/s  us ni sy in id
   2  131 11.94    2  0.02   0  0  0  0 99

My read and writes on other partitions like /usr and /home were
successful. I just dont understand why / became read-only. Also, After a
clean shutdown, I tried to mimick a disk failure where I disconnected data
cable from port one of the controller. The system failed to boot.

On the same machine, I tried installing Windows XP pro and everything
worked fine (successfuly booted on critical mode and rebuild) except that
CPU is quite busy on this.

I even tried to re-install the entire system on wd0 rather than ld0 it
yeilded the same result.

The complete dmesg output for my machine is as follows:

============= begin dmesg output ============

NetBSD 3.1 (GENERIC.MP) #0: Tue Oct 31 04:42:38 UTC 2006
        builds@b0.netbsd.org:/home/builds/ab/netbsd-3-1-RELEASE/i386/200610302053Z-obj/home/builds/ab/netbsd-3-1-RELEASE/src/sys/arch/i386/compile/GENERIC.MP
total memory = 511 MB
avail memory = 492 MB
BIOS32 rev. 0 found at 0xfdb60
mainbus0 (root)
mainbus0: Intel MP Specification (Version 1.1) (INTEL    440GX       )
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Intel Pentium III (686-class), 501.17 MHz, id 0x673
cpu0: features 383fbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR>
cpu0: features 383fbff<PGE,MCA,CMOV,PAT,PSE36,MMX>
cpu0: features 383fbff<FXSR,SSE>
cpu0: I-cache 16 KB 32B/line 4-way, D-cache 16 KB 32B/line 4-way
cpu0: L2 cache 512 KB 32B/line 4-way
cpu0: ITLB 32 4 KB entries 4-way, 2 4 MB entries fully associative
cpu0: DTLB 64 4 KB entries 4-way, 8 4 MB entries 4-way
cpu0: calibrating local timer
cpu0: apic clock running at 100 MHz
cpu0: 32 page colors
cpu1 at mainbus0: apid 1 (application processor)
cpu1: starting
cpu1: Intel Pentium III (686-class), 501.14 MHz, id 0x673
cpu1: features 383fbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR>
cpu1: features 383fbff<PGE,MCA,CMOV,PAT,PSE36,MMX>
cpu1: features 383fbff<FXSR,SSE>
cpu1: I-cache 16 KB 32B/line 4-way, D-cache 16 KB 32B/line 4-way
cpu1: L2 cache 512 KB 32B/line 4-way
cpu1: ITLB 32 4 KB entries 4-way, 2 4 MB entries fully associative
cpu1: DTLB 64 4 KB entries 4-way, 8 4 MB entries 4-way
mpbios: bus 0 is type PCI
mpbios: bus 1 is type PCI
mpbios: bus 2 is type ISA
ioapic0 at mainbus0 apid 2 (I/O APIC)
ioapic0: pa 0xfec00000, version 11, 24 pins
pci0 at mainbus0 bus 0: configuration mode 1
pci0: i/o space, memory space enabled, rd/line, rd/mult, wr/inv ok
pchb0 at pci0 dev 0 function 0
pchb0: Intel 82443BX Host Bridge/Controller (rev. 0x03)
agp0 at pchb0: aperture at 0xf8000000, size 0x4000000
ppb0 at pci0 dev 1 function 0: Intel 82443BX AGP Interface (rev. 0x03)
pci1 at ppb0 bus 1
pci1: i/o space, memory space enabled
vga1 at pci1 dev 0 function 0: NVIDIA RIVA TNT2 Model 64 (rev. 0x15)
wsdisplay0 at vga1 kbdmux 1: console (80x25, vt100 emulation)
wsmux1: connecting to wsdisplay0
pcib0 at pci0 dev 7 function 0
pcib0: Intel 82371AB (PIIX4) PCI-ISA Bridge (rev. 0x02)
piixide0 at pci0 dev 7 function 1
piixide0: Intel 82371AB IDE controller (PIIX4) (rev. 0x01)
piixide0: bus-master DMA support present
piixide0: primary channel wired to compatibility mode
piixide0: primary channel interrupting at ioapic0 pin 14 (irq 14)
atabus0 at piixide0 channel 0
piixide0: secondary channel wired to compatibility mode
piixide0: secondary channel interrupting at ioapic0 pin 15 (irq 15)
atabus1 at piixide0 channel 1
cd0: 32-bit data port
cd0: drive supports PIO mode 4, DMA mode 2
cd0(piixide0:1:1): using PIO mode 4, DMA mode 2 (using DMA)
wd0 at atabus2 drive 0: <ST3160812AS>
wd0: drive supports 16-sector PIO transfers, LBA48 addressing
wd0: 149 GB, 310101 cyl, 16 head, 63 sec, 512 bytes/sect x 312581808 sectors
wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 6 (Ultra/133)
wd0(pdcsata0:0:0): using PIO mode 4, Ultra-DMA mode 6 (Ultra/133) (using DMA)
wd1 at atabus3 drive 0: <ST3160812AS>
wd1: drive supports 16-sector PIO transfers, LBA48 addressing
wd1: 149 GB, 310101 cyl, 16 head, 63 sec, 512 bytes/sect x 312581808 sectors
wd1: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 6 (Ultra/133)
wd1(pdcsata0:1:0): using PIO mode 4, Ultra-DMA mode 6 (Ultra/133) (using DMA)
ataraid0: found 1 RAID volume
ld0 at ataraid0 vendtype 0 unit 0: Promise ATA RAID-1 array
ld0: 149 GB, 19452 cyl, 255 head, 63 sec, 512 bytes/sect x 312500000 sectors
WARNING: double match for boot device (wd0, wd1)
WARNING: double match for boot device (wd0, ld0)
boot device: wd0
root on wd0a dumps on wd0b
root file system type: ffs
cpu1: CPU 1 running
wsdisplay0: screen 1 added (80x25, vt100 emulation)
wsdisplay0: screen 2 added (80x25, vt100 emulation)
wsdisplay0: screen 3 added (80x25, vt100 emulation)
wsdisplay0: screen 4 added (80x25, vt100 emulation)

uhci0 at pci0 dev 7 function 2: Intel 82371AB (PIIX4) USB Host Controller
(rev. 0x01)
uhci0: interrupting at ioapic0 pin 19 (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 (PIIX4) Power Management Controller (miscellaneous bridge,
revision 0x02) at pci0 dev 7 function 3 not configured
Lucent Technologies FW322/323 IEEE 1394 Host Controller (Firewire serial
bus, interface 0x10, revision 0x05) at pci0 dev 17 function 0 not
configured
eso0 at pci0 dev 18 function 0: ESS Solo-1 PCI AudioDrive ES1946 Revision E
eso0: interrupting at ioapic0 pin 18 (irq 5)
eso0: mapping Audio 1 DMA using VC I/O space at 0xef50
audio0 at eso0: full duplex, mmap, independent
opl0 at eso0: model OPL3
midi0 at opl0: ESO Yamaha OPL3
mpu0 at eso0
midi1 at mpu0: ESO MPU-401 MIDI UART
joy0 at eso0
joy0: joystick not connected
pdcsata0 at pci0 dev 19 function 0
pdcsata0: Promise PDC20371 SATA150 controller (rev. 0x02)
pdcsata0: interrupting at ioapic0 pin 19 (irq 11)
pdcsata0: bus-master DMA support present
atabus2 at pdcsata0 channel 0
atabus3 at pdcsata0 channel 1
atabus4 at pdcsata0 channel 2
rtk0 at pci0 dev 20 function 0: Realtek 8139 10/100BaseTX
rtk0: interrupting at ioapic0 pin 16 (irq 10)
rtk0: Ethernet address 00:06:4f:02:ff:80
ukphy0 at rtk0 phy 7: Generic IEEE 802.3u media interface
ukphy0: OUI 0x000000, model 0x0000, rev. 0
ukphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
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
pcppi0 at isa0 port 0x61
midi2 at pcppi0: PC speaker
sysbeep0 at pcppi0
isapnp0 at isa0 port 0x279: ISA Plug 'n Play device support
npx0 at isa0 port 0xf0-0xff: using exception 16
fdc0 at isa0 port 0x3f0-0x3f7 irq 6 drq 2
isapnp0: no ISA Plug 'n Play devices found
ioapic0: enabling
fd0 at fdc0 drive 0: 1.44MB, 80 cyl, 2 head, 18 sec
Kernelized RAIDframe activated
atapibus0 at atabus1: 2 targets
cd0 at atapibus0 drive 1: <HL-DT-ST GCE-8401B, , 1.02> cdrom removable
================== end dmesg output =========================

Is there something I'm missing here? Anybody on the list had similar
experiences? I wanted to try this using 4.0 as well but there seems to be
no i386 directory on
ftp://ftp.netbsd.org/pub/NetBSD-daily/HEAD/200611190000Z/.

Regards,

Joseph A. Dacuma