Subject: Kernel only sees 1 SATA channel out of 4 - nv520 chip
To: None <current-users@netbsd.org>
From: Art Lemasters <develunix@gmail.com>
List: current-users
Date: 01/11/2008 01:00:50
   I've installed an Abit AN52 motherboard. It has an "nvidia nf520
single chip." It only sees one SATA channel out of four. The BIOS
sees two hard drives. FreeBSD (live cd) sees both drives (two
drives plugged into two of the four SATA interfaces on the motherboard.
My guess from looking at the FreeBSD dmesg (if the dmesg was accurate
enough) is that there are two onboard SATA controllers, each with two
channels (four interfaces on the motherboard).

Here's a dmesg with a current kernel. I have a 4.0 userland installed,
and the compile and installation of the current kernel was only to see
if the current kernel can see more of the buses than 4.0.

CC replies to me, especially if you want me to do any diagnostic
configs and send or post the results. Also let me know if this should
be copied to the tech-kern or another list.


================ dmesg follows ==================

Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
     2006, 2007, 2008
     The NetBSD Foundation, Inc.  All rights reserved.
Copyright (c) 1982, 1986, 1989, 1991, 1993
     The Regents of the University of California.  All rights reserved.

NetBSD 4.99.49 (MORDECHAI) #0: Thu Jan 10 21:27:07 MST 2008
	elijah@noah:/usr/obj/sys/arch/i386/compile/MORDECHAI
total memory = 2046 MB
avail memory = 1998 MB
timecounter: Timecounters tick every 10.000 msec
timecounter: Timecounter "i8254" frequency 1193182 Hz quality 100
BIOS32 rev. 0 found at 0xfa260
SMBIOS rev. 2.4 @ 0xf0000 (41 entries)
Unknow Unknow (Unknow)
mainbus0 (root)
ACPI Warning (tbfadt-0510): Optional field "Pm2ControlBlock" has zero address or 
length: 0000000000000000/1 [20070320]
cpu0 at mainbus0 apid 0: (boot processor)
cpu0: AMD Athlon X2 or Athlon 64 X2 (686-class), 2109.87 MHz, id 0x60fb1
cpu0: features ffdbfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR>
cpu0: features ffdbfbff<PGE,MCA,CMOV,PAT,PSE36,MPC,NOX,MMXX,MMX>
cpu0: features ffdbfbff<FXSR,SSE,SSE2,RDTSCP,HTT,LONG,3DNOW2,3DNOW>
cpu0: features2 2001<SSE3,CX16>
cpu0: "AMD Athlon(tm) 64 X2 Dual Core Processor 4000+"
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: Initial APIC ID 0
cpu0: AMD Power Management features: 7f<STC,TM,TTP,VID,FID,TS>
cpu0: AMD PowerNow! Technology 2100 MHz
cpu0: available frequencies (Mhz): 1000 1800 2000 2100
cpu0: calibrating local timer
cpu0: apic clock running at 200 MHz
cpu0: 8 page colors
cpu1 at mainbus0 apid 1: (application processor)
cpu1: AMD Athlon X2 or Athlon 64 X2 (686-class), 2109.94 MHz, id 0x60fb1
cpu1: features ffdbfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR>
cpu1: features ffdbfbff<PGE,MCA,CMOV,PAT,PSE36,MPC,NOX,MMXX,MMX>
cpu1: features ffdbfbff<FXSR,SSE,SSE2,RDTSCP,HTT,LONG,3DNOW2,3DNOW>
cpu1: features2 2001<SSE3,CX16>
cpu1: "AMD Athlon(tm) 64 X2 Dual Core Processor 4000+"
cpu1: I-cache 64 KB 64B/line 2-way, D-cache 64 KB 64B/line 2-way
cpu1: L2 cache 512 KB 64B/line 16-way
cpu1: ITLB 32 4 KB entries fully associative, 8 4 MB entries fully associative
cpu1: DTLB 32 4 KB entries fully associative, 8 4 MB entries fully associative
cpu1: Initial APIC ID 1
cpu1: AMD Power Management features: 7f<STC,TM,TTP,VID,FID,TS>
ioapic0 at mainbus0 apid 2: pa 0xfec00000, version 11, 24 pins
acpi0 at mainbus0: Advanced Configuration and Power Interface
acpi0: using Intel ACPI CA subsystem version 20070320
acpi0: X/RSDT: OemId <Nvidia,NVDAACPI,42302e31>, AslId <NVDA,00000000>
acpi_pci_link: WARNING: powerhook_establish is deprecated
acpi_pci_link: WARNING: powerhook_establish is deprecated
acpi_pci_link: WARNING: powerhook_establish is deprecated
acpi_pci_link: WARNING: powerhook_establish is deprecated
acpi_pci_link: WARNING: powerhook_establish is deprecated
acpi_pci_link: WARNING: powerhook_establish is deprecated
acpi_pci_link: WARNING: powerhook_establish is deprecated
acpi_pci_link: WARNING: powerhook_establish is deprecated
acpi_pci_link: WARNING: powerhook_establish is deprecated
acpi_pci_link: WARNING: powerhook_establish is deprecated
acpi_pci_link: WARNING: powerhook_establish is deprecated
acpi_pci_link: WARNING: powerhook_establish is deprecated
acpi_pci_link: WARNING: powerhook_establish is deprecated
acpi_pci_link: WARNING: powerhook_establish is deprecated
acpi_pci_link: WARNING: powerhook_establish is deprecated
acpi_pci_link: WARNING: powerhook_establish is deprecated
acpi_pci_link: WARNING: powerhook_establish is deprecated
acpi_pci_link: WARNING: powerhook_establish is deprecated
acpi_pci_link: WARNING: powerhook_establish is deprecated
acpi0: SCI interrupting at int 9
acpi0: fixed-feature power button present
timecounter: Timecounter "ACPI-Fast" frequency 3579545 Hz quality 1000
ACPI-Fast 24-bit timer
CPU0 (ACPI Object Type 'Processor' [0x0c]) at acpi0 not configured
CPU1 (ACPI Object Type 'Processor' [0x0c]) at acpi0 not configured
acpibut0 at acpi0 (PWRB, PNP0C0C): ACPI Power Button
PCI0 (PNP0A08) [PCI Express/PCI-X Mode-2 Host Bridge] at acpi0 not configured
MBIO (PNP0C02) [Plug and Play motherboard register resources] at acpi0 not configured
SYSR (PNP0C02) [Plug and Play motherboard register resources] at acpi0 not configured
PIC (PNP0000) [AT Interrupt Controller] at acpi0 not configured
DMA1 (PNP0200) [AT DMA Controller] at acpi0 not configured
attimer1 at acpi0 (TMR, PNP0100): AT Timer
attimer1: io 0x40-0x43
hpet0 at acpi0 (HPET, PNP0103)
hpet0: mem 0xfeff0000-0xfeff03ff irq 0,8
timecounter: Timecounter "hpet0" frequency 25000000 Hz quality 2000
RTC (PNP0B00) [AT Real-Time Clock] at acpi0 not configured
pcppi1 at acpi0 (SPKR, PNP0800)
pcppi1: io 0x61
midi0 at pcppi1: PC speaker (CPU-intensive output)
sysbeep0 at pcppi1
npx1 at acpi0 (COPR, PNP0C04)
npx1: io 0xf0-0xff irq 13
npx1: reported by CPUID; using exception 16
UAR1 (PNP0501) [16550A-compatible COM port] at acpi0 not configured
pckbc1 at acpi0 (PS2M, PNP0F13): aux port
pckbc1: irq 12
pckbc2 at acpi0 (PS2K, PNP0303): kbd port
pckbc2: io 0x60,0x64 irq 1
LNK6 (PNP0C0F) [PCI interrupt link device] at acpi0 not configured
LNK8 (PNP0C0F) [PCI interrupt link device] at acpi0 not configured
LUBA (PNP0C0F) [PCI interrupt link device] at acpi0 not configured
LUB2 (PNP0C0F) [PCI interrupt link device] at acpi0 not configured
LU1B (PNP0C0F) [PCI interrupt link device] at acpi0 not configured
LU2B (PNP0C0F) [PCI interrupt link device] at acpi0 not configured
LMAC (PNP0C0F) [PCI interrupt link device] at acpi0 not configured
LAZA (PNP0C0F) [PCI interrupt link device] at acpi0 not configured
LSMB (PNP0C0F) [PCI interrupt link device] at acpi0 not configured
LSID (PNP0C0F) [PCI interrupt link device] at acpi0 not configured
APC6 (PNP0C0F) [PCI interrupt link device] at acpi0 not configured
APC8 (PNP0C0F) [PCI interrupt link device] at acpi0 not configured
AUBA (PNP0C0F) [PCI interrupt link device] at acpi0 not configured
AUB2 (PNP0C0F) [PCI interrupt link device] at acpi0 not configured
AU1B (PNP0C0F) [PCI interrupt link device] at acpi0 not configured
AU2B (PNP0C0F) [PCI interrupt link device] at acpi0 not configured
APCH (PNP0C0F) [PCI interrupt link device] at acpi0 not configured
AAZA (PNP0C0F) [PCI interrupt link device] at acpi0 not configured
APCS (PNP0C0F) [PCI interrupt link device] at acpi0 not configured
APSI (PNP0C0F) [PCI interrupt link device] at acpi0 not configured
EXPL (PNP0C02) [Plug and Play motherboard register resources] at acpi0 not configured
MEM (PNP0C01) [System Board] at acpi0 not configured
FAN (PNP0C0B) [ACPI Fan] at acpi0 not configured
acpitz0 at acpi0 (THRM): active cooling level 0: 50.0C critical 60.0C passive 42.0C
apm0 at acpi0: Power Management spec V1.2
pcppi1: attached to attimer1
pckbd0 at pckbc2 (kbd slot)
pckbc2: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard
pms0 at pckbc2 (aux slot)
pckbc2: using irq 12 for aux slot
wsmouse0 at pms0 mux 0
pci0 at mainbus0 bus 0: configuration mode 1
pci0: i/o space, memory space enabled, rd/line, rd/mult, wr/inv ok
NVIDIA nForce MCP65 Memory Controller (RAM memory, revision 0xa3) at pci0 dev 0 
function 0 not configured
pcib0 at pci0 dev 1 function 0
pcib0: NVIDIA product 0x0441 (rev. 0xa3)
nfsmbc0 at pci0 dev 1 function 1: NVIDIA nForce MCP65 SMBus Controller (rev. 0xa1)
nfsmb0 at nfsmbc0 SMBus 1
iic0 at nfsmb0: I2C bus
nfsmb1 at nfsmbc0 SMBus 2
iic1 at nfsmb1: I2C bus
NVIDIA nForce MCP65 Memory Controller (RAM memory, revision 0xa1) at pci0 dev 1 
function 2 not configured
ohci0 at pci0 dev 2 function 0: NVIDIA nForce MCP65 USB Controller (rev. 0xa3)
AUBA: Picked IRQ 20 with weight 0
ohci0: interrupting at ioapic0 pin 20 (irq 11)
ohci0: OHCI version 1.0, legacy support
usb0 at ohci0: USB revision 1.0
uhub0 at usb0
uhub0: NVIDIA OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 10 ports with 10 removable, self powered
ehci0 at pci0 dev 2 function 1: NVIDIA nForce MCP65 USB Controller (rev. 0xa3)
AUB2: Picked IRQ 21 with weight 0
ehci0: interrupting at ioapic0 pin 21 (irq 5)
ehci0: BIOS has given up ownership
ehci0: EHCI version 1.0
ehci0: companion controller, 10 ports each: ohci0
usb1 at ehci0: USB revision 2.0
uhub1 at usb1
uhub1: NVIDIA EHCI root hub, class 9/0, rev 2.00/1.00, addr 1
uhub1: 10 ports with 10 removable, self powered
azalia0 at pci0 dev 7 function 0: Generic High Definition Audio Controller
AAZA: Picked IRQ 22 with weight 0
azalia0: interrupting at ioapic0 pin 22 (irq 10)
azalia0: host: NVIDIA nForce MCP65 High Definition Audio Controller (rev. 161)
azalia0: host: High Definition Audio rev. 1.0
ppb0 at pci0 dev 8 function 0: NVIDIA nForce MCP65 PCI Bridge (rev. 0xa1)
pci1 at ppb0 bus 1
pci1: i/o space, memory space enabled
viaide0 at pci0 dev 9 function 0
viaide0: NVIDIA MCP65 IDE Controller (rev. 0xa1)
viaide0: bus-master DMA support present
viaide0: primary channel configured to compatibility mode
viaide0: primary channel interrupting at ioapic0 pin 14 (irq 14)
atabus0 at viaide0 channel 0
viaide0: secondary channel configured to compatibility mode
viaide0: secondary channel ignored (disabled)
viaide1 at pci0 dev 10 function 0
viaide1: NVIDIA MCP65 Serial ATA Controller (rev. 0xa3)
viaide1: bus-master DMA support present
viaide1: primary channel wired to native-PCI mode
APSI: Picked IRQ 23 with weight 0
viaide1: using ioapic0 pin 23 (irq 11) for native-PCI interrupt
atabus1 at viaide1 channel 0
viaide1: secondary channel wired to native-PCI mode
atabus2 at viaide1 channel 1
ppb1 at pci0 dev 11 function 0: NVIDIA product 0x045b (rev. 0xa1)
pci2 at ppb1 bus 2
pci2: i/o space, memory space enabled, rd/line, wr/inv ok
mskc0 at pci2 dev 0 function 0APC6: Picked IRQ 16 with weight 0
mskc0: interrupt moderation is 0 us
, Yukon-2 EC Ultra rev. B0 (0x3): ioapic0 pin 16 (irq 5)
msk0 at mskc0 port A: Ethernet address 00:50:8d:b0:b4:ef
ukphy0 at msk0 phy 0: Generic IEEE 802.3u media interface
ukphy0: OUI 0x000ac2, model 0x000b, rev. 1
ukphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-FDX, auto
ppb2 at pci0 dev 12 function 0: NVIDIA nForce MCP65 PCI-PCI Bridge (rev. 0xa1)
pci3 at ppb2 bus 3
pci3: i/o space, memory space enabled, rd/line, wr/inv ok
ppb3 at pci0 dev 13 function 0: NVIDIA nForce MCP65 PCI-PCI Bridge (rev. 0xa1)
pci4 at ppb3 bus 4
pci4: i/o space, memory space enabled, rd/line, wr/inv ok
vga1 at pci4 dev 0 function 0: ATI Technologies Radeon X600 PCI Express (rev. 0x00)
vga1: WARNING: ignoring 64-bit BAR @ 0x10
vga1: WARNING: ignoring 64-bit BAR @ 0x18
wsdisplay0 at vga1 kbdmux 1: console (80x25, vt100 emulation), using wskbd0
wsmux1: connecting to wsdisplay0
direct rendering for vga1 unsupported
ATI Technologies product 0x5b72 (miscellaneous display) at pci4 dev 0 function 1 
not configured
ppb4 at pci0 dev 14 function 0: NVIDIA nForce MCP65 PCI-PCI Bridge (rev. 0xa1)
pci5 at ppb4 bus 5
pci5: i/o space, memory space enabled, rd/line, wr/inv ok
pchb0 at pci0 dev 24 function 0
pchb0: Advanced Micro Devices K8 AMD64 HyperTransport configuration (rev. 0x00)
pchb1 at pci0 dev 24 function 1
pchb1: Advanced Micro Devices K8 AMD64 Address Map configuration (rev. 0x00)
pchb2 at pci0 dev 24 function 2
pchb2: Advanced Micro Devices K8 AMD64 DRAM configuration (rev. 0x00)
pchb3 at pci0 dev 24 function 3
pchb3: Advanced Micro Devices K8 AMD64 Miscellaneous configuration (rev. 0x00)
isa0 at pcib0
com0 at isa0 port 0x3f8-0x3ff irq 4: ns16550a, working fifo
isapnp0 at isa0 port 0x279: ISA Plug 'n Play device support
isapnp0: no ISA Plug 'n Play devices found
timecounter: Timecounter "clockinterrupt" frequency 100 Hz quality 0
azalia0: codec[0]: Realtek ALC883 (rev. 0.2)
azalia0: codec[0]: High Definition Audio rev. 1.0
audio0 at azalia0: full duplex, independent
Kernelized RAIDframe activated
pad0: outputs: 44100Hz, 16-bit, stereo
audio1 at pad0: half duplex
atapibus0 at atabus0: 2 targets
cd0 at atapibus0 drive 0: <LITE-ON DVDRW SOHW-1673S, , JS07> cdrom removable
cd0: 32-bit data port
cd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 4 (Ultra/66)
cd0(viaide0:0:0): using PIO mode 4, Ultra-DMA mode 4 (Ultra/66) (using DMA)
viaide1 port 0: device present, speed: <unknown 8>
wd0 at atabus1 drive 0: <HDS728080PLA380>
wd0: drive supports 16-sector PIO transfers, LBA48 addressing
wd0: 78533 MB, 159560 cyl, 16 head, 63 sec, 512 bytes/sect x 160836480 sectors
wd0: 32-bit data port
wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 6 (Ultra/133)
wd0(viaide1:0:0): using PIO mode 4, Ultra-DMA mode 6 (Ultra/133) (using DMA)
raid0: RAID Level 1
raid0: Components: /dev/wd0a component1[**FAILED**]
raid0: Total Sectors: 160836096 (78533 MB)
boot device: raid0
root on raid0a dumps on raid0b
root file system type: ffs
mskc0: interrupt moderation is 1000 us
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)
raid0: Error re-writing parity!