Quantcast

MPC79 in AHCI mode

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

MPC79 in AHCI mode

Wouter Coene
Hi,

The following patch against 4.6 makes the MPC79 chipset (found on boards
with an nvidia ion chipset) work in AHCI mode. Without this change the
AHCI driver fails to detect any drives.

Index: /usr/src/sys/dev/pci/ahci.c
===================================================================
RCS file: /cvs/openbsd/src/sys/dev/pci/ahci.c,v
retrieving revision 1.147
diff -u -a -r1.147 ahci.c
--- /usr/src/sys/dev/pci/ahci.c 16 Feb 2009 21:19:07 -0000 1.147
+++ /usr/src/sys/dev/pci/ahci.c 23 Nov 2009 19:41:22 -0000
@@ -436,6 +436,8 @@
  { PCI_VENDOR_NVIDIA, PCI_PRODUCT_NVIDIA_MCP67_AHCI_1,
     NULL, ahci_nvidia_mcp_attach },
  { PCI_VENDOR_NVIDIA, PCI_PRODUCT_NVIDIA_MCP77_AHCI_5,
+    NULL, ahci_nvidia_mcp_attach },
+ { PCI_VENDOR_NVIDIA, PCI_PRODUCT_NVIDIA_MCP79_AHCI_1,
     NULL, ahci_nvidia_mcp_attach }
 };
 
Dmesg of a GENERIC kernel with this change is below. The system has run
without issue for a couple of months now.

Regards,
Wouter Coene (not on list)

OpenBSD 4.6-stable (build.gen) #0: Mon Nov 23 20:54:50 CET 2009
    [hidden email]:/root/build.gen
real mem = 3723034624 (3550MB)
avail mem = 3600875520 (3434MB)
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.5 @ 0xf0710 (43 entries)
bios0: vendor American Megatrends Inc. version "0216" date 10/12/2009
bios0: ASUSTeK Computer INC. AT3N7A-I
acpi0 at bios0: rev 2
acpi0: tables DSDT FACP APIC MCFG WDRT OEMB HPET NVHD
acpi0: wakeup devices PS2K(S4) PS2M(S4) SMB0(S4) USB0(S4) USB2(S4) US15(S4) US12(S4) PBB0(S4) HDAC(S4) XVR0(S4) XVR1(S4) P0P5(S4) P0P6(S4) P0P7(S4) P0P8(S4) P0P9(S4) NMAC(S5)
acpitimer0 at acpi0: 3579545 Hz, 32 bits
acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Intel(R) Atom(TM) CPU 330 @ 1.60GHz, 1600.23 MHz
cpu0: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,TM2,CX16,xTPR,NXE,LONG
cpu0: 512KB 64b/line 16-way L2 cache
cpu0: apic clock running at 133MHz
cpu1 at mainbus0: apid 2 (application processor)
cpu1: Intel(R) Atom(TM) CPU 330 @ 1.60GHz, 1599.99 MHz
cpu1: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,TM2,CX16,xTPR,NXE,LONG
cpu1: 512KB 64b/line 16-way L2 cache
ioapic0 at mainbus0 apid 3 pa 0xfec00000, version 11, 24 pins
ioapic0: misconfigured as apic 1, remapped to apid 3
acpihpet0 at acpi0: 25000000 Hz
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus 1 (PBB0)
acpiprt2 at acpi0: bus 2 (IXVE)
acpiprt3 at acpi0: bus -1 (XVR0)
acpiprt4 at acpi0: bus -1 (XVR1)
acpiprt5 at acpi0: bus -1 (P0P5)
acpiprt6 at acpi0: bus 3 (P0P6)
acpiprt7 at acpi0: bus -1 (P0P7)
acpiprt8 at acpi0: bus -1 (P0P8)
acpiprt9 at acpi0: bus -1 (P0P9)
acpicpu0 at acpi0: C3, C2
acpicpu1 at acpi0
acpibtn0 at acpi0: PWRB
pci0 at mainbus0 bus 0
pchb0 at pci0 dev 0 function 0 "NVIDIA MCP79 Host" rev 0xb1
"NVIDIA MCP79 Memory" rev 0xb1 at pci0 dev 0 function 1 not configured
pcib0 at pci0 dev 3 function 0 "NVIDIA MCP79 ISA" rev 0xb2
"NVIDIA MCP79 Memory" rev 0xb1 at pci0 dev 3 function 1 not configured
nviic0 at pci0 dev 3 function 2 "NVIDIA MCP79 SMBus" rev 0xb1
iic0 at nviic0
iic1 at nviic0
spdmem0 at iic1 addr 0x50: 2GB DDR2 SDRAM non-parity PC2-6400CL5
spdmem1 at iic1 addr 0x51: 2GB DDR2 SDRAM non-parity PC2-6400CL5
"NVIDIA MCP79 Memory" rev 0xb1 at pci0 dev 3 function 3 not configured
"NVIDIA MCP79 Co-processor" rev 0xb1 at pci0 dev 3 function 5 not configured
ohci0 at pci0 dev 4 function 0 "NVIDIA MCP79 USB" rev 0xb1: apic 3 int 14 (irq 14), version 1.0, legacy support
ehci0 at pci0 dev 4 function 1 "NVIDIA MCP79 USB" rev 0xb1: apic 3 int 7 (irq 7)
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 "NVIDIA EHCI root hub" rev 2.00/1.00 addr 1
ohci1 at pci0 dev 6 function 0 "NVIDIA MCP79 USB" rev 0xb1: apic 3 int 10 (irq 10), version 1.0, legacy support
ehci1 at pci0 dev 6 function 1 "NVIDIA MCP79 USB" rev 0xb1: apic 3 int 11 (irq 11)
usb1 at ehci1: USB revision 2.0
uhub1 at usb1 "NVIDIA EHCI root hub" rev 2.00/1.00 addr 1
azalia0 at pci0 dev 8 function 0 "NVIDIA MCP79 HD Audio" rev 0xb1: apic 3 int 9 (irq 9)
azalia0: codecs: VIA/0x0397, NVIDIA/0x0007, using VIA/0x0397
audio0 at azalia0
ppb0 at pci0 dev 9 function 0 "NVIDIA MCP79 PCIE" rev 0xb1
pci1 at ppb0 bus 1
ahci0 at pci0 dev 11 function 0 "NVIDIA MCP79 AHCI" rev 0xb1: apic 3 int 5 (irq 5), AHCI 1.2
scsibus0 at ahci0: 32 targets
sd0 at scsibus0 targ 0 lun 0: <ATA, ST31000340NS, SN06> SCSI3 0/direct fixed
sd0: 953869MB, 512 bytes/sec, 1953525168 sec total
sd1 at scsibus0 targ 1 lun 0: <ATA, WDC WD1002FBYS-0, 03.0> SCSI3 0/direct fixed
sd1: 953869MB, 512 bytes/sec, 1953525168 sec total
sd2 at scsibus0 targ 2 lun 0: <ATA, WDC WD1002FBYS-0, 03.0> SCSI3 0/direct fixed
sd2: 953869MB, 512 bytes/sec, 1953525168 sec total
ppb1 at pci0 dev 16 function 0 "NVIDIA MCP79 PCIE" rev 0xb1
pci2 at ppb1 bus 2
vga1 at pci2 dev 0 function 0 vendor "NVIDIA", unknown product 0x087d rev 0xb1
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
ppb2 at pci0 dev 21 function 0 "NVIDIA MCP79 PCIE" rev 0xb1: apic 3 int 10 (irq 10)
pci3 at ppb2 bus 3
re0 at pci3 dev 0 function 0 "Realtek 8168" rev 0x03: RTL8168D/8111D (0x2800), apic 3 int 15 (irq 15), address 00:26:18:ee:09:83
rgephy0 at re0 phy 7: RTL8169S/8110S PHY, rev. 2
isa0 at pcib0
isadma0 at isa0
pckbc0 at isa0 port 0x60/5
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>
spkr0 at pcppi0
it0 at isa0 port 0x2e/2: IT8720F rev 8, EC port 0x290
usb2 at ohci0: USB revision 1.0
uhub2 at usb2 "NVIDIA OHCI root hub" rev 1.00/1.00 addr 1
usb3 at ohci1: USB revision 1.0
uhub3 at usb3 "NVIDIA OHCI root hub" rev 1.00/1.00 addr 1
mtrr: Pentium Pro MTRR support
rum0 at uhub1 port 2 "Ralink 802.11 bg WLAN" rev 2.00/0.01 addr 2
rum0: MAC/BBP RT2573 (rev 0x2573a), RF RT2528, address 00:17:31:b1:78:2b
uhub4 at uhub3 port 1 "Mitsumi Electric Hub in Apple Extended USB Keyboard" rev 1.10/4.10 addr 2
uhidev0 at uhub4 port 3 configuration 1 interface 0 "Mitsumi Electric Apple Extended USB Keyboard" rev 1.10/4.10 addr 3
uhidev0: iclass 3/1
ukbd0 at uhidev0: 8 modifier keys, 6 key codes, country code 13
wskbd1 at ukbd0 mux 1
wskbd1: connecting to wsdisplay0
uhidev1 at uhub4 port 3 configuration 1 interface 1 "Mitsumi Electric Apple Extended USB Keyboard" rev 1.10/4.10 addr 3
uhidev1: iclass 3/0, 3 report ids
uhid0 at uhidev1 reportid 2: input=1, output=0, feature=0
uhid1 at uhidev1 reportid 3: input=3, output=0, feature=0
softraid0 at root
root on sd0a swap on sd0b dump on sd0b

Loading...