Re: AMI megaraid driver 0.96 release

Jeffrey Jones (jeffreyj@ami.com)
Wed, 24 Feb 1999 14:11:50 -0500


For anyone who may have tried to test the 0.96 driver I released a few
days ago--I forgot to change one last thing in the megaraid.h that I put
out, effectively
making the MULTI_IO flag useless. The following patch, applied to the 0.96
megaraid.h
will make the multi-io support work: (if you aren't testing with multi-io
this is unnecessary)

-------------

--- megaraid.h Mon Feb 22 10:04:00 1999
+++ megaraid.h-multi Wed Feb 24 14:10:02 1999
@@ -5,7 +5,7 @@
#include <linux/version.h>
#endif

-#define MULTI_IO 0 /* change to 1 for fully parallel I/O to adapter */
+#define MULTI_IO 1 /* change to 1 for fully parallel I/O to adapter */
/* works on some systems, not on others yet */

#define IN_ISR 0x80000000L
@@ -26,7 +26,11 @@
#define MEGA_CMD_TIMEOUT 10

#define MAX_SGLIST 17
+#ifdef MULTI_IO
#define MAX_COMMANDS 254
+#else
+#define MAX_COMMANDS 1
+#endif

#define MAX_LOGICAL_DRIVES 8
#define MAX_CHANNEL 5
@@ -120,11 +124,11 @@
megaraid_reset, /* Reset Command Function */\
NULL, /* Slave Attach Function */\
megaraid_biosparam, /* Disk BIOS Parameters */\
- 254, /* # of cmds that can be\
+ MAX_COMMANDS, /* # of cmds that can be\
outstanding at any time */\
7, /* HBA Target ID */\
MAX_SGLIST, /* Scatter/Gather Table Size */\
- 64, /* SCSI Commands per LUN */\
+ 211, /* SCSI Commands per LUN */\
0, /* Present */\
0, /* Default Unchecked ISA DMA */\
ENABLE_CLUSTERING } /* Enable Clustering */
@@ -141,10 +145,10 @@
abort: megaraid_abort, /* Abort Command Function
*/\
reset: megaraid_reset, /* Reset Command Function
*/\
bios_param: megaraid_biosparam, /* Disk BIOS Parameters
*/\
- can_queue: 1 /* MAX_COMMANDS */, /* Can Queue
*/\
+ can_queue: MAX_COMMANDS, /* Can Queue
*/\
this_id: 7, /* HBA Target ID
*/\
sg_tablesize: MAX_SGLIST, /* Scatter/Gather Table Size
*/\
- cmd_per_lun: 64, /* SCSI Commands per LUN
*/\
+ cmd_per_lun: 211, /* SCSI Commands per LUN
*/\
present: 0, /* Present
*/\
unchecked_isa_dma:0, /* Default Unchecked ISA DMA
*/\
use_clustering: ENABLE_CLUSTERING /* Enable Clustering
*/\
@@ -282,7 +286,7 @@
volatile u_char mega_buffer[2 * 1024L];

u_char max_cmds;
- mega_scb scbList[MAX_COMMANDS];
+ mega_scb scbList[254];
} mega_host_config;

extern struct proc_dir_entry proc_scsi_megaraid;

--

Jeff L Jones <jeffreyj@ami.com> RAID SW Dev., American Megatrends Inc.

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/