Subject: problem with Serial ATA disk on amd64
To: None <current-users@NetBSD.org, port-amd64@NetBSD.org>
From: Kouichirou Hiratsuka <hira@po6.nsk.ne.jp>
List: current-users
Date: 10/31/2004 14:55:46
Hello,

I've installed -current/amd64 and 2.0_RC4/amd64 to an Athlon 64 box
which has a Serial ATA disk.  It can't mount some partitions of the
booted disk with the following messages:

mount_ffs: /dev/wd0i on /usr/local: Device not configured
mount_ffs: /dev/wd0j on /work1: Device not configured
mount_ffs: /dev/wd0k on /work2: Device not configured
mount_ffs: /dev/wd0l on /work3: Device not configured

It seems to be able to use only 8 partitions.  This problem happens
when it boots from the Serial ATA disk.  If it boots from the Parallel
ATA disk or the install disc, these partitions can be mounted.  And
-current/i386 works fine on it.

Anyone else seeing this?
Or am I missing something?

best regards.
--
 Kouichirou Hiratsuka
   hira@po6.nsk.ne.jp

dmesg on 2.0_RC4, disklabel and fstab:

NetBSD 2.0_RC4 (GENERIC) #0: Sat Oct 30 03:21:08 JST 2004
	root@firefly.localdomain:/work1/tmp/src/sys/arch/amd64/compile/obj/GENERIC
total memory = 1023 MB
avail memory = 979 MB
mainbus0 (root)
mainbus0: Intel MP Specification (Version 1.4) (OEM00000 PROD00000000)
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: AMD Athlon(tm) 64 Processor 3200+, 2009.88 MHz
cpu0: features: e7dbfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR>
cpu0: features: e7dbfbff<PGE,MCA,CMOV,PAT,PSE36,MPC,NOX,MMXX,MMX>
cpu0: features: e7dbfbff<FXSR,SSE,SSE2,LONG,3DNOW2,3DNOW>
cpu0: I-cache 64 KB 64B/line 2-way, D-cache 64 KB 64B/line 2-way
cpu0: L2 cache 512 KB 64B/line 16-way
cpu0: ITLB 32 4 KB entries fully associative, 8 4 MB entries fully associative
cpu0: DTLB 32 4 KB entries fully associative, 8 4 MB entries fully associative
cpu0: calibrating local timer
cpu0: apic clock running at 200 MHz
cpu0: 8 page colors
mpbios: bus 0 is type PCI   
mpbios: bus 1 is type PCI   
mpbios: bus 2 is type PCI   
mpbios: bus 3 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: Nvidia Corporation product 0x00e1 (rev. 0xa1)
pcib0 at pci0 dev 1 function 0
pcib0: Nvidia Corporation product 0x00e0 (rev. 0xa2)
Nvidia Corporation product 0x00e4 (SMBus serial bus, revision 0xa1) at pci0 dev 1 function 1 not configured
ohci0 at pci0 dev 2 function 0: Nvidia Corporation product 0x00e7 (rev. 0xa1)
ohci0: interrupting at ioapic0 pin 3 (irq 3)
ohci0: OHCI version 1.0, legacy support
usb0 at ohci0: USB revision 1.0
uhub0 at usb0
uhub0: Nvidia Corporat OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 4 ports with 4 removable, self powered
ohci1 at pci0 dev 2 function 1: Nvidia Corporation product 0x00e7 (rev. 0xa1)
ohci1: interrupting at ioapic0 pin 3 (irq 3)
ohci1: OHCI version 1.0, legacy support
usb1 at ohci1: USB revision 1.0
uhub1 at usb1
uhub1: Nvidia Corporat OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub1: 4 ports with 4 removable, self powered
Nvidia Corporation product 0x00e8 (USB serial bus, interface 0x20, revision 0xa2) at pci0 dev 2 function 2 not configured
pciide0 at pci0 dev 8 function 0
pciide0: Nvidia Corporation product 0x00e5 (rev. 0xa2)
pciide0: bus-master DMA support present, but unused (no driver support)
pciide0: primary channel configured to compatibility mode
pciide0: primary channel ignored (not responding; disabled or no drives?)
pciide0: secondary channel configured to compatibility mode
pciide0: secondary channel interrupting at ioapic0 pin 15 (irq 15)
atabus0 at pciide0 channel 1
pciide1 at pci0 dev 10 function 0
pciide1: Nvidia Corporation product 0x00e3 (rev. 0xa2)
pciide1: bus-master DMA support present, but unused (no driver support)
pciide1: primary channel wired to native-PCI mode
pciide1: using ioapic0 pin 11 (irq 11) for native-PCI interrupt
atabus1 at pciide1 channel 0
pciide1: secondary channel wired to native-PCI mode
atabus2 at pciide1 channel 1
ppb0 at pci0 dev 11 function 0: Nvidia Corporation product 0x00e2 (rev. 0xa2)
pci1 at ppb0 bus 1
pci1: i/o space, memory space enabled
vga0 at pci1 dev 0 function 0: Nvidia Corporation GeForce FX 5200 (rev. 0xa1)
wsdisplay0 at vga0 kbdmux 1: console (80x25, vt100 emulation)
wsmux1: connecting to wsdisplay0
ppb1 at pci0 dev 14 function 0: Nvidia Corporation product 0x00ed (rev. 0xa2)
pci2 at ppb1 bus 2
pci2: i/o space, memory space enabled
satalink0 at pci2 dev 6 function 0
satalink0: Silicon Image SATALink 3112 (rev. 0x01)
satalink0: SATALink BA5 register space disabled
satalink0: bus-master DMA support present
satalink0: primary channel wired to native-PCI mode
satalink0: using ioapic0 pin 10 (irq 10) for native-PCI interrupt
atabus3 at satalink0 channel 0
satalink0: secondary channel wired to native-PCI mode
atabus4 at satalink0 channel 1
VIA Technologies VT3606 OHCI IEEE 1394 Controller (Firewire serial bus, interface 0x10, revision 0x80) at pci2 dev 7 function 0 not configured
skc0 at pci2 dev 8 function 0: ioapic0 pin 12 (irq 12)
skc0: Yukon Gigabit Ethernet 10/100/1000Base-T Adapter
sk0 at skc0 port A: Ethernet address 00:30:1b:b5:2d:41
makphy0 at sk0 phy 0: Marvell 88E1011 Gigabit PHY, rev. 5
makphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-FDX, auto
pchb1 at pci0 dev 24 function 0
pchb1: Advanced Micro Devices AMD64 HyperTransport configuration (rev. 0x00)
pchb2 at pci0 dev 24 function 1
pchb2: Advanced Micro Devices AMD64 Address Map configuration (rev. 0x00)
pchb3 at pci0 dev 24 function 2
pchb3: Advanced Micro Devices AMD64 DRAM configuration (rev. 0x00)
pchb4 at pci0 dev 24 function 3
pchb4: Advanced Micro Devices AMD64 Miscellaneous configuration (rev. 0x00)
isa0 at pcib0
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
pcppi0 at isa0 port 0x61
midi0 at pcppi0: PC speaker
sysbeep0 at pcppi0
ioapic0: enabling
Kernelized RAIDframe activated
satalink0: port 0: device present, speed: 1.5Gb/s
atapibus0 at atabus0: 2 targets
cd0 at atapibus0 drive 0: <PIONEER DVD-RW  DVR-105, BLTO314865JP, 1.00> cdrom removable
cd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 2 (Ultra/33)
wd0 at atabus3 drive 0: <WDC WD740GD-00FLA0>
wd0: drive supports 16-sector PIO transfers, LBA48 addressing
wd0: 70911 MB, 144073 cyl, 16 head, 63 sec, 512 bytes/sect x 145226112 sectors
wd0: 32-bit data port
wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 6 (Ultra/133)
wd0(satalink0:0:0): using PIO mode 4, Ultra-DMA mode 6 (Ultra/133) (using DMA data transfers)
uhub2 at uhub0 port 1
uhub2: Atmel Standard USB Hub, class 9/0, rev 1.10/3.00, addr 2
uhub2: 4 ports with 4 removable, self powered
uhidev0 at uhub2 port 3 configuration 1 interface 0
uhidev0: Logitech USB Receiver, rev 1.10/16.00, addr 4, iclass 3/1
ums0 at uhidev0: 7 buttons and Z dir.
wsmouse0 at ums0 mux 0
uhidev1 at uhub2 port 4 configuration 1 interface 0
uhidev1: Topre Corporation HHKB Professional, rev 1.10/1.02, addr 5, iclass 3/1
ukbd0 at uhidev1
wskbd1 at ukbd0 mux 1
wskbd1: connecting to wsdisplay0
boot device: wd0
root on wd0a dumps on wd0b
root file system type: ffs

