blob: 4efe638036f6d9d4040883757ab425ac6d42d636 [file] [log] [blame]
Chandra Seetharamanfbd7ab32008-05-01 14:49:52 -07001/*
2 * Engenio/LSI RDAC SCSI Device Handler
3 *
4 * Copyright (C) 2005 Mike Christie. All rights reserved.
5 * Copyright (C) Chandra Seetharaman, IBM Corp. 2007
6 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2 of the License, or
10 * (at your option) any later version.
11 *
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
20 *
21 */
22#include <scsi/scsi.h>
23#include <scsi/scsi_eh.h>
24#include <scsi/scsi_dh.h>
Chandra Seetharaman970f3f42009-10-21 09:22:51 -070025#include <linux/workqueue.h>
Tejun Heo5a0e3ad2010-03-24 17:04:11 +090026#include <linux/slab.h>
Chandra Seetharamanfbd7ab32008-05-01 14:49:52 -070027
28#define RDAC_NAME "rdac"
Chandra Seetharamanc85f8cb92008-11-05 20:06:37 -080029#define RDAC_RETRY_COUNT 5
Chandra Seetharamanfbd7ab32008-05-01 14:49:52 -070030
31/*
32 * LSI mode page stuff
33 *
34 * These struct definitions and the forming of the
35 * mode page were taken from the LSI RDAC 2.4 GPL'd
36 * driver, and then converted to Linux conventions.
37 */
38#define RDAC_QUIESCENCE_TIME 20;
39/*
40 * Page Codes
41 */
42#define RDAC_PAGE_CODE_REDUNDANT_CONTROLLER 0x2c
43
44/*
45 * Controller modes definitions
46 */
47#define RDAC_MODE_TRANSFER_SPECIFIED_LUNS 0x02
48
49/*
50 * RDAC Options field
51 */
52#define RDAC_FORCED_QUIESENCE 0x02
53
54#define RDAC_TIMEOUT (60 * HZ)
55#define RDAC_RETRIES 3
56
57struct rdac_mode_6_hdr {
58 u8 data_len;
59 u8 medium_type;
60 u8 device_params;
61 u8 block_desc_len;
62};
63
64struct rdac_mode_10_hdr {
65 u16 data_len;
66 u8 medium_type;
67 u8 device_params;
68 u16 reserved;
69 u16 block_desc_len;
70};
71
72struct rdac_mode_common {
73 u8 controller_serial[16];
74 u8 alt_controller_serial[16];
75 u8 rdac_mode[2];
76 u8 alt_rdac_mode[2];
77 u8 quiescence_timeout;
78 u8 rdac_options;
79};
80
81struct rdac_pg_legacy {
82 struct rdac_mode_6_hdr hdr;
83 u8 page_code;
84 u8 page_len;
85 struct rdac_mode_common common;
86#define MODE6_MAX_LUN 32
87 u8 lun_table[MODE6_MAX_LUN];
88 u8 reserved2[32];
89 u8 reserved3;
90 u8 reserved4;
91};
92
93struct rdac_pg_expanded {
94 struct rdac_mode_10_hdr hdr;
95 u8 page_code;
96 u8 subpage_code;
97 u8 page_len[2];
98 struct rdac_mode_common common;
99 u8 lun_table[256];
100 u8 reserved3;
101 u8 reserved4;
102};
103
104struct c9_inquiry {
105 u8 peripheral_info;
106 u8 page_code; /* 0xC9 */
107 u8 reserved1;
108 u8 page_len;
109 u8 page_id[4]; /* "vace" */
110 u8 avte_cvp;
111 u8 path_prio;
112 u8 reserved2[38];
113};
114
115#define SUBSYS_ID_LEN 16
116#define SLOT_ID_LEN 2
Moger, Babu15276662009-09-03 21:42:21 -0600117#define ARRAY_LABEL_LEN 31
Chandra Seetharamanfbd7ab32008-05-01 14:49:52 -0700118
119struct c4_inquiry {
120 u8 peripheral_info;
121 u8 page_code; /* 0xC4 */
122 u8 reserved1;
123 u8 page_len;
124 u8 page_id[4]; /* "subs" */
125 u8 subsys_id[SUBSYS_ID_LEN];
126 u8 revision[4];
127 u8 slot_id[SLOT_ID_LEN];
128 u8 reserved[2];
129};
130
131struct rdac_controller {
132 u8 subsys_id[SUBSYS_ID_LEN];
133 u8 slot_id[SLOT_ID_LEN];
134 int use_ms10;
135 struct kref kref;
136 struct list_head node; /* list of all controllers */
137 union {
138 struct rdac_pg_legacy legacy;
139 struct rdac_pg_expanded expanded;
140 } mode_select;
Moger, Babu15276662009-09-03 21:42:21 -0600141 u8 index;
142 u8 array_name[ARRAY_LABEL_LEN];
Chandra Seetharaman970f3f42009-10-21 09:22:51 -0700143 spinlock_t ms_lock;
144 int ms_queued;
145 struct work_struct ms_work;
146 struct scsi_device *ms_sdev;
147 struct list_head ms_head;
Chandra Seetharamanfbd7ab32008-05-01 14:49:52 -0700148};
Chandra Seetharaman970f3f42009-10-21 09:22:51 -0700149
Chandra Seetharamanfbd7ab32008-05-01 14:49:52 -0700150struct c8_inquiry {
151 u8 peripheral_info;
152 u8 page_code; /* 0xC8 */
153 u8 reserved1;
154 u8 page_len;
155 u8 page_id[4]; /* "edid" */
156 u8 reserved2[3];
157 u8 vol_uniq_id_len;
158 u8 vol_uniq_id[16];
159 u8 vol_user_label_len;
160 u8 vol_user_label[60];
161 u8 array_uniq_id_len;
162 u8 array_unique_id[16];
163 u8 array_user_label_len;
164 u8 array_user_label[60];
165 u8 lun[8];
166};
167
168struct c2_inquiry {
169 u8 peripheral_info;
170 u8 page_code; /* 0xC2 */
171 u8 reserved1;
172 u8 page_len;
173 u8 page_id[4]; /* "swr4" */
174 u8 sw_version[3];
175 u8 sw_date[3];
176 u8 features_enabled;
177 u8 max_lun_supported;
178 u8 partitions[239]; /* Total allocation length should be 0xFF */
179};
180
181struct rdac_dh_data {
182 struct rdac_controller *ctlr;
183#define UNINITIALIZED_LUN (1 << 8)
184 unsigned lun;
Moger, Babueebe9b92011-04-08 11:37:40 -0600185
186#define RDAC_MODE 0
187#define RDAC_MODE_AVT 1
188#define RDAC_MODE_IOSHIP 2
189 unsigned char mode;
190
Chandra Seetharamanfbd7ab32008-05-01 14:49:52 -0700191#define RDAC_STATE_ACTIVE 0
192#define RDAC_STATE_PASSIVE 1
193 unsigned char state;
Hannes Reineckeca9f0082008-07-17 16:53:15 -0700194
195#define RDAC_LUN_UNOWNED 0
196#define RDAC_LUN_OWNED 1
Hannes Reineckeca9f0082008-07-17 16:53:15 -0700197 char lun_state;
Moger, Babueebe9b92011-04-08 11:37:40 -0600198
199#define RDAC_PREFERRED 0
200#define RDAC_NON_PREFERRED 1
201 char preferred;
202
Chandra Seetharamanfbd7ab32008-05-01 14:49:52 -0700203 unsigned char sense[SCSI_SENSE_BUFFERSIZE];
204 union {
205 struct c2_inquiry c2;
206 struct c4_inquiry c4;
207 struct c8_inquiry c8;
208 struct c9_inquiry c9;
209 } inq;
210};
211
Moger, Babueebe9b92011-04-08 11:37:40 -0600212static const char *mode[] = {
213 "RDAC",
214 "AVT",
215 "IOSHIP",
216};
Hannes Reineckeca9f0082008-07-17 16:53:15 -0700217static const char *lun_state[] =
218{
219 "unowned",
220 "owned",
Hannes Reineckeca9f0082008-07-17 16:53:15 -0700221};
222
Chandra Seetharaman970f3f42009-10-21 09:22:51 -0700223struct rdac_queue_data {
224 struct list_head entry;
225 struct rdac_dh_data *h;
226 activate_complete callback_fn;
227 void *callback_data;
228};
229
Chandra Seetharamanfbd7ab32008-05-01 14:49:52 -0700230static LIST_HEAD(ctlr_list);
231static DEFINE_SPINLOCK(list_lock);
Chandra Seetharaman970f3f42009-10-21 09:22:51 -0700232static struct workqueue_struct *kmpath_rdacd;
233static void send_mode_select(struct work_struct *work);
Chandra Seetharamanfbd7ab32008-05-01 14:49:52 -0700234
Moger, Babudd784ed2009-09-03 21:42:28 -0600235/*
236 * module parameter to enable rdac debug logging.
237 * 2 bits for each type of logging, only two types defined for now
238 * Can be enhanced if required at later point
239 */
240static int rdac_logging = 1;
241module_param(rdac_logging, int, S_IRUGO|S_IWUSR);
242MODULE_PARM_DESC(rdac_logging, "A bit mask of rdac logging levels, "
243 "Default is 1 - failover logging enabled, "
244 "set it to 0xF to enable all the logs");
245
246#define RDAC_LOG_FAILOVER 0
247#define RDAC_LOG_SENSE 2
248
249#define RDAC_LOG_BITS 2
250
251#define RDAC_LOG_LEVEL(SHIFT) \
252 ((rdac_logging >> (SHIFT)) & ((1 << (RDAC_LOG_BITS)) - 1))
253
254#define RDAC_LOG(SHIFT, sdev, f, arg...) \
255do { \
256 if (unlikely(RDAC_LOG_LEVEL(SHIFT))) \
257 sdev_printk(KERN_INFO, sdev, RDAC_NAME ": " f "\n", ## arg); \
258} while (0);
259
Chandra Seetharamanfbd7ab32008-05-01 14:49:52 -0700260static inline struct rdac_dh_data *get_rdac_data(struct scsi_device *sdev)
261{
262 struct scsi_dh_data *scsi_dh_data = sdev->scsi_dh_data;
263 BUG_ON(scsi_dh_data == NULL);
264 return ((struct rdac_dh_data *) scsi_dh_data->buf);
265}
266
267static struct request *get_rdac_req(struct scsi_device *sdev,
268 void *buffer, unsigned buflen, int rw)
269{
270 struct request *rq;
271 struct request_queue *q = sdev->request_queue;
Chandra Seetharamanfbd7ab32008-05-01 14:49:52 -0700272
Hannes Reineckeca9f0082008-07-17 16:53:15 -0700273 rq = blk_get_request(q, rw, GFP_NOIO);
Chandra Seetharamanfbd7ab32008-05-01 14:49:52 -0700274
275 if (!rq) {
276 sdev_printk(KERN_INFO, sdev,
277 "get_rdac_req: blk_get_request failed.\n");
278 return NULL;
279 }
280
Hannes Reineckeca9f0082008-07-17 16:53:15 -0700281 if (buflen && blk_rq_map_kern(q, rq, buffer, buflen, GFP_NOIO)) {
Chandra Seetharamanfbd7ab32008-05-01 14:49:52 -0700282 blk_put_request(rq);
283 sdev_printk(KERN_INFO, sdev,
284 "get_rdac_req: blk_rq_map_kern failed.\n");
285 return NULL;
286 }
287
Chandra Seetharamanfbd7ab32008-05-01 14:49:52 -0700288 rq->cmd_type = REQ_TYPE_BLOCK_PC;
Mike Christie6000a362008-08-19 18:45:30 -0500289 rq->cmd_flags |= REQ_FAILFAST_DEV | REQ_FAILFAST_TRANSPORT |
290 REQ_FAILFAST_DRIVER;
Chandra Seetharamanfbd7ab32008-05-01 14:49:52 -0700291 rq->retries = RDAC_RETRIES;
292 rq->timeout = RDAC_TIMEOUT;
293
294 return rq;
295}
296
Hannes Reineckeca9f0082008-07-17 16:53:15 -0700297static struct request *rdac_failover_get(struct scsi_device *sdev,
Moger, Babu04b6e152011-02-11 15:14:08 -0700298 struct rdac_dh_data *h, struct list_head *list)
Chandra Seetharamanfbd7ab32008-05-01 14:49:52 -0700299{
300 struct request *rq;
301 struct rdac_mode_common *common;
302 unsigned data_size;
Moger, Babu04b6e152011-02-11 15:14:08 -0700303 struct rdac_queue_data *qdata;
304 u8 *lun_table;
Chandra Seetharamanfbd7ab32008-05-01 14:49:52 -0700305
306 if (h->ctlr->use_ms10) {
307 struct rdac_pg_expanded *rdac_pg;
308
309 data_size = sizeof(struct rdac_pg_expanded);
310 rdac_pg = &h->ctlr->mode_select.expanded;
311 memset(rdac_pg, 0, data_size);
312 common = &rdac_pg->common;
313 rdac_pg->page_code = RDAC_PAGE_CODE_REDUNDANT_CONTROLLER + 0x40;
314 rdac_pg->subpage_code = 0x1;
315 rdac_pg->page_len[0] = 0x01;
316 rdac_pg->page_len[1] = 0x28;
Moger, Babu04b6e152011-02-11 15:14:08 -0700317 lun_table = rdac_pg->lun_table;
Chandra Seetharamanfbd7ab32008-05-01 14:49:52 -0700318 } else {
319 struct rdac_pg_legacy *rdac_pg;
320
321 data_size = sizeof(struct rdac_pg_legacy);
322 rdac_pg = &h->ctlr->mode_select.legacy;
323 memset(rdac_pg, 0, data_size);
324 common = &rdac_pg->common;
325 rdac_pg->page_code = RDAC_PAGE_CODE_REDUNDANT_CONTROLLER;
326 rdac_pg->page_len = 0x68;
Moger, Babu04b6e152011-02-11 15:14:08 -0700327 lun_table = rdac_pg->lun_table;
Chandra Seetharamanfbd7ab32008-05-01 14:49:52 -0700328 }
329 common->rdac_mode[1] = RDAC_MODE_TRANSFER_SPECIFIED_LUNS;
330 common->quiescence_timeout = RDAC_QUIESCENCE_TIME;
331 common->rdac_options = RDAC_FORCED_QUIESENCE;
332
Moger, Babu04b6e152011-02-11 15:14:08 -0700333 list_for_each_entry(qdata, list, entry) {
334 lun_table[qdata->h->lun] = 0x81;
335 }
336
Chandra Seetharamanfbd7ab32008-05-01 14:49:52 -0700337 /* get request for block layer packet command */
338 rq = get_rdac_req(sdev, &h->ctlr->mode_select, data_size, WRITE);
339 if (!rq)
340 return NULL;
341
342 /* Prepare the command. */
343 if (h->ctlr->use_ms10) {
344 rq->cmd[0] = MODE_SELECT_10;
345 rq->cmd[7] = data_size >> 8;
346 rq->cmd[8] = data_size & 0xff;
347 } else {
348 rq->cmd[0] = MODE_SELECT;
349 rq->cmd[4] = data_size;
350 }
351 rq->cmd_len = COMMAND_SIZE(rq->cmd[0]);
352
Hannes Reineckeca9f0082008-07-17 16:53:15 -0700353 rq->sense = h->sense;
354 memset(rq->sense, 0, SCSI_SENSE_BUFFERSIZE);
355 rq->sense_len = 0;
356
Chandra Seetharamanfbd7ab32008-05-01 14:49:52 -0700357 return rq;
358}
359
360static void release_controller(struct kref *kref)
361{
362 struct rdac_controller *ctlr;
363 ctlr = container_of(kref, struct rdac_controller, kref);
364
Chandra Seetharaman970f3f42009-10-21 09:22:51 -0700365 flush_workqueue(kmpath_rdacd);
Chandra Seetharamanfbd7ab32008-05-01 14:49:52 -0700366 spin_lock(&list_lock);
367 list_del(&ctlr->node);
368 spin_unlock(&list_lock);
369 kfree(ctlr);
370}
371
Moger, Babu15276662009-09-03 21:42:21 -0600372static struct rdac_controller *get_controller(u8 *subsys_id, u8 *slot_id,
373 char *array_name)
Chandra Seetharamanfbd7ab32008-05-01 14:49:52 -0700374{
375 struct rdac_controller *ctlr, *tmp;
376
377 spin_lock(&list_lock);
378
379 list_for_each_entry(tmp, &ctlr_list, node) {
380 if ((memcmp(tmp->subsys_id, subsys_id, SUBSYS_ID_LEN) == 0) &&
381 (memcmp(tmp->slot_id, slot_id, SLOT_ID_LEN) == 0)) {
382 kref_get(&tmp->kref);
383 spin_unlock(&list_lock);
384 return tmp;
385 }
386 }
387 ctlr = kmalloc(sizeof(*ctlr), GFP_ATOMIC);
388 if (!ctlr)
389 goto done;
390
391 /* initialize fields of controller */
392 memcpy(ctlr->subsys_id, subsys_id, SUBSYS_ID_LEN);
393 memcpy(ctlr->slot_id, slot_id, SLOT_ID_LEN);
Moger, Babu15276662009-09-03 21:42:21 -0600394 memcpy(ctlr->array_name, array_name, ARRAY_LABEL_LEN);
395
396 /* update the controller index */
397 if (slot_id[1] == 0x31)
398 ctlr->index = 0;
399 else
400 ctlr->index = 1;
401
Chandra Seetharamanfbd7ab32008-05-01 14:49:52 -0700402 kref_init(&ctlr->kref);
403 ctlr->use_ms10 = -1;
Chandra Seetharaman970f3f42009-10-21 09:22:51 -0700404 ctlr->ms_queued = 0;
405 ctlr->ms_sdev = NULL;
406 spin_lock_init(&ctlr->ms_lock);
407 INIT_WORK(&ctlr->ms_work, send_mode_select);
408 INIT_LIST_HEAD(&ctlr->ms_head);
Chandra Seetharamanfbd7ab32008-05-01 14:49:52 -0700409 list_add(&ctlr->node, &ctlr_list);
410done:
411 spin_unlock(&list_lock);
412 return ctlr;
413}
414
415static int submit_inquiry(struct scsi_device *sdev, int page_code,
Hannes Reineckeca9f0082008-07-17 16:53:15 -0700416 unsigned int len, struct rdac_dh_data *h)
Chandra Seetharamanfbd7ab32008-05-01 14:49:52 -0700417{
418 struct request *rq;
419 struct request_queue *q = sdev->request_queue;
Chandra Seetharamanfbd7ab32008-05-01 14:49:52 -0700420 int err = SCSI_DH_RES_TEMP_UNAVAIL;
421
422 rq = get_rdac_req(sdev, &h->inq, len, READ);
423 if (!rq)
424 goto done;
425
426 /* Prepare the command. */
427 rq->cmd[0] = INQUIRY;
428 rq->cmd[1] = 1;
429 rq->cmd[2] = page_code;
430 rq->cmd[4] = len;
431 rq->cmd_len = COMMAND_SIZE(INQUIRY);
Hannes Reineckeca9f0082008-07-17 16:53:15 -0700432
433 rq->sense = h->sense;
434 memset(rq->sense, 0, SCSI_SENSE_BUFFERSIZE);
435 rq->sense_len = 0;
436
Chandra Seetharamanfbd7ab32008-05-01 14:49:52 -0700437 err = blk_execute_rq(q, NULL, rq, 1);
438 if (err == -EIO)
439 err = SCSI_DH_IO;
Hannes Reineckeca9f0082008-07-17 16:53:15 -0700440
441 blk_put_request(rq);
Chandra Seetharamanfbd7ab32008-05-01 14:49:52 -0700442done:
443 return err;
444}
445
Moger, Babu15276662009-09-03 21:42:21 -0600446static int get_lun_info(struct scsi_device *sdev, struct rdac_dh_data *h,
447 char *array_name)
Chandra Seetharamanfbd7ab32008-05-01 14:49:52 -0700448{
Moger, Babu15276662009-09-03 21:42:21 -0600449 int err, i;
Chandra Seetharamanfbd7ab32008-05-01 14:49:52 -0700450 struct c8_inquiry *inqp;
Chandra Seetharamanfbd7ab32008-05-01 14:49:52 -0700451
Hannes Reineckeca9f0082008-07-17 16:53:15 -0700452 err = submit_inquiry(sdev, 0xC8, sizeof(struct c8_inquiry), h);
Chandra Seetharamanfbd7ab32008-05-01 14:49:52 -0700453 if (err == SCSI_DH_OK) {
454 inqp = &h->inq.c8;
Hannes Reineckeca9f0082008-07-17 16:53:15 -0700455 if (inqp->page_code != 0xc8)
456 return SCSI_DH_NOSYS;
457 if (inqp->page_id[0] != 'e' || inqp->page_id[1] != 'd' ||
458 inqp->page_id[2] != 'i' || inqp->page_id[3] != 'd')
459 return SCSI_DH_NOSYS;
Chandra Seetharaman8479fca2008-08-12 17:26:58 -0700460 h->lun = inqp->lun[7]; /* Uses only the last byte */
Moger, Babu15276662009-09-03 21:42:21 -0600461
462 for(i=0; i<ARRAY_LABEL_LEN-1; ++i)
463 *(array_name+i) = inqp->array_user_label[(2*i)+1];
464
465 *(array_name+ARRAY_LABEL_LEN-1) = '\0';
Chandra Seetharamanfbd7ab32008-05-01 14:49:52 -0700466 }
467 return err;
468}
469
Hannes Reineckeca9f0082008-07-17 16:53:15 -0700470static int check_ownership(struct scsi_device *sdev, struct rdac_dh_data *h)
Chandra Seetharamanfbd7ab32008-05-01 14:49:52 -0700471{
472 int err;
473 struct c9_inquiry *inqp;
Chandra Seetharamanfbd7ab32008-05-01 14:49:52 -0700474
Chandra Seetharaman9eece962008-11-05 20:05:21 -0800475 h->state = RDAC_STATE_ACTIVE;
Hannes Reineckeca9f0082008-07-17 16:53:15 -0700476 err = submit_inquiry(sdev, 0xC9, sizeof(struct c9_inquiry), h);
Chandra Seetharamanfbd7ab32008-05-01 14:49:52 -0700477 if (err == SCSI_DH_OK) {
Chandra Seetharamanfbd7ab32008-05-01 14:49:52 -0700478 inqp = &h->inq.c9;
Moger, Babu1c3afc42011-04-08 11:38:33 -0600479 /* detect the operating mode */
480 if ((inqp->avte_cvp >> 5) & 0x1)
481 h->mode = RDAC_MODE_IOSHIP; /* LUN in IOSHIP mode */
482 else if (inqp->avte_cvp >> 7)
483 h->mode = RDAC_MODE_AVT; /* LUN in AVT mode */
484 else
485 h->mode = RDAC_MODE; /* LUN in RDAC mode */
Hannes Reineckeca9f0082008-07-17 16:53:15 -0700486
Moger, Babu1c3afc42011-04-08 11:38:33 -0600487 /* Update ownership */
488 if (inqp->avte_cvp & 0x1)
489 h->lun_state = RDAC_LUN_OWNED;
490 else {
491 h->lun_state = RDAC_LUN_UNOWNED;
492 if (h->mode == RDAC_MODE)
493 h->state = RDAC_STATE_PASSIVE;
494 }
495
496 /* Update path prio*/
497 if (inqp->path_prio & 0x1)
498 h->preferred = RDAC_PREFERRED;
499 else
500 h->preferred = RDAC_NON_PREFERRED;
501 }
Chandra Seetharaman5a367562008-08-21 23:12:40 -0700502
Chandra Seetharamanfbd7ab32008-05-01 14:49:52 -0700503 return err;
504}
505
Hannes Reineckeca9f0082008-07-17 16:53:15 -0700506static int initialize_controller(struct scsi_device *sdev,
Moger, Babu15276662009-09-03 21:42:21 -0600507 struct rdac_dh_data *h, char *array_name)
Chandra Seetharamanfbd7ab32008-05-01 14:49:52 -0700508{
509 int err;
510 struct c4_inquiry *inqp;
Chandra Seetharamanfbd7ab32008-05-01 14:49:52 -0700511
Hannes Reineckeca9f0082008-07-17 16:53:15 -0700512 err = submit_inquiry(sdev, 0xC4, sizeof(struct c4_inquiry), h);
Chandra Seetharamanfbd7ab32008-05-01 14:49:52 -0700513 if (err == SCSI_DH_OK) {
514 inqp = &h->inq.c4;
Moger, Babu15276662009-09-03 21:42:21 -0600515 h->ctlr = get_controller(inqp->subsys_id, inqp->slot_id,
516 array_name);
Chandra Seetharamanfbd7ab32008-05-01 14:49:52 -0700517 if (!h->ctlr)
518 err = SCSI_DH_RES_TEMP_UNAVAIL;
519 }
520 return err;
521}
522
Hannes Reineckeca9f0082008-07-17 16:53:15 -0700523static int set_mode_select(struct scsi_device *sdev, struct rdac_dh_data *h)
Chandra Seetharamanfbd7ab32008-05-01 14:49:52 -0700524{
525 int err;
526 struct c2_inquiry *inqp;
Chandra Seetharamanfbd7ab32008-05-01 14:49:52 -0700527
Hannes Reineckeca9f0082008-07-17 16:53:15 -0700528 err = submit_inquiry(sdev, 0xC2, sizeof(struct c2_inquiry), h);
Chandra Seetharamanfbd7ab32008-05-01 14:49:52 -0700529 if (err == SCSI_DH_OK) {
530 inqp = &h->inq.c2;
531 /*
532 * If more than MODE6_MAX_LUN luns are supported, use
533 * mode select 10
534 */
535 if (inqp->max_lun_supported >= MODE6_MAX_LUN)
536 h->ctlr->use_ms10 = 1;
537 else
538 h->ctlr->use_ms10 = 0;
539 }
540 return err;
541}
542
Hannes Reineckeca9f0082008-07-17 16:53:15 -0700543static int mode_select_handle_sense(struct scsi_device *sdev,
Chandra Seetharaman970f3f42009-10-21 09:22:51 -0700544 unsigned char *sensebuf)
Chandra Seetharamanfbd7ab32008-05-01 14:49:52 -0700545{
546 struct scsi_sense_hdr sense_hdr;
Chauhan, Vijay7687fb92009-03-04 12:17:54 +0530547 int err = SCSI_DH_IO, ret;
Moger, Babudd784ed2009-09-03 21:42:28 -0600548 struct rdac_dh_data *h = get_rdac_data(sdev);
Chandra Seetharamanfbd7ab32008-05-01 14:49:52 -0700549
Hannes Reineckeca9f0082008-07-17 16:53:15 -0700550 ret = scsi_normalize_sense(sensebuf, SCSI_SENSE_BUFFERSIZE, &sense_hdr);
Chandra Seetharamanfbd7ab32008-05-01 14:49:52 -0700551 if (!ret)
552 goto done;
553
Chauhan, Vijay7687fb92009-03-04 12:17:54 +0530554 switch (sense_hdr.sense_key) {
555 case NO_SENSE:
556 case ABORTED_COMMAND:
557 case UNIT_ATTENTION:
Chandra Seetharamanfbd7ab32008-05-01 14:49:52 -0700558 err = SCSI_DH_RETRY;
Chauhan, Vijay7687fb92009-03-04 12:17:54 +0530559 break;
560 case NOT_READY:
561 if (sense_hdr.asc == 0x04 && sense_hdr.ascq == 0x01)
562 /* LUN Not Ready and is in the Process of Becoming
563 * Ready
564 */
565 err = SCSI_DH_RETRY;
566 break;
567 case ILLEGAL_REQUEST:
568 if (sense_hdr.asc == 0x91 && sense_hdr.ascq == 0x36)
569 /*
570 * Command Lock contention
571 */
572 err = SCSI_DH_RETRY;
573 break;
574 default:
Moger, Babudd784ed2009-09-03 21:42:28 -0600575 break;
Chandra Seetharamanfbd7ab32008-05-01 14:49:52 -0700576 }
577
Moger, Babudd784ed2009-09-03 21:42:28 -0600578 RDAC_LOG(RDAC_LOG_FAILOVER, sdev, "array %s, ctlr %d, "
579 "MODE_SELECT returned with sense %02x/%02x/%02x",
580 (char *) h->ctlr->array_name, h->ctlr->index,
581 sense_hdr.sense_key, sense_hdr.asc, sense_hdr.ascq);
582
Chandra Seetharamanfbd7ab32008-05-01 14:49:52 -0700583done:
584 return err;
585}
586
Chandra Seetharaman970f3f42009-10-21 09:22:51 -0700587static void send_mode_select(struct work_struct *work)
Chandra Seetharamanfbd7ab32008-05-01 14:49:52 -0700588{
Chandra Seetharaman970f3f42009-10-21 09:22:51 -0700589 struct rdac_controller *ctlr =
590 container_of(work, struct rdac_controller, ms_work);
Chandra Seetharamanfbd7ab32008-05-01 14:49:52 -0700591 struct request *rq;
Chandra Seetharaman970f3f42009-10-21 09:22:51 -0700592 struct scsi_device *sdev = ctlr->ms_sdev;
593 struct rdac_dh_data *h = get_rdac_data(sdev);
Chandra Seetharamanfbd7ab32008-05-01 14:49:52 -0700594 struct request_queue *q = sdev->request_queue;
Chandra Seetharamanc85f8cb92008-11-05 20:06:37 -0800595 int err, retry_cnt = RDAC_RETRY_COUNT;
Chandra Seetharaman970f3f42009-10-21 09:22:51 -0700596 struct rdac_queue_data *tmp, *qdata;
597 LIST_HEAD(list);
Chandra Seetharaman970f3f42009-10-21 09:22:51 -0700598
599 spin_lock(&ctlr->ms_lock);
600 list_splice_init(&ctlr->ms_head, &list);
601 ctlr->ms_queued = 0;
602 ctlr->ms_sdev = NULL;
603 spin_unlock(&ctlr->ms_lock);
604
Chandra Seetharamanc85f8cb92008-11-05 20:06:37 -0800605retry:
606 err = SCSI_DH_RES_TEMP_UNAVAIL;
Moger, Babu04b6e152011-02-11 15:14:08 -0700607 rq = rdac_failover_get(sdev, h, &list);
Chandra Seetharamanfbd7ab32008-05-01 14:49:52 -0700608 if (!rq)
609 goto done;
610
Moger, Babudd784ed2009-09-03 21:42:28 -0600611 RDAC_LOG(RDAC_LOG_FAILOVER, sdev, "array %s, ctlr %d, "
612 "%s MODE_SELECT command",
613 (char *) h->ctlr->array_name, h->ctlr->index,
Chandra Seetharamanc85f8cb92008-11-05 20:06:37 -0800614 (retry_cnt == RDAC_RETRY_COUNT) ? "queueing" : "retrying");
Chandra Seetharamanfbd7ab32008-05-01 14:49:52 -0700615
616 err = blk_execute_rq(q, NULL, rq, 1);
Chandra Seetharamanc85f8cb92008-11-05 20:06:37 -0800617 blk_put_request(rq);
618 if (err != SCSI_DH_OK) {
Hannes Reineckeca9f0082008-07-17 16:53:15 -0700619 err = mode_select_handle_sense(sdev, h->sense);
Chandra Seetharamanc85f8cb92008-11-05 20:06:37 -0800620 if (err == SCSI_DH_RETRY && retry_cnt--)
621 goto retry;
622 }
Moger, Babudd784ed2009-09-03 21:42:28 -0600623 if (err == SCSI_DH_OK) {
Chandra Seetharamanfbd7ab32008-05-01 14:49:52 -0700624 h->state = RDAC_STATE_ACTIVE;
Moger, Babudd784ed2009-09-03 21:42:28 -0600625 RDAC_LOG(RDAC_LOG_FAILOVER, sdev, "array %s, ctlr %d, "
626 "MODE_SELECT completed",
627 (char *) h->ctlr->array_name, h->ctlr->index);
628 }
Hannes Reineckeca9f0082008-07-17 16:53:15 -0700629
Chandra Seetharamanfbd7ab32008-05-01 14:49:52 -0700630done:
Chandra Seetharaman970f3f42009-10-21 09:22:51 -0700631 list_for_each_entry_safe(qdata, tmp, &list, entry) {
632 list_del(&qdata->entry);
633 if (err == SCSI_DH_OK)
634 qdata->h->state = RDAC_STATE_ACTIVE;
635 if (qdata->callback_fn)
636 qdata->callback_fn(qdata->callback_data, err);
637 kfree(qdata);
638 }
639 return;
640}
641
642static int queue_mode_select(struct scsi_device *sdev,
643 activate_complete fn, void *data)
644{
645 struct rdac_queue_data *qdata;
646 struct rdac_controller *ctlr;
647
648 qdata = kzalloc(sizeof(*qdata), GFP_KERNEL);
649 if (!qdata)
650 return SCSI_DH_RETRY;
651
652 qdata->h = get_rdac_data(sdev);
653 qdata->callback_fn = fn;
654 qdata->callback_data = data;
655
656 ctlr = qdata->h->ctlr;
657 spin_lock(&ctlr->ms_lock);
658 list_add_tail(&qdata->entry, &ctlr->ms_head);
659 if (!ctlr->ms_queued) {
660 ctlr->ms_queued = 1;
661 ctlr->ms_sdev = sdev;
662 queue_work(kmpath_rdacd, &ctlr->ms_work);
663 }
664 spin_unlock(&ctlr->ms_lock);
665 return SCSI_DH_OK;
Chandra Seetharamanfbd7ab32008-05-01 14:49:52 -0700666}
667
Chandra Seetharaman3ae31f62009-10-21 09:22:46 -0700668static int rdac_activate(struct scsi_device *sdev,
669 activate_complete fn, void *data)
Chandra Seetharamanfbd7ab32008-05-01 14:49:52 -0700670{
671 struct rdac_dh_data *h = get_rdac_data(sdev);
672 int err = SCSI_DH_OK;
673
Hannes Reineckeca9f0082008-07-17 16:53:15 -0700674 err = check_ownership(sdev, h);
675 if (err != SCSI_DH_OK)
Chandra Seetharamanfbd7ab32008-05-01 14:49:52 -0700676 goto done;
Chandra Seetharamanfbd7ab32008-05-01 14:49:52 -0700677
Chandra Seetharaman970f3f42009-10-21 09:22:51 -0700678 if (h->lun_state == RDAC_LUN_UNOWNED) {
679 err = queue_mode_select(sdev, fn, data);
680 if (err == SCSI_DH_OK)
681 return 0;
682 }
Chandra Seetharamanfbd7ab32008-05-01 14:49:52 -0700683done:
Chandra Seetharaman3ae31f62009-10-21 09:22:46 -0700684 if (fn)
685 fn(data, err);
686 return 0;
Chandra Seetharamanfbd7ab32008-05-01 14:49:52 -0700687}
688
689static int rdac_prep_fn(struct scsi_device *sdev, struct request *req)
690{
691 struct rdac_dh_data *h = get_rdac_data(sdev);
692 int ret = BLKPREP_OK;
693
694 if (h->state != RDAC_STATE_ACTIVE) {
695 ret = BLKPREP_KILL;
696 req->cmd_flags |= REQ_QUIET;
697 }
698 return ret;
699
700}
701
702static int rdac_check_sense(struct scsi_device *sdev,
703 struct scsi_sense_hdr *sense_hdr)
704{
705 struct rdac_dh_data *h = get_rdac_data(sdev);
Moger, Babudd784ed2009-09-03 21:42:28 -0600706
707 RDAC_LOG(RDAC_LOG_SENSE, sdev, "array %s, ctlr %d, "
708 "I/O returned with sense %02x/%02x/%02x",
709 (char *) h->ctlr->array_name, h->ctlr->index,
710 sense_hdr->sense_key, sense_hdr->asc, sense_hdr->ascq);
711
Chandra Seetharamanfbd7ab32008-05-01 14:49:52 -0700712 switch (sense_hdr->sense_key) {
713 case NOT_READY:
Chauhan, Vijay8f032262009-04-20 18:14:23 +0530714 if (sense_hdr->asc == 0x04 && sense_hdr->ascq == 0x01)
715 /* LUN Not Ready - Logical Unit Not Ready and is in
716 * the process of becoming ready
717 * Just retry.
718 */
719 return ADD_TO_MLQUEUE;
Chandra Seetharamanfbd7ab32008-05-01 14:49:52 -0700720 if (sense_hdr->asc == 0x04 && sense_hdr->ascq == 0x81)
721 /* LUN Not Ready - Storage firmware incompatible
722 * Manual code synchonisation required.
723 *
724 * Nothing we can do here. Try to bypass the path.
725 */
726 return SUCCESS;
727 if (sense_hdr->asc == 0x04 && sense_hdr->ascq == 0xA1)
728 /* LUN Not Ready - Quiescense in progress
729 *
730 * Just retry and wait.
731 */
Mike Andersonc7dbb622008-08-12 12:11:57 -0700732 return ADD_TO_MLQUEUE;
Chauhan, Vijayaf50bb92009-03-17 18:51:40 +0530733 if (sense_hdr->asc == 0xA1 && sense_hdr->ascq == 0x02)
734 /* LUN Not Ready - Quiescense in progress
735 * or has been achieved
736 * Just retry.
737 */
738 return ADD_TO_MLQUEUE;
Chandra Seetharamanfbd7ab32008-05-01 14:49:52 -0700739 break;
740 case ILLEGAL_REQUEST:
741 if (sense_hdr->asc == 0x94 && sense_hdr->ascq == 0x01) {
742 /* Invalid Request - Current Logical Unit Ownership.
743 * Controller is not the current owner of the LUN,
744 * Fail the path, so that the other path be used.
745 */
746 h->state = RDAC_STATE_PASSIVE;
747 return SUCCESS;
748 }
749 break;
750 case UNIT_ATTENTION:
751 if (sense_hdr->asc == 0x29 && sense_hdr->ascq == 0x00)
752 /*
753 * Power On, Reset, or Bus Device Reset, just retry.
754 */
Mike Andersonc7dbb622008-08-12 12:11:57 -0700755 return ADD_TO_MLQUEUE;
Chauhan, Vijayea41e412009-01-26 21:29:37 +0530756 if (sense_hdr->asc == 0x8b && sense_hdr->ascq == 0x02)
757 /*
758 * Quiescence in progress , just retry.
759 */
760 return ADD_TO_MLQUEUE;
Chandra Seetharamanfbd7ab32008-05-01 14:49:52 -0700761 break;
762 }
763 /* success just means we do not care what scsi-ml does */
764 return SCSI_RETURN_NOT_HANDLED;
765}
766
Adrian Bunkf08c0762008-08-11 11:59:21 -0700767static const struct scsi_dh_devlist rdac_dev_list[] = {
Chandra Seetharamanfbd7ab32008-05-01 14:49:52 -0700768 {"IBM", "1722"},
769 {"IBM", "1724"},
770 {"IBM", "1726"},
771 {"IBM", "1742"},
Moger, Babu6f4fdda2009-11-04 12:36:16 -0700772 {"IBM", "1745"},
773 {"IBM", "1746"},
Chandra Seetharamanfbd7ab32008-05-01 14:49:52 -0700774 {"IBM", "1814"},
775 {"IBM", "1815"},
776 {"IBM", "1818"},
777 {"IBM", "3526"},
778 {"SGI", "TP9400"},
779 {"SGI", "TP9500"},
780 {"SGI", "IS"},
781 {"STK", "OPENstorage D280"},
782 {"SUN", "CSM200_R"},
Charlie Brady5bab0882009-08-26 14:16:57 -0400783 {"SUN", "LCSM100_I"},
784 {"SUN", "LCSM100_S"},
785 {"SUN", "LCSM100_E"},
Chandra Seetharamanfbd7ab32008-05-01 14:49:52 -0700786 {"SUN", "LCSM100_F"},
Yanqing_Liu@Dell.com650849d2008-10-02 12:18:33 -0500787 {"DELL", "MD3000"},
788 {"DELL", "MD3000i"},
Yanqing_Liu@Dell.comcdf69bb2009-08-17 14:31:42 -0500789 {"DELL", "MD32xx"},
790 {"DELL", "MD32xxi"},
Yanqing_Liu@Dell.com2cf75f12010-05-19 12:31:36 -0500791 {"DELL", "MD36xxi"},
Yanqing_Liu@Dell.combc898c92011-03-11 09:47:11 -0600792 {"DELL", "MD36xxf"},
Babu Moger273c4782008-11-10 16:17:48 -0700793 {"LSI", "INF-01-00"},
794 {"ENGENIO", "INF-01-00"},
Chandra Seetharaman4dbfb542009-08-12 12:43:20 -0700795 {"STK", "FLEXLINE 380"},
796 {"SUN", "CSM100_R_FC"},
Chauhan, Vijay15660672010-10-18 14:07:24 +0530797 {"SUN", "STK6580_6780"},
798 {"SUN", "SUN_6180"},
Chandra Seetharamanfbd7ab32008-05-01 14:49:52 -0700799 {NULL, NULL},
800};
801
Hannes Reinecke765cbc62008-07-17 16:52:51 -0700802static int rdac_bus_attach(struct scsi_device *sdev);
803static void rdac_bus_detach(struct scsi_device *sdev);
Chandra Seetharamanfbd7ab32008-05-01 14:49:52 -0700804
805static struct scsi_device_handler rdac_dh = {
806 .name = RDAC_NAME,
807 .module = THIS_MODULE,
Hannes Reinecke765cbc62008-07-17 16:52:51 -0700808 .devlist = rdac_dev_list,
Chandra Seetharamanfbd7ab32008-05-01 14:49:52 -0700809 .prep_fn = rdac_prep_fn,
810 .check_sense = rdac_check_sense,
Hannes Reinecke765cbc62008-07-17 16:52:51 -0700811 .attach = rdac_bus_attach,
812 .detach = rdac_bus_detach,
Chandra Seetharamanfbd7ab32008-05-01 14:49:52 -0700813 .activate = rdac_activate,
814};
815
Hannes Reinecke765cbc62008-07-17 16:52:51 -0700816static int rdac_bus_attach(struct scsi_device *sdev)
Chandra Seetharamanfbd7ab32008-05-01 14:49:52 -0700817{
Chandra Seetharamanfbd7ab32008-05-01 14:49:52 -0700818 struct scsi_dh_data *scsi_dh_data;
819 struct rdac_dh_data *h;
Chandra Seetharamanfbd7ab32008-05-01 14:49:52 -0700820 unsigned long flags;
Hannes Reineckeca9f0082008-07-17 16:53:15 -0700821 int err;
Moger, Babu15276662009-09-03 21:42:21 -0600822 char array_name[ARRAY_LABEL_LEN];
Chandra Seetharamanfbd7ab32008-05-01 14:49:52 -0700823
Hillf Danton9dfeb312011-02-11 15:17:33 -0700824 scsi_dh_data = kzalloc(sizeof(*scsi_dh_data)
Hannes Reinecke765cbc62008-07-17 16:52:51 -0700825 + sizeof(*h) , GFP_KERNEL);
826 if (!scsi_dh_data) {
Hannes Reineckeca9f0082008-07-17 16:53:15 -0700827 sdev_printk(KERN_ERR, sdev, "%s: Attach failed\n",
Hannes Reinecke765cbc62008-07-17 16:52:51 -0700828 RDAC_NAME);
Chandra Seetharaman33af79d2008-07-16 17:35:08 -0700829 return 0;
Chandra Seetharamanfbd7ab32008-05-01 14:49:52 -0700830 }
831
Hannes Reinecke765cbc62008-07-17 16:52:51 -0700832 scsi_dh_data->scsi_dh = &rdac_dh;
833 h = (struct rdac_dh_data *) scsi_dh_data->buf;
834 h->lun = UNINITIALIZED_LUN;
835 h->state = RDAC_STATE_ACTIVE;
Hannes Reineckeca9f0082008-07-17 16:53:15 -0700836
Moger, Babu15276662009-09-03 21:42:21 -0600837 err = get_lun_info(sdev, h, array_name);
Hannes Reineckeca9f0082008-07-17 16:53:15 -0700838 if (err != SCSI_DH_OK)
839 goto failed;
840
Moger, Babu15276662009-09-03 21:42:21 -0600841 err = initialize_controller(sdev, h, array_name);
Hannes Reineckeca9f0082008-07-17 16:53:15 -0700842 if (err != SCSI_DH_OK)
843 goto failed;
844
Moger, Babu87b79a52009-09-03 21:42:15 -0600845 err = check_ownership(sdev, h);
846 if (err != SCSI_DH_OK)
847 goto clean_ctlr;
848
849 err = set_mode_select(sdev, h);
850 if (err != SCSI_DH_OK)
851 goto clean_ctlr;
852
Hannes Reineckeca9f0082008-07-17 16:53:15 -0700853 if (!try_module_get(THIS_MODULE))
Moger, Babu87b79a52009-09-03 21:42:15 -0600854 goto clean_ctlr;
Hannes Reineckeca9f0082008-07-17 16:53:15 -0700855
Hannes Reinecke765cbc62008-07-17 16:52:51 -0700856 spin_lock_irqsave(sdev->request_queue->queue_lock, flags);
857 sdev->scsi_dh_data = scsi_dh_data;
858 spin_unlock_irqrestore(sdev->request_queue->queue_lock, flags);
Hannes Reinecke765cbc62008-07-17 16:52:51 -0700859
Hannes Reineckeca9f0082008-07-17 16:53:15 -0700860 sdev_printk(KERN_NOTICE, sdev,
Moger, Babueebe9b92011-04-08 11:37:40 -0600861 "%s: LUN %d (%s) (%s)\n",
862 RDAC_NAME, h->lun, mode[(int)h->mode],
863 lun_state[(int)h->lun_state]);
Hannes Reinecke765cbc62008-07-17 16:52:51 -0700864
Chandra Seetharamanfbd7ab32008-05-01 14:49:52 -0700865 return 0;
Hannes Reineckeca9f0082008-07-17 16:53:15 -0700866
Moger, Babu87b79a52009-09-03 21:42:15 -0600867clean_ctlr:
868 kref_put(&h->ctlr->kref, release_controller);
869
Hannes Reineckeca9f0082008-07-17 16:53:15 -0700870failed:
871 kfree(scsi_dh_data);
872 sdev_printk(KERN_ERR, sdev, "%s: not attached\n",
873 RDAC_NAME);
874 return -EINVAL;
Chandra Seetharamanfbd7ab32008-05-01 14:49:52 -0700875}
876
Hannes Reinecke765cbc62008-07-17 16:52:51 -0700877static void rdac_bus_detach( struct scsi_device *sdev )
878{
879 struct scsi_dh_data *scsi_dh_data;
880 struct rdac_dh_data *h;
881 unsigned long flags;
882
883 spin_lock_irqsave(sdev->request_queue->queue_lock, flags);
884 scsi_dh_data = sdev->scsi_dh_data;
885 sdev->scsi_dh_data = NULL;
886 spin_unlock_irqrestore(sdev->request_queue->queue_lock, flags);
887
888 h = (struct rdac_dh_data *) scsi_dh_data->buf;
889 if (h->ctlr)
890 kref_put(&h->ctlr->kref, release_controller);
891 kfree(scsi_dh_data);
892 module_put(THIS_MODULE);
Hannes Reineckeca9f0082008-07-17 16:53:15 -0700893 sdev_printk(KERN_NOTICE, sdev, "%s: Detached\n", RDAC_NAME);
Hannes Reinecke765cbc62008-07-17 16:52:51 -0700894}
895
896
897
Chandra Seetharamanfbd7ab32008-05-01 14:49:52 -0700898static int __init rdac_init(void)
899{
900 int r;
901
902 r = scsi_register_device_handler(&rdac_dh);
Chandra Seetharaman970f3f42009-10-21 09:22:51 -0700903 if (r != 0) {
Chandra Seetharamanfbd7ab32008-05-01 14:49:52 -0700904 printk(KERN_ERR "Failed to register scsi device handler.");
Chandra Seetharaman970f3f42009-10-21 09:22:51 -0700905 goto done;
906 }
907
908 /*
909 * Create workqueue to handle mode selects for rdac
910 */
911 kmpath_rdacd = create_singlethread_workqueue("kmpath_rdacd");
912 if (!kmpath_rdacd) {
913 scsi_unregister_device_handler(&rdac_dh);
914 printk(KERN_ERR "kmpath_rdacd creation failed.\n");
915 }
916done:
Chandra Seetharamanfbd7ab32008-05-01 14:49:52 -0700917 return r;
918}
919
920static void __exit rdac_exit(void)
921{
Chandra Seetharaman970f3f42009-10-21 09:22:51 -0700922 destroy_workqueue(kmpath_rdacd);
Chandra Seetharamanfbd7ab32008-05-01 14:49:52 -0700923 scsi_unregister_device_handler(&rdac_dh);
924}
925
926module_init(rdac_init);
927module_exit(rdac_exit);
928
929MODULE_DESCRIPTION("Multipath LSI/Engenio RDAC driver");
930MODULE_AUTHOR("Mike Christie, Chandra Seetharaman");
Moger, Babua0b990c2011-02-11 16:12:44 -0700931MODULE_VERSION("01.00.0000.0000");
Chandra Seetharamanfbd7ab32008-05-01 14:49:52 -0700932MODULE_LICENSE("GPL");