diff options
author | James Smart <James.Smart@Emulex.Com> | 2007-06-17 20:56:39 -0400 |
---|---|---|
committer | James Bottomley <jejb@mulgrave.il.steeleye.com> | 2007-06-17 23:38:11 -0400 |
commit | 858c9f6c19c6f9bf86cbbc64ce0d17c61d6131b8 (patch) | |
tree | 9591b15b4424066023e375ad0aa33fdd37e1c452 /drivers/scsi/lpfc/lpfc_debugfs.h | |
parent | 92d7f7b0cde3ad2260e7462b40867b57efd49851 (diff) |
[SCSI] lpfc: bug fixes
Following the NPIV support, the following changes have been accumulated
in the testing and qualification of the driver:
- Fix affinity of ELS ring to slow/deferred event processing
- Fix Ring attention masks
- Defer dev_loss_tmo timeout handling to worker thread
- Consolidate link down error classification for better error checking
- Remove unused/deprecated nlp_initiator_tmr timer
- Fix for async scan - move adapter init code back into pci_probe_one
context. Fix async scan interfaces.
- Expand validation of ability to create vports
- Extract VPI resource cnt from firmware
- Tuning of Login/Reject policies to better deal with overwhelmned targets
- Misc ELS and discovery fixes
- Export the npiv_enable attribute to sysfs
- Mailbox handling fix
- Add debugfs support
- A few other small misc fixes:
- wrong return values, double-frees, bad locking
- Added adapter failure heartbeat
Signed-off-by: James Smart <James.Smart@emulex.com>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'drivers/scsi/lpfc/lpfc_debugfs.h')
-rw-r--r-- | drivers/scsi/lpfc/lpfc_debugfs.h | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/drivers/scsi/lpfc/lpfc_debugfs.h b/drivers/scsi/lpfc/lpfc_debugfs.h new file mode 100644 index 000000000000..fffb678426a4 --- /dev/null +++ b/drivers/scsi/lpfc/lpfc_debugfs.h | |||
@@ -0,0 +1,50 @@ | |||
1 | /******************************************************************* | ||
2 | * This file is part of the Emulex Linux Device Driver for * | ||
3 | * Fibre Channel Host Bus Adapters. * | ||
4 | * Copyright (C) 2007 Emulex. All rights reserved. * | ||
5 | * EMULEX and SLI are trademarks of Emulex. * | ||
6 | * www.emulex.com * | ||
7 | * * | ||
8 | * This program is free software; you can redistribute it and/or * | ||
9 | * modify it under the terms of version 2 of the GNU General * | ||
10 | * Public License as published by the Free Software Foundation. * | ||
11 | * This program is distributed in the hope that it will be useful. * | ||
12 | * ALL EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND * | ||
13 | * WARRANTIES, INCLUDING ANY IMPLIED WARRANTY OF MERCHANTABILITY, * | ||
14 | * FITNESS FOR A PARTICULAR PURPOSE, OR NON-INFRINGEMENT, ARE * | ||
15 | * DISCLAIMED, EXCEPT TO THE EXTENT THAT SUCH DISCLAIMERS ARE HELD * | ||
16 | * TO BE LEGALLY INVALID. See the GNU General Public License for * | ||
17 | * more details, a copy of which can be found in the file COPYING * | ||
18 | * included with this package. * | ||
19 | *******************************************************************/ | ||
20 | |||
21 | #ifndef _H_LPFC_DEBUG_FS | ||
22 | #define _H_LPFC_DEBUG_FS | ||
23 | |||
24 | #ifdef CONFIG_LPFC_DEBUG_FS | ||
25 | struct lpfc_disc_trc { | ||
26 | char *fmt; | ||
27 | uint32_t data1; | ||
28 | uint32_t data2; | ||
29 | uint32_t data3; | ||
30 | uint32_t seq_cnt; | ||
31 | unsigned long jif; | ||
32 | }; | ||
33 | #endif | ||
34 | |||
35 | /* Mask for discovery_trace */ | ||
36 | #define LPFC_DISC_TRC_ELS_CMD 0x1 /* Trace ELS commands */ | ||
37 | #define LPFC_DISC_TRC_ELS_RSP 0x2 /* Trace ELS response */ | ||
38 | #define LPFC_DISC_TRC_ELS_UNSOL 0x4 /* Trace ELS rcv'ed */ | ||
39 | #define LPFC_DISC_TRC_ELS_ALL 0x7 /* Trace ELS */ | ||
40 | #define LPFC_DISC_TRC_MBOX_VPORT 0x8 /* Trace vport MBOXs */ | ||
41 | #define LPFC_DISC_TRC_MBOX 0x10 /* Trace other MBOXs */ | ||
42 | #define LPFC_DISC_TRC_MBOX_ALL 0x18 /* Trace all MBOXs */ | ||
43 | #define LPFC_DISC_TRC_CT 0x20 /* Trace disc CT requests */ | ||
44 | #define LPFC_DISC_TRC_DSM 0x40 /* Trace DSM events */ | ||
45 | #define LPFC_DISC_TRC_RPORT 0x80 /* Trace rport events */ | ||
46 | #define LPFC_DISC_TRC_NODE 0x100 /* Trace ndlp state changes */ | ||
47 | |||
48 | #define LPFC_DISC_TRC_DISCOVERY 0xef /* common mask for general | ||
49 | * discovery */ | ||
50 | #endif /* H_LPFC_DEBUG_FS */ | ||