# /dev/rwd0d:
type: unknown
disk: WDC WD740GD-00F
label: 
flags:
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 16
sectors/cylinder: 1008
cylinders: 144073
total sectors: 145226112
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0		# microseconds
track-to-track seek: 0	# microseconds
drivedata: 0 

16 partitions:
#        size    offset     fstype [fsize bsize cpg/sgs]
 a:    524288        63     4.2BSD   1024  8192 43696  # (Cyl.      0*-    520*)
 b:   2097152    524351       swap                     # (Cyl.    520*-   2600*)
 c: 145226049        63     unused      0     0        # (Cyl.      0*- 144073*)
 d: 145226112         0     unused      0     0        # (Cyl.      0 - 144073*)
 e:   2097152   2621503     4.2BSD   1024  8192 45592  # (Cyl.   2600*-   4681*)
 f:   4194304   4718655     4.2BSD   1024  8192 46608  # (Cyl.   4681*-   8842*)
 g:   2097152   8912959     4.2BSD   1024  8192 45592  # (Cyl.   8842*-  10922*)
 h:   8388608  11010111     4.2BSD   1024  8192 46608  # (Cyl.  10922*-  19244*)
 i:   4194304  19398719     4.2BSD   1024  8192 46608  # (Cyl.  19244*-  23405*)
 j:  41943040  23593023     4.2BSD   1024  8192 46608  # (Cyl.  23405*-  65015*)
 k:  41943040  65536063     4.2BSD   1024  8192 46608  # (Cyl.  65015*- 106626*)
 l:  35651584 107479103     4.2BSD   1024  8192 46672  # (Cyl. 106626*- 141994*)

/dev/wd0a / ffs rw 1 1
/dev/wd0b none swap sw 0 0
/dev/wd0b /tmp mfs rw,-s=1048576
/dev/wd0e /usr ffs rw,softdep 1 2
/dev/wd0f /var ffs rw,softdep 1 2
/dev/wd0g /home ffs rw,softdep 1 2
/dev/wd0h /usr/pkg ffs rw,softdep 1 2
/dev/wd0i /usr/local ffs rw,softdep 1 2
/dev/wd0j /work1 ffs rw,softdep 1 2
/dev/wd0k /work2 ffs rw,softdep 1 2
/dev/wd0l /work3 ffs rw,softdep 1 2
kernfs /kern kernfs rw
procfs /proc procfs rw