aboutsummaryrefslogtreecommitdiff
path: root/drivers/scsi
AgeCommit message (Collapse)AuthorFilesLines
2010-03-07[SCSI] bfa: PCI VPD, FIP and include file changes.Krishna Gudipati9-59/+178
Changed PCI VPD to incorporate specific OEM vendors. Added FCoE specific interrupt latency and delay params. Added some variables needed by FIP 2.0. Added some new logging and tracing definitions. Added reserved members to make the structures (IOC, IOCFC) 64bit aligned. Changed the module identifiers, as some files were moved. Signed-off-by: Krishna Gudipati <[email protected]> Signed-off-by: James Bottomley <[email protected]>
2010-03-07[SCSI] bfa: Fix to copy fpma MAC when requested by user space application.Krishna Gudipati4-4/+20
Copy fpma MAC when requested by user space application. Added FPMA mac address to the lport attributes structure. Signed-off-by: Krishna Gudipati <[email protected]> Signed-off-by: James Bottomley <[email protected]>
2010-03-07[SCSI] bfa: RPORT state machine: direct attach mode fix.Krishna Gudipati1-4/+11
Make sure that in direct attach mode, we do not query the name server after a target is marked offline. Signed-off-by: Krishna Gudipati <[email protected]> Signed-off-by: James Bottomley <[email protected]>
2010-03-07[SCSI] bfa: Replace bfa_assert() with bfa_sm_fault()Krishna Gudipati14-146/+146
Replace bfa_assert() with bfa_sm_fault() to get unhandled events for debugging. Signed-off-by: Krishna Gudipati <[email protected]> Signed-off-by: James Bottomley <[email protected]>
2010-03-07[SCSI] bfa: Clear LL_HALT and PSS_ERR bit when IOC crashes.Krishna Gudipati6-4/+70
Clear LL_HALT and PSS_ERR bit in the interrupt status register on an IOC crash. Signed-off-by: Krishna Gudipati <[email protected]> Signed-off-by: James Bottomley <[email protected]>
2010-03-07[SCSI] bfa: IOC changes: Support faster recovery and split bfa_ioc.c into ↵Krishna Gudipati12-459/+859
ASIC specific code. Add support for faster IOC recovery after failure. Split bfa_ioc.c into three files: bfa_ioc.c: Common code shared between crossbow and catapult ASIC's. bfa_ioc_cb.c: Code specific to the crossbow, reg mapping and interrupt related routines. bfa_ioc_ct.c: Code specific to the catapult, reg mapping and interrupt related routines. Fix to make sure IOC reinitialize's properly on enable request - update the ioc_fwstate reg with BFI_IOC_FAIL on ioc disable mbox cmd timeout. Makefile changes to support the 2 newly added files bfa_ioc_cb.c and bfa_ioc_ct.c. Signed-off-by: Krishna Gudipati <[email protected]> Signed-off-by: James Bottomley <[email protected]>
2010-03-04[SCSI] bfa: Resume BFA operations after firmware mismatch is resolved.Krishna Gudipati7-59/+192
bfad.c & bfad_drv.h: * Created a kernel thread from pci_probe that does the bfad start operations after BFA init done on a firmware mismatch. * The kernel thread on a fw mismatch waits for an event from IOC call back and is woken up from bfa_cb_init() on BFA init success. * In normal cases of no firmware mismatch this thread is terminated in pci_probe. bfa_fcs_lport.c, fabric.c, fcs_lport.h & vport.c: * Split the lport init to attach time and init time code, so that proper config attributes are set after firmware mismatch. bfa_iocfc.c: * Handle an IOC timer issue, where the IOC timer would expire before the init completion and send Init fail event to the driver, however IOC init continues and completes successfully at the later stage. The bfa and driver were not handling this kind of deferred init completion. Signed-off-by: Krishna Gudipati <[email protected]> Signed-off-by: James Bottomley <[email protected]>
2010-03-04[SCSI] bfa: Fix to allow creation of only 190 vports on CNA.Krishna Gudipati6-26/+24
Brocade CNA currently supports only 190 vports (instead of 191), since there are only 192 unicast cam entries reserved for FCoE. Brocade CNA has a total of 256 unicast cam entries (192 FCoE + 64 LL) 192 cam entries = 1 burned in mac + 1 baseport FPMA mac + 190 vport FPMA macs. Made changes to the code to support only 190 vports. Signed-off-by: Krishna Gudipati <[email protected]> Signed-off-by: James Bottomley <[email protected]>
2010-03-04[SCSI] bfa: New interface to handle firmware upgrade scenarioKrishna Gudipati15-110/+47
Split bfa_fcs_init() into bfa_fcs_attach() and bfa_fcs_init(). Removed empty function definitions in FCS modules Modified driver to call bfa_fcs_attach() and bfa_fcs_init() as needed. Signed-off-by: Krishna Gudipati <[email protected]> Signed-off-by: James Bottomley <[email protected]>
2010-03-04[SCSI] bfa: Changes to support FDMI Driver ParameterKrishna Gudipati4-1/+43
Added a FCS function to be called during driver init, to set the FDMI Driver parameter. fdmi.c: Created a disabled state when fdmi is disabled. bfad.c: * Added fdmi_enable driver parameter. * Added support to call bfa_fcs_set_fdmi_param() to initialize fcs fdmi setting. Signed-off-by: Krishna Gudipati <[email protected]> Signed-off-by: James Bottomley <[email protected]>
2010-03-04[SCSI] bfa: Enable new halt interrupt in BFA.Krishna Gudipati2-3/+5
bfa_intr.c: Enable new halt interrupt in BFA. bfi_ctreg.h: Expose new halt interrupt bit definition to host. Signed-off-by: Krishna Gudipati <[email protected]> Signed-off-by: James Bottomley <[email protected]>
2010-03-04[SCSI] bfa: Enable IOC auto-recovery and IOC type fix.Krishna Gudipati2-5/+6
bfa_ioc.c: - Enable IOC auto-recovery by default. - When CNA is in FC mode, return IOC type as FC (not FCoE) bfa_iocfc.c: - Set fcmode before pci initialization/setup. Signed-off-by: Krishna Gudipati <[email protected]> Signed-off-by: James Bottomley <[email protected]>
2010-03-04[SCSI] bfa: Defined a new LPS event to clear virtual link on a vportKrishna Gudipati5-3/+97
Clear virtual links was not propagated upwards to bfa from fw. This resulted in HBA and switch being in an inconsistent state. So defined a new LPS event for clear virtual link on a vport, and also now clear virtual link on a baseport, is sent as a link down event from the fw. Signed-off-by: Krishna Gudipati <[email protected]> Signed-off-by: James Bottomley <[email protected]>
2010-03-04[SCSI] bfa: Added separate MSI-X module parameters.Krishna Gudipati2-3/+11
Added separate MSI-X module parameters to selectively enable / disable MSI-X interrupts for both Brocade HBA and CNA's. Signed-off-by: Krishna Gudipati <[email protected]> Signed-off-by: James Bottomley <[email protected]>
2010-03-03[SCSI] raid_attrs: fix dependency problemsJames Bottomley2-0/+8
RAID attributes uses scsi_is_sdev_device() to gate some SCSI specific checking code. This causes two problems. Firstly if SCSI == n just defining scsi_is_sdev_device() to return false might not be enough to prevent gcc from emitting the code (and thus referring to undefined symbols), so this needs surrounding with an ifdef. Secondly, using scsi_is_sdev_device() when SCSI is either y or m gives a subtle problem in the m case: raid_attrs must also be m to use the symbol. Do the usual Kconfig jiggery-pokery to fix this. Reported-by: Randy Dunlap <[email protected]> Signed-off-by: James Bottomley <[email protected]>
2010-03-03[SCSI] libosd: Fix unchecked err return found by smatchBoaz Harrosh1-0/+4
Doing CHECK="smatch --two-passes gives: drivers/scsi/osd/osd_initiator.c +1435 osd_finalize_request warning: assignment to 'ret' was never used Which is an unchecked possible allocation failure, Fixed. Reported-by: Dan Carpenter <[email protected]> Signed-off-by: Boaz Harrosh <[email protected]> Signed-off-by: James Bottomley <[email protected]>
2010-03-03[SCSI] sd: Fix VPD buffer allocationsMartin K. Petersen1-2/+2
Commit e3deec09 incorrectly assumed that the B0 and B1 page lengths were limited to 32 bytes. The B0 VPD page length is defined to be 64 bytes when the device supports thin provisioning. B1 is always defined to be 64 bytes. Signed-off-by: Martin K. Petersen <[email protected]> Reported-by: Dan Carpenter <[email protected]> Signed-off-by: James Bottomley <[email protected]>
2010-03-03[SCSI] lpfc 8.3.10: Update Driver version to 8.3.10James Smart1-1/+1
Signed-off-by: James Smart <[email protected]> Signed-off-by: James Bottomley <[email protected]>
2010-03-03[SCSI] lpfc 8.3.10: Added round robin FCF failoverJames Smart8-162/+802
- Added round robin FCF failover on initial or FCF rediscovery FLOGI failure. Signed-off-by: James Smart <[email protected]> Signed-off-by: James Bottomley <[email protected]>
2010-03-03[SCSI] lpfc 8.3.10: Fix Discovery issuesJames Smart6-51/+186
- Prevent Vport discovery after reg_new_vport completes when physical logged in using FDISC. - Remove fast FCF failover fabric name matching. Allow failover to FCFs connected to different fabrics. - Added fast FCF failover in response to FCF DEAD event on current FCF record. Signed-off-by: James Smart <[email protected]> Signed-off-by: James Bottomley <[email protected]>
2010-03-03[SCSI] lpfc 8.3.10: Added management for LP21000 through BSG.James Smart4-0/+358
Signed-off-by: James Smart <[email protected]> Signed-off-by: James Bottomley <[email protected]>
2010-03-03[SCSI] lpfc 8.3.10: Update SLI interface areasJames Smart8-63/+141
- Clear LPFC_DRIVER_ABORTED on FCP command completion. - Clear exchange busy flag when I/O is aborted and found on aborted list. - Free sglq when XRI_ABORTED event is processed before release of IOCB. - Only process iocb as aborted when LPFC_DRIVER_ABORTED is set. Signed-off-by: James Smart <[email protected]> Signed-off-by: James Bottomley <[email protected]>
2010-03-03[SCSI] lpfc 8.3.10: Fix user interface issuesJames Smart6-11/+49
- Add Logging message for critial errors. - Remove unused variable from lpfc_nodev_tmo_show - Update supress_link_up parameter with #define values. Signed-off-by: James Smart <[email protected]> Signed-off-by: James Bottomley <[email protected]>
2010-03-03[SCSI] lpfc 8.3.10: Fix Initialization issuesJames Smart4-18/+48
- Add NULL checks to the pointers for the config_async mailbox and dump_wakeup_params mailbox. - Add code to check return value of lpfc_read_sparams everywhere and handle failures appropriately. Signed-off-by: James Smart <[email protected]> Signed-off-by: James Bottomley <[email protected]>
2010-03-03[SCSI] hpsa: remove unused members next, prev, and retry_count from command ↵Stephen M. Cameron1-5/+2
list structure. Signed-off-by: Stephen M. Cameron <[email protected]> Signed-off-by: James Bottomley <[email protected]>
2010-03-03[SCSI] hpsa: Increase the number of scatter gather elements supported.Stephen M. Cameron3-14/+131
This uses the scatter-gather chaining feature of Smart Array controllers. 32 scatter-gather elements are embedded in the "command list", and the last element in the list may be marked as a "chain pointer", and point to an additional block of scatter gather elements. The precise number of scatter gather elements supported is dependent on the particular kind of Smart Array, and is determined at runtime by querying the hardware. Signed-off-by: Stephen M. Cameron <[email protected]> Signed-off-by: James Bottomley <[email protected]>
2010-03-03[SCSI] hpsa: Clarify calculation of padding for commandlist structureStephen M. Cameron1-4/+10
Signed-off-by: Stephen M. Cameron <[email protected]> Signed-off-by: James Bottomley <[email protected]>
2010-03-03[SCSI] hpsa: mark hpsa_pci_init as __devinitStephen M. Cameron1-1/+1
Signed-off-by: Stephen M. Cameron <[email protected]> Signed-off-by: James Bottomley <[email protected]>
2010-03-03[SCSI] hpsa: remove scan threadMike Miller2-166/+4
The intent of the scan thread was to allow a UNIT ATTENTION/LUN DATA CHANGED condition encountered in the interrupt handler to trigger a rescan of devices, which can't be done in interrupt context. However, we weren't able to get this to work, due to multiple such UNIT ATTENTION conditions arriving during the rescan, during updating of the SCSI mid layer, etc. There's no way to tell the devices, "stand still while I scan you!" Since it doesn't work, there's no point in having the thread, as the rescan triggered via ioctl or sysfs can be done without such a thread. Signed-off-by: Mike Miller <[email protected]> Signed-off-by: Stephen M. Cameron <[email protected]> Signed-off-by: James Bottomley <[email protected]>
2010-03-03[SCSI] hpsa: return -ENOMEM, not -1Stephen M. Cameron1-1/+1
Signed-off-by: Stephen M. Cameron <[email protected]> Signed-off-by: James Bottomley <[email protected]>
2010-03-03[SCSI] hpsa: fix scsi status mis-shiftStephen M. Cameron1-1/+1
The SCSI status does not need to be shifted. Signed-off-by: Stephen M. Cameron <[email protected]> Signed-off-by: James Bottomley <[email protected]>
2010-03-03[SCSI] hpsa: fix firmwart typoStephen M. Cameron1-1/+1
Signed-off-by: Stephen M. Cameron <[email protected]> Signed-off-by: James Bottomley <[email protected]>
2010-03-03[SCSI] hpsa: allow modifying device queue depth.Stephen M. Cameron1-0/+21
Signed-off-by: Stephen M. Cameron <[email protected]> Signed-off-by: James Bottomley <[email protected]>
2010-03-03[SCSI] ibmvfc: Add suspend/resume supportBrian King1-0/+27
Adds support for resuming from suspend for IBM VFC devices. We may have lost an interrupt over the suspend, so we just kick the interrupt handler to process anything that is outstanding. We expect to find a transport event indicating we need to reestablish our CRQ. Signed-off-by: Brian King <[email protected]> Signed-off-by: James Bottomley <[email protected]>
2010-03-03[SCSI] ibmvscsi: Add suspend/resume supportBrian King4-0/+39
Adds support for resuming from suspend for IBM VSCSI devices. We may have lost an interrupt over the suspend, so we just kick the interrupt handler to process anything that is outstanding. We expect to find a transport event indicating we need to reestablish our CRQ. Signed-off-by: Brian King <[email protected]> Signed-off-by: James Bottomley <[email protected]>
2010-03-03[SCSI] be2iscsi: Alloc only one EQ if intr modeJayamohan Kallickal1-5/+9
This patch ensures that we alloc only one EQ if we are if we are not in msix mode Signed-off-by: Jayamohan Kallickal <[email protected]> Signed-off-by: James Bottomley <[email protected]>
2010-03-03[SCSI] be2iscsi: Fixing memory allocation for connectionJayamohan Kallickal2-5/+3
This patch fixes some situations where enough resources were not avaialable when targets exceeded a certain limit Signed-off-by: Jayamohan Kallickal <[email protected]> Signed-off-by: James Bottomley <[email protected]>
2010-03-03[SCSI] be2iscsi: Remove debug codeJayamohan Kallickal2-3/+2
This patch removes some debug lines which are unnecessary and also aligns some lines in code Signed-off-by: Jayamohan Kallickal <[email protected]> Signed-off-by: James Bottomley <[email protected]>
2010-03-03[SCSI] be2iscsi: cleans up abort handlingJayamohan Kallickal1-51/+11
This patch cleans up abort handling when TMF is sent Signed-off-by: Jayamohan Kallickal <[email protected]> Signed-off-by: James Bottomley <[email protected]>
2010-03-03[SCSI] be2iscsi: Fix for a possible udelay while holding lockJayamohan Kallickal1-7/+0
This patch fixes a situation where we could call udelay while holding spin_lock Signed-off-by: Jayamohan Kallickal <[email protected]> Signed-off-by: James Bottomley <[email protected]>
2010-03-03[SCSI] be2iscsi: Cleanup of resets for device and targetJayamohan Kallickal4-18/+145
This patch cleans up device and target reset handling for the driver Signed-off-by: Mike Christie <[email protected]> Signed-off-by: Jayamohan Kallickal <[email protected]> Signed-off-by: James Bottomley <[email protected]>
2010-03-03[SCSI] libiscsi: Make iscsi_eh_target_reset start with session resetJayamohan Kallickal5-8/+23
The iscsi_eh_target_reset has been modified to attempt target reset only. If it fails, then iscsi_eh_session_reset will be called. Signed-off-by: Mike Christie <[email protected]> Signed-off-by: Jayamohan Kallickal <[email protected]> Signed-off-by: James Bottomley <[email protected]>
2010-03-03[SCSI] ipr: adds PCI ID definitions for new adaptersWayne Boyer2-12/+35
This patch adds the PCI ID definitions for new adapters based on the next generation 64 bit IOA PCI interface chip. New entries have been added to the ipr_pci_table[] array for the adapters and to the ipr_chip[] array for the new versions of the chip. Older entries have been removed for cards that did not ship. Signed-off-by: Wayne Boyer <[email protected]> Signed-off-by: James Bottomley <[email protected]>
2010-03-03[SCSI] ipr: add support for new IOASCsWayne Boyer1-0/+32
This patch adds support for new errors that can be received from adapters using the next generation 64 bit IOA PCI interface chip. Signed-off-by: Wayne Boyer <[email protected]> Signed-off-by: James Bottomley <[email protected]>
2010-03-03[SCSI] ipr: add support for multiple stages of initializationWayne Boyer2-30/+180
This patch adds support for using the new IOA initialization feedback register. It also enables 64 bit support in the ipr_ioafp_identify_hrrq and ipr_mask_and_clear_interrupts routines. Signed-off-by: Wayne Boyer <[email protected]> Signed-off-by: James Bottomley <[email protected]>
2010-03-03[SCSI] ipr: implement shutdown changes and remove obsolete write cache parameterWayne Boyer2-152/+66
This patch adds a reboot notifier that will issue a shutdown prepare command to all adapters. This helps to prevent a problem where the primary adapter can get shut down before the secondary adapter and cause the secondary adapter to fail over and log and error. This patch also removes the "enable_cache" paramater as it is obsolete. Write cache for an adapter is now controlled from the iprconfig utility. Signed-off-by: Wayne Boyer <[email protected]> Signed-off-by: James Bottomley <[email protected]>
2010-03-03[SCSI] ipr: add hardware assisted smart dump functionalityWayne Boyer2-22/+75
This patch adds the hardware assisted smart dump functionality for the next generation IOA PCI interface chip. Signea-off-by: Wayne Boyer <[email protected]> Signed-off-by: James Bottomley <[email protected]>
2010-03-03[SCSI] ipr: add error handling updates for the next generation chipWayne Boyer2-29/+388
Add support for the new log data notification and overlay IDs. Signed-off-by: Wayne Boyer <[email protected]> Signed-off-by: James Bottomley <[email protected]>
2010-03-03[SCSI] ipr: update the configuration table code for the next generation chipWayne Boyer2-148/+538
This patch changes the configuration table structures and related code such that both 32 bit and 64 bit based adapters can work with the driver. This patch also implements the code to generate the virtual bus/id/lun values for devices connected to the new adapters. It also implements support for the new device resource path. Signed-off-by: Wayne Boyer <[email protected]> Signed-off-by: James Bottomley <[email protected]>
2010-03-03[SCSI] ipr: define new offsets to registers for the next generation chipWayne Boyer1-0/+15
This patch adds the entry to the ipr_chip_cfg array that defines the register offsets for the next generation 64 bit IOA PCI interface chip. Signed-off-by: Wayne Boyer <[email protected]> Signed-off-by: James Bottomley <[email protected]>