[prev in list] [next in list] [prev in thread] [next in thread] 

List:       linux-megaraid-devel
Subject:    FW: megaraid 1.18, HP NetRaid
From:       Matt_Domsch () Dell ! com
Date:       2002-01-22 21:03:00
[Download RAW message or body]

Actually, linux-megaraid-devel@dell.com is a better place to discuss.  I'm
forwarding your note and patch there.
Thanks,
Matt

-- 
Matt Domsch
Sr. Software Engineer
Dell Linux Solutions www.dell.com/linux
#1 US Linux Server provider with 24.5% (IDC Dec 2001)
#2 Worldwide Linux Server provider with 18.5% (IDC Dec 2001)

-----Original Message-----
From: Michael Marxmeier [mailto:mike@marxmeier.com]
Sent: Tuesday, January 22, 2002 7:26 PM
Subject: megaraid 1.18, HP NetRaid


Hello Matt.

Seems you are the one to take care of the MegaRaid driver.
Something like the following patch was necessary for me to
detect the HP NetRaid1S properly. Line numbers are slightly
skewed due to local hacks (2.2 based kernel).


Hope this helps
Michael
--- megaraid.c.mm	Wed Jan 23 02:00:08 2002
+++ megaraid.c	Wed Jan 23 02:07:19 2002
@@ -462,7 +462,11 @@
+ *
+ ** 23.01.2002, mike@marxmeier.com
+ *   preset OEM info from PCI config (LD8 firmware)
+ *   Necessary for HP NetRaid1SI
  *
  * BUGS:
  *     Some older 2.1 kernels (eg. 2.1.90) have a bug in pci.c that
@@ -2921,6 +2925,10 @@
 				continue;
 #endif
 		}
+		else {
+		   subsysvid = AMI_SUBSYS_ID;	/* generic */
+		   subsysid = 0;
+		}
 
 		printk (KERN_NOTICE
 			"megaraid: found 0x%4.04x:0x%4.04x:idx %d:bus
%d:slot %d:func %d\n",
@@ -2979,6 +2987,10 @@
 		if (flag & BOARD_64BIT)
 			printk (KERN_NOTICE "scsi%d : Enabling 64 bit
support\n",
 				host->host_no);
+
+                /* preset OEM info from PCI config (LD8 firmware) */
+		megaCfg->productInfo.subSystemVendorID = subsysvid;
+		megaCfg->productInfo.subSystemID = subsysid;
 
 		/* Copy resource info into structure */
 		megaCfg->qCompletedH = NULL;

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic