DragonFly BSD
DragonFly submit List (threaded) for 2004-09
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re: proposed addition for sys/raid/ips (ServeRaid) driver in order to support latest 6M cards from Adaptec


From: Tomaž Borštnar <tomaz.borstnar@xxxxxxxx>
Date: Mon, 06 Sep 2004 10:09:03 +0200

YONETANI Tomokazu wrote:

Yeah, our ServeRAID driver lacks recent important updates from FreeBSD-CURRENT
including newly supported controllers and a few bug fixes.
not sure if freebsd 5.3 driver is that good. I have open PR (http://www.freebsd.org/cgi/query-pr.cgi?pr=kern/71087) for it.

The update
in FreeBSD-CURRENT also involves converting some of mutex operations into
sema_* and bio*, but I haven't managed to rewrite it using our native
thread APIs. Anyway, I can post a minimal patch(that is, not including my
experimental code to convert the mutexes and the semaphoe stuffs) to support
newer controllers if you like to try it.

I did this for FreeBSD 5.2.1 to make it work:


Index: sys/dev/ips/ips.h
===================================================================
RCS file: /home/ncvs/src/sys/dev/ips/ips.h,v
retrieving revision 1.5
diff -u -r1.5 ips.h
--- sys/dev/ips/ips.h   27 Nov 2003 08:37:36 -0000      1.5
+++ sys/dev/ips/ips.h   30 Aug 2004 14:35:18 -0000
@@ -52,8 +52,8 @@
 /*
  *   IPS CONSTANTS
  */
-#define IPS_VENDOR_ID                   0x1014
-#define IPS_MORPHEUS_DEVICE_ID          0x01BD
+#define IPS_VENDOR_ID                   0x9005
+#define IPS_MORPHEUS_DEVICE_ID          0x0250
 #define IPS_COPPERHEAD_DEVICE_ID        0x002E
 #define IPS_CSL                                0xff
 #define IPS_POCL                       0x30


It is a hack, but it works fine.
I would say something like this should not go into main Dfly code, but something close would make Dfly usable for people with new cards.


Yes, I will gladly test it if you prepare a better patch than my hack.


Tomaž





[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]