NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: kern/37826 (Kernel sees only one SATA channel (out of four) on Abit AN52 motherboard (nvidia nf520__single chip))
The following reply was made to PR kern/37826; it has been noted by GNATS.
From: Art Lemasters <develunix%gmail.com@localhost>
To: David Holland <dholland-bugs%netbsd.org@localhost>
Cc: kern-bug-people%netbsd.org@localhost, netbsd-bugs%netbsd.org@localhost,
gnats-admin%netbsd.org@localhost,
dholland%netbsd.org@localhost, gnats-bugs%netbsd.org@localhost
Subject: Re: kern/37826 (Kernel sees only one SATA channel (out of four) on
Abit AN52 motherboard (nvidia nf520__single chip))
Date: Thu, 26 Mar 2009 21:03:24 -0600
On Tue, Mar 24, 2009 at 3:12 PM, David Holland
<dholland-bugs%netbsd.org@localhost> wrote:
> The IDE drivers are machine-independent, yes.
>
> I think I see what the problem likely is: there are four PCI IDs for
> the MCP65 SATA controller, and only one of them is listed in
> ahcisata_pci.c.
>
> Try the following patch (with GENERIC):
>
> Index: pci/ahcisata_pci.c
> ===================================================================
> RCS file: /cvsroot/src/sys/dev/pci/ahcisata_pci.c,v
> retrieving revision 1.13
> diff -u -p -r1.13 ahcisata_pci.c
> --- pci/ahcisata_pci.c 8 Dec 2008 15:35:23 -0000 1.13
> +++ pci/ahcisata_pci.c 24 Mar 2009 21:06:33 -0000
> @@ -54,6 +54,12 @@ __KERNEL_RCSID(0, "$NetBSD: ahcisata_pci
> static const struct pci_quirkdata ahci_pci_quirks[] = {
> { PCI_VENDOR_NVIDIA, PCI_PRODUCT_NVIDIA_MCP65_SATA,
> AHCI_PCI_QUIRK_FORCE },
> + { PCI_VENDOR_NVIDIA, PCI_PRODUCT_NVIDIA_MCP65_SATA2,
> + AHCI_PCI_QUIRK_FORCE },
> + { PCI_VENDOR_NVIDIA, PCI_PRODUCT_NVIDIA_MCP65_SATA3,
> + AHCI_PCI_QUIRK_FORCE },
> + { PCI_VENDOR_NVIDIA, PCI_PRODUCT_NVIDIA_MCP65_SATA4,
> + AHCI_PCI_QUIRK_FORCE },
> { PCI_VENDOR_NVIDIA, PCI_PRODUCT_NVIDIA_MCP67_SATA,
> AHCI_PCI_QUIRK_FORCE },
> { PCI_VENDOR_NVIDIA, PCI_PRODUCT_NVIDIA_MCP73_AHCI_1,
It appears to have made a positive difference! See the kernel messages
below for the new bus and drive information.
The patch did not apply, maybe because I didn't update 5-0-RC2, yet.
I added the new ("+") lines from the diff to the ahci.sata_pci.c file
with vi. ...will do the update and make sure that the dmesg file is
the same after sending this reply. Here's the resulting dmesg file
after cleaning the src tree, manually inserting your additions to the
source file and recompiling. Is it what we'd hoped to see? If not,
I'll show more info after the update.
NetBSD 5.0_RC2 (GENERIC) #0: Thu Mar 26 20:24:29 MDT 2009
derrick@paradise:/usr/obj/sys/arch/amd64/compile/GENERIC
total memory = 2046 MB
avail memory = 1968 MB
timecounter: Timecounters tick every 10.000 msec
timecounter: Timecounter "i8254" frequency 1193182 Hz quality 100
SMBIOS rev. 2.4 @ 0xf0000 (41 entries)
Unknow Unknow (Unknow)
mainbus0 (root)
cpu0 at mainbus0 apid 0: AMD 686-class, 2109MHz, id 0x60fb1
cpu0: AMD PowerNow! Technology 2100 MHz
cpu0: available frequencies (Mhz): 1000 1800 2000 2100
cpu1 at mainbus0 apid 1: AMD 686-class, 2109MHz, id 0x60fb1
ioapic0 at mainbus0 apid 2: pa 0xfec00000, version 11, 24 pins
acpi0 at mainbus0: Intel ACPICA 20080321
acpi0: X/RSDT: OemId <Nvidia,NVDAACPI,42302e31>, AslId <NVDA,00000000>
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
acpibut0 at acpi0 (PWRB, PNP0C0C): ACPI Power Button
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
pcppi1 at acpi0 (SPKR, PNP0800)
pcppi1: io 0x61
midi0 at pcppi1: PC speaker (CPU-intensive output)
sysbeep0 at pcppi1
UAR1 (PNP0501) 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
FAN (PNP0C0B) at acpi0 not configured
acpitz0 at acpi0 (THRM): active cooling level 0: 48.0C critical 60.0C
passive 40.0C
attimer1: attached to pcppi1
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
vendor 0x10de product 0x0444 (RAM memory, revision 0xa3) at pci0 dev 0
function 0 not configured
pcib0 at pci0 dev 1 function 0
pcib0: vendor 0x10de product 0x0441 (rev. 0xa3)
nfsmbc0 at pci0 dev 1 function 1: vendor 0x10de product 0x0446 (rev. 0xa1)
nfsmb0 at nfsmbc0 SMBus 1
iic0 at nfsmb0: I2C bus
nfsmb1 at nfsmbc0 SMBus 2
iic1 at nfsmb1: I2C bus
vendor 0x10de product 0x0445 (RAM memory, revision 0xa1) at pci0 dev 1
function 2 not configured
ohci0 at pci0 dev 2 function 0: vendor 0x10de product 0x0454 (rev. 0xa3)
AUBA: Picked IRQ 20 with weight 0
ohci0: interrupting at ioapic0 pin 20
ohci0: OHCI version 1.0, legacy support
usb0 at ohci0: USB revision 1.0
ehci0 at pci0 dev 2 function 1: vendor 0x10de product 0x0455 (rev. 0xa3)
AUB2: Picked IRQ 21 with weight 0
ehci0: interrupting at ioapic0 pin 21
ehci0: EHCI version 1.0
ehci0: companion controller, 10 ports each: ohci0
usb1 at ehci0: USB revision 2.0
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
azalia0: host: 0x10de/0x044a (rev. 161), HDA rev. 1.0
ppb0 at pci0 dev 8 function 0: vendor 0x10de product 0x0449 (rev. 0xa1)
pci1 at ppb0 bus 1
pci1: i/o space, memory space enabled
bktr0 at pci1 dev 10 function 0
APC3: Picked IRQ 18 with weight 0
bktr0: interrupting at ioapic0 pin 18
bktr0: Warning - card vendor 0x0000 (model 0x0000) unknown.
bktr0: Detected a DPL34-1@-@0 at 0x84
bktr0: Intel Smart Video III/VideoLogic Captivator PCI, <no> tuner,
dpl3518a dolby.
vendor 0x109e product 0x0878 (miscellaneous multimedia, revision 0x11)
at pci1 dev 10 function 1 not configured
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
atabus0 at viaide0 channel 0
viaide0: secondary channel configured to compatibility mode
viaide0: secondary channel ignored (disabled)
ahcisata0 at pci0 dev 10 function 0: vendor 0x10de product 0x045d
APSI: Picked IRQ 23 with weight 0
ahcisata0: interrupting at ioapic0 pin 23
ahcisata0: AHCI revision 1.1, 4 ports, 32 command slots, features 0xe3228080
atabus1 at ahcisata0 channel 0
atabus2 at ahcisata0 channel 1
atabus3 at ahcisata0 channel 2
atabus4 at ahcisata0 channel 3
ppb1 at pci0 dev 11 function 0: vendor 0x10de 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
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: vendor 0x10de product 0x045a (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: vendor 0x10de product 0x0458 (rev. 0xa1)
pci4 at ppb3 bus 4
pci4: i/o space, memory space enabled, rd/line, wr/inv ok
vga0 at pci4 dev 0 function 0: vendor 0x1002 product 0x5b62 (rev. 0x00)
wsdisplay0 at vga0 kbdmux 1: console (80x25, vt100 emulation), using wskbd0
wsmux1: connecting to wsdisplay0
drm at vga0 not configured
vendor 0x1002 product 0x5b72 (miscellaneous display) at pci4 dev 0
function 1 not configured
ppb4 at pci0 dev 14 function 0: vendor 0x10de product 0x0459 (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: vendor 0x1022 product 0x1100 (rev. 0x00)
pchb1 at pci0 dev 24 function 1
pchb1: vendor 0x1022 product 0x1101 (rev. 0x00)
pchb2 at pci0 dev 24 function 2
pchb2: vendor 0x1022 product 0x1102 (rev. 0x00)
amdtemp0 at pci0 dev 24 function 3
amdtemp0: AMD CPU Temperature Sensors (K8: core rev BH-G1, socket AM2)
isa0 at pcib0
com0 at isa0 port 0x3f8-0x3ff irq 4: ns16550a, working fifo
timecounter: Timecounter "clockinterrupt" frequency 100 Hz quality 0
azalia0: codec[0]: Realtek ALC883 (rev. 0.2), HDA rev. 1.0
audio0 at azalia0: full duplex, independent
atapibus0 at atabus0: 2 targets
uhub0 at usb0: vendor 0x10de OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 10 ports with 10 removable, self powered
uhub1 at usb1: vendor 0x10de EHCI root hub, class 9/0, rev 2.00/1.00, addr 1
uhub1: 10 ports with 10 removable, self powered
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)
ahcisata0 port 0: device present, speed: 1.5Gb/s
ahcisata0 port 1: device present, speed: 1.5Gb/s
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: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 6 (Ultra/133)
wd0(ahcisata0:0:0): using PIO mode 4, DMA mode 2, Ultra-DMA mode 6
(Ultra/133) (using DMA)
wd1 at atabus2 drive 0: <HDS728080PLA380>
wd1: drive supports 16-sector PIO transfers, LBA48 addressing
wd1: 78533 MB, 159560 cyl, 16 head, 63 sec, 512 bytes/sect x 160836480 sectors
wd1: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 6 (Ultra/133)
wd1(ahcisata0:1:0): using PIO mode 4, DMA mode 2, Ultra-DMA mode 6
(Ultra/133) (using DMA)
Kernelized RAIDframe activated
pad0: outputs: 44100Hz, 16-bit, stereo
audio1 at pad0: half duplex
boot device: wd0
root on wd0a dumps on wd0b
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)
Home |
Main Index |
Thread Index |
Old Index