Fw: nv-pv2 (Was: I give up)

From: Conrad J. Sabatier <conrads_at_cox.net>
Date: Wed, 14 Jan 2009 16:38:46 -0600
OK, I took Soren's advice and modified the device ID in one of the
patches he had originally sent me.  The SATA controller is now being
recognized, as well as the hard drive, but still no CD/DVD.

What else do I need to do to complete this remedy?  I've included my
modifications to Soren's original patches below.

Thank you, and sorry for the long lag in following up on this issue.

Conrad

Begin forwarded message:

Date: Wed, 31 Dec 2008 22:32:51 -0600 (CST)
From: conrads_at_serene.no-ip.org (Conrad J. Sabatier)
To: conrads_at_cox.net
Subject: nv-pv2


Index: chipsets/ata-nvidia.c
===================================================================
--- chipsets/ata-nvidia.c	(revision 184585)
+++ chipsets/ata-nvidia.c	(working copy)
_at__at_ -61,6 +61,7 _at__at_
 /* misc defines */
 #define NV4             0x01
 #define NVQ             0x02
+#define NVAHCI		0x04
 
 
 /*
_at__at_ -99,6 +100,7 _at__at_
      { ATA_NFORCE_MCP67,    0, 0,       0, ATA_UDMA6, "nForce MCP67" },
      { ATA_NFORCE_MCP73,    0, 0,       0, ATA_UDMA6, "nForce MCP73" },
      { ATA_NFORCE_MCP77,    0, 0,       0, ATA_UDMA6, "nForce MCP77" },
+     { ATA_NFORCE_MCP77_A8, 0, NVAHCI,  0, ATA_SA300, "nForce MCP77" },
      { 0, 0, 0, 0, 0, 0}} ;
 
     if (pci_get_vendor(dev) != ATA_NVIDIA_ID)
_at__at_ -108,7 +110,10 _at__at_
 	return ENXIO;
 
     ata_set_desc(dev);
-    ctlr->chipinit = ata_nvidia_chipinit;
+    if (ctlr->chip->cfg1 & NVAHCI)
+	ctlr->chipinit = ata_ahci_chipinit;
+    else
+	ctlr->chipinit = ata_nvidia_chipinit;
     return 0;
 }
 
Index: ata-pci.h
===================================================================
--- ata-pci.h	(revision 184585)
+++ ata-pci.h	(working copy)
_at__at_ -255,8 +255,44 _at__at_
 #define ATA_NFORCE_MCP61_S3     0x03f710de
 #define ATA_NFORCE_MCP65        0x044810de
 #define ATA_NFORCE_MCP67        0x056010de
+#define ATA_NFORCE_MCP67_A0     0x055010de
+#define ATA_NFORCE_MCP67_A1     0x055110de
+#define ATA_NFORCE_MCP67_A2     0x055210de
+#define ATA_NFORCE_MCP67_A3     0x055310de
+#define ATA_NFORCE_MCP67_A4     0x055410de
+#define ATA_NFORCE_MCP67_A5     0x055510de
+#define ATA_NFORCE_MCP67_A6     0x055610de
+#define ATA_NFORCE_MCP67_A7     0x055710de
+#define ATA_NFORCE_MCP67_A8     0x055810de
+#define ATA_NFORCE_MCP67_A9     0x055910de
+#define ATA_NFORCE_MCP67_Aa     0x055a10de
+#define ATA_NFORCE_MCP67_Ab     0x055b10de
 #define ATA_NFORCE_MCP73        0x056c10de
+#define ATA_NFORCE_MCP73_A0     0x07f010de
+#define ATA_NFORCE_MCP73_A1     0x07f110de
+#define ATA_NFORCE_MCP73_A2     0x07f210de
+#define ATA_NFORCE_MCP73_A3     0x07f310de
+#define ATA_NFORCE_MCP73_A4     0x07f410de
+#define ATA_NFORCE_MCP73_A5     0x07f510de
+#define ATA_NFORCE_MCP73_A6     0x07f610de
+#define ATA_NFORCE_MCP73_A7     0x07f710de
+#define ATA_NFORCE_MCP73_A8     0x07f810de
+#define ATA_NFORCE_MCP73_A9     0x07f910de
+#define ATA_NFORCE_MCP73_Aa     0x07fa10de
+#define ATA_NFORCE_MCP73_Ab     0x07fb10de
 #define ATA_NFORCE_MCP77        0x075910de
+#define ATA_NFORCE_MCP77_A0     0x0ad010de
+#define ATA_NFORCE_MCP77_A1     0x0ad110de
+#define ATA_NFORCE_MCP77_A2     0x0ad210de
+#define ATA_NFORCE_MCP77_A3     0x0ad310de
+#define ATA_NFORCE_MCP77_A4     0x0ad410de
+#define ATA_NFORCE_MCP77_A5     0x0ad510de
+#define ATA_NFORCE_MCP77_A6     0x0ad610de
+#define ATA_NFORCE_MCP77_A7     0x0ad710de
+#define ATA_NFORCE_MCP77_A8     0x0ad810de
+#define ATA_NFORCE_MCP77_A9     0x0ad910de
+#define ATA_NFORCE_MCP77_Aa     0x0ada10de
+#define ATA_NFORCE_MCP77_Ab     0x0adb10de
 
 #define ATA_PROMISE_ID          0x105a
 #define ATA_PDC20246            0x4d33105a


-- 
Conrad J. Sabatier <conrads_at_cox.net>
Received on Wed Jan 14 2009 - 21:38:48 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:40 UTC