aboutsummaryrefslogtreecommitdiff
path: root/drivers/scsi
AgeCommit message (Collapse)AuthorFilesLines
2012-09-24[SCSI] isci: Allow SSP tasks into the task management path.Jeff Skirvin1-4/+6
This commit fixes a driver bug for SSP tasks that require task management in the target after they complete in the SCU hardware. The problem was manifested in the function "isci_task_abort_task", which tests to see if the sas_task.lldd_task is non-NULL before allowing task management; this bug would always NULL lldd_task in the SCU I/O completion path even if target management was required, which would prevent task / target manangement from happening. Note that in the case of SATA/STP targets, error recovery is provided by the libata error handler which is why SATA/STP device recovery worked correctly even though SSP handling did not. Signed-off-by: Jeff Skirvin <[email protected]> Signed-off-by: James Bottomley <[email protected]>
2012-09-24[SCSI] scsi_dh_rdac : minor return fix for rdacMoger, Babu1-1/+1
Signed-off-by: Babu Moger <[email protected]> Signed-off-by: James Bottomley <[email protected]>
2012-09-24[SCSI] scsi_dh_rdac : Consolidate rdac strings togetherMoger, Babu1-15/+4
This patch consolidates the strings together. Purpose is to remove minor product strings extensions. That way the future products with similar strings should not require change here. Signed-off-by: Babu Moger <[email protected]> Signed-off-by: James Bottomley <[email protected]>
2012-09-24[SCSI] scsi_dh_rdac: Add a new netapp vendor/product stringMoger, Babu1-5/+6
This patch adds a new vendor/product strings for netapp E series product. Also consolidated the strings together with similar names. Signed-off-by: Babu Moger <[email protected]> Signed-off-by: James Bottomley <[email protected]>
2012-09-24[SCSI] Fix incorrect memset in bnx2fc_parse_fcp_rspAndi Kleen1-1/+1
gcc 4.8 warns because the memset only clears sizeof(char *) bytes, not the whole buffer. Use the correct buffer size and clear the whole sense buffer. /backup/lsrc/git/linux-lto-2.6/drivers/scsi/bnx2fc/bnx2fc_io.c: In function 'bnx2fc_parse_fcp_rsp': /backup/lsrc/git/linux-lto-2.6/drivers/scsi/bnx2fc/bnx2fc_io.c:1810:41: warning: argument to 'sizeof' in 'memset' call is the same expression as the destination; did you mean to provide an explicit length? [-Wsizeof-pointer-memaccess] memset(sc_cmd->sense_buffer, 0, sizeof(sc_cmd->sense_buffer)); ^ Signed-off-by: Andi Kleen <[email protected]> Acked-by: Bhanu Prakash Gollapudi <[email protected]> Signed-off-by: James Bottomley <[email protected]>
2012-09-24[SCSI] mpt2sas: Add a module parameter that permits overriding protection ↵Martin K. Petersen1-2/+13
capabilities Add a parameter that allows the host protection capabilities mask to be provided at module load time. Signed-off-by: Martin K. Petersen <[email protected]> Acked-by: "Sreekanth Reddy" <[email protected]> Signed-off-by: James Bottomley <[email protected]>
2012-09-24[SCSI] mpt2sas: Return the correct sense key for DIF errorsMartin K. Petersen1-12/+2
Only a target device should return ABORTED COMMAND when a PI error is discovered. The HBA should always set the sense key to ILLEGAL REQUEST. Signed-off-by: Martin K. Petersen <[email protected]> Acked-by: "Sreekanth Reddy" <[email protected]> Signed-off-by: James Bottomley <[email protected]>
2012-09-24[SCSI] Disable DIF on Hitachi Ultrastar 15K300Martin K. Petersen2-0/+4
Hitachi Ultrastar 15K300 is quirky. Disable T10 PI (DIF). Signed-off-by: Martin K. Petersen <[email protected]> Signed-off-by: James Bottomley <[email protected]>
2012-09-24[SCSI] sd: Allow protection_type to be overriddenMartin K. Petersen1-1/+24
We have encountered a few devices that misbehaved when operating in T10 PI mode. Allow T10 PI protection type to be overridden from userland. Signed-off-by: Martin K. Petersen <[email protected]> Signed-off-by: James Bottomley <[email protected]>
2012-09-24[SCSI] sd: Avoid remapping bad reference tagsMartin K. Petersen3-23/+9
It does not make sense to translate ref tags with unexpected values. Instead we simply ignore them and let the upper layers catch the problem. Ref tags that contain the expected value are still remapped. Signed-off-by: Martin K. Petersen <[email protected]> Signed-off-by: James Bottomley <[email protected]>
2012-09-24[SCSI] mpt2sas: fix double mutex lock in NON_BLOCKING stateAlexey Khoroshilov1-3/+5
If state is NON_BLOCKING and mutex_trylock is succeed, the control flow goes to mutex_lock_interruptible() that is a deadlock. [jejb: fixed coding style problems] Signed-off-by: Alexey Khoroshilov <[email protected]> Acked-by: "Sreekanth Reddy" <[email protected]> Signed-off-by: James Bottomley <[email protected]>
2012-09-24[SCSI] ibmvfc: Driver version 1.0.10Brian King1-2/+2
Bump driver version. Signed-off-by: Brian King <[email protected]> Signed-off-by: James Bottomley <[email protected]>
2012-09-24[SCSI] ibmvfc: Ignore fabric RSCNs when link is deadBrian King1-2/+4
This fixes an issues seen where a Fabric RSCN event was received while the link was down, which resulted in repeated attempts to log back into the fabric, which then failed, resulting in the ibmvfc driver taking the host offline. Fix this by delaying taking any action regarding the fabric RSCN until the link comes back up. Signed-off-by: Brian King <[email protected]> Signed-off-by: James Bottomley <[email protected]>
2012-09-24[SCSI] ibmvfc: Fix double completion on abort timeoutBrian King1-1/+29
If an abort request times out to the virtual fibre channel adapter, the ibmvfc driver will kick off a reset of the adapter. This patch ensures we wait for the both the abort request and the request being aborted to be completed prior to exiting the eh_abort handler. This fixes a bug where the ibmvfc driver was erroneously returning success to the eh_abort handler then later sending back a response to the same command. Signed-off-by: Brian King <[email protected]> Signed-off-by: James Bottomley <[email protected]>
2012-09-24[SCSI] megaraid_sas: combine kmalloc+memset into kzallocFengguang Wu1-5/+2
Use kzalloc rather than kmalloc followed by memset with 0. Generated by: scripts/coccinelle/api/alloc/kzalloc-simple.cocci Signed-off-by: Fengguang Wu <[email protected]> Acked-by: Adam Radford <[email protected]> Signed-off-by: James Bottomley <[email protected]>
2012-09-24[SCSI] ipr: trivial: fix small coding style issuesKleber Sacilotto de Souza1-33/+33
Signed-off-by: Kleber Sacilotto de Souza <[email protected]> Acked-by: Brian King <[email protected]> Signed-off-by: James Bottomley <[email protected]>
2012-09-24[SCSI] bfa: Update the driver version to v3.1.2.0.Krishna Gudipati1-1/+1
Signed-off-by: Krishna Gudipati <[email protected]> Signed-off-by: James Bottomley <[email protected]>
2012-09-24[SCSI] bfa: Add support for max target ports discoveryKrishna Gudipati9-178/+497
- Changes to avoid discovering NPIV port as remote port by the other NPIV ports created on same physical port when all the NPIV ports are part of the same zone in a fabric. - Provided mechanism to support maximum number of target ports for a given initiator port (physical port + NPIV ports) irrespective of the way in which the initiator and target ports are zoned in the fabric. - Introduced module_parameter max_rport_logins to restrict number of remote ports discovery which includes target and initiator remote ports. Signed-off-by: Vijaya Mohan Guvva <[email protected]> Signed-off-by: Krishna Gudipati <[email protected]> Signed-off-by: James Bottomley <[email protected]>
2012-09-24[SCSI] bfa: Add support to register node symbolic name with name serverKrishna Gudipati7-2/+454
- Changes to register node symbolic name with name server on the fabric by sending CT commands RNN_ID and RSNN_NN. Signed-off-by: Vijaya Mohan Guvva <[email protected]> Signed-off-by: Krishna Gudipati <[email protected]> Signed-off-by: James Bottomley <[email protected]>
2012-09-24[SCSI] bfa: Fix to process mbox interrupts only if interrupts are enabled in ↵Krishna Gudipati2-1/+9
INTx mode. - Made changes to process mbox and error interrupts only if interrupts are enabled, when running in INTx mode. Signed-off-by: Krishna Gudipati <[email protected]> Signed-off-by: James Bottomley <[email protected]>
2012-09-24[SCSI] bfa: Add PowerPC support and enable PCIE AER handling.Krishna Gudipati11-22/+434
- Added few missing endian swap changes to support BFA on PowerPC. - Added PCIE AER support to BFA: a) Implemented the PCI error handler entry points. b) Made changes to FCS state machine to handle STOP event from the PCI error detected entry point. c) Made changes to the IO Controller state machine to handle SUSPEND event from the PCI error detected entry point. d) Made changes to restart the BFA operations on a slot_reset completion. Signed-off-by: Krishna Gudipati <[email protected]> Signed-off-by: James Bottomley <[email protected]>
2012-09-24[SCSI] bfa: Add new hardware model info to sysfs model description routine.Krishna Gudipati1-0/+7
- Added new hardware model Brocade-1867 information to sysfs model description routine. Signed-off-by: Krishna Gudipati <[email protected]> Signed-off-by: James Bottomley <[email protected]>
2012-09-24[SCSI] bfa: Make changes to FCXP resource management.Krishna Gudipati9-93/+156
- Made changes to split FCXP resources as request and response resources. - The split will reduce the contention for FCXP resources in an open zone config. Signed-off-by: Krishna Gudipati <[email protected]> Signed-off-by: James Bottomley <[email protected]>
2012-09-24[SCSI] bfa: FCS remote port enhancements.Krishna Gudipati7-14/+83
- Introduced rport qualifier structure and modified design to export remote ports with valid pid or valid pwwn to the user space. - Introduced old_pid field in the rport structure and made changes to prevent re-creating a new remote port for an already existing rport that is transitioning to a delete state. (Happens if we receive a RSCN on the existing remote port that is getting deleted). Signed-off-by: Krishna Gudipati <[email protected]> Signed-off-by: James Bottomley <[email protected]>
2012-09-24[SCSI] bfa: Support vport symbolic name change from sysfs.Krishna Gudipati3-0/+97
- Implemented the FC function template set_vport_symbolic_name entry point to modify the vport symbolic name from sysfs. - Implemented support to send RSPN_ID to switch to register the modified vport symbolic name. Signed-off-by: Krishna Gudipati <[email protected]> Signed-off-by: James Bottomley <[email protected]>
2012-09-24[SCSI] iscsi_tcp: increase max_lun to ~0, don't careRob Evers1-1/+1
Signed-off-by: Rob Evers <[email protected]> Acked-by: Mike Christie <[email protected]> Signed-off-by: James Bottomley <[email protected]>
2012-09-24[SCSI] qla2xxx: Update version number to 8.04.00.07-k.Chad Dupuis1-2/+2
Signed-off-by: Giridhar Malavali <[email protected]> Signed-off-by: Chad Dupuis <[email protected]> Signed-off-by: James Bottomley <[email protected]>
2012-09-24[SCSI] qla2xxx: Use the right field for container_of.Arun Easi1-2/+2
Signed-off-by: Arun Easi <[email protected]> Signed-off-by: Chad Dupuis <[email protected]> Signed-off-by: James Bottomley <[email protected]>
2012-09-24[SCSI] qla2xxx: Allow MSI interrupt registration for ISP82xx.Giridhar Malavali1-1/+1
Signed-off-by: Giridhar Malavali <[email protected]> Signed-off-by: Chad Dupuis <[email protected]> Signed-off-by: James Bottomley <[email protected]>
2012-09-24[SCSI] qla2xxx: Don't toggle RISC interrupt bits after IRQ lines are attached.Giridhar Malavali1-13/+1
Signed-off-by: Giridhar Malavali <[email protected]> Signed-off-by: Chad Dupuis <[email protected]> Signed-off-by: James Bottomley <[email protected]>
2012-09-24[SCSI] qla2xxx: Fix incorrect status reporting on DIF errors.Arun Easi1-0/+1
Signed-off-by: Arun Easi <[email protected]> Signed-off-by: Chad Dupuis <[email protected]> Signed-off-by: James Bottomley <[email protected]>
2012-09-24[SCSI] qla2xxx: T10 DIF - ISP83xx changes.Arun Easi7-54/+67
Signed-off-by: Arun Easi <[email protected]> Signed-off-by: Chad Dupuis <[email protected]> Signed-off-by: James Bottomley <[email protected]>
2012-09-24[SCSI] qla2xxx: Fix for legacy interrupts for ISP83xx.Giridhar Malavali1-0/+2
Signed-off-by: Giridhar Malaval <[email protected]> Signed-off-by: Chad Dupuis <[email protected]> Signed-off-by: James Bottomley <[email protected]>
2012-09-24[SCSI] qla2xxx: Restrict nic core reset to one function for mctp.Saurav Kashyap1-1/+1
Signed-off-by: Saurav Kashyap <[email protected]> Signed-off-by: Chad Dupuis <[email protected]> Signed-off-by: James Bottomley <[email protected]>
2012-09-24[SCSI] qla2xxx: Enable fw attributes for ISP24xx and above.Saurav Kashyap1-1/+1
Signed-off-by: Saurav Kashyap <[email protected]> Signed-off-by: Chad Dupuis <[email protected]> Signed-off-by: James Bottomley <[email protected]>
2012-09-24[SCSI] qla2xxx: Get fcal position map should not be called for p2p topology.Saurav Kashyap2-6/+2
Signed-off-by: Saurav Kashyap <[email protected]> Signed-off-by: Chad Dupuis <[email protected]> Signed-off-by: James Bottomley <[email protected]>
2012-09-24[SCSI] qla2xxx: Set Maximum Read Request Size to 4K.Chad Dupuis1-2/+2
Signed-off-by: Giridhar Malavali <[email protected]> Signed-off-by: Chad Dupuis <[email protected]> Signed-off-by: James Bottomley <[email protected]>
2012-09-24[SCSI] qla2xxx: Enclose adapter related calls in adapter check in failed ↵Saurav Kashyap1-2/+4
state handler. Signed-off-by: Saurav Kashyap <[email protected]> Signed-off-by: Chad Dupuis <[email protected]> Signed-off-by: James Bottomley <[email protected]>
2012-09-24[SCSI] qla2xxx: Fix for handling some error conditions in loopback.Chad Dupuis4-17/+27
Signed-off-by: Giridhar Malavali <[email protected]> Signed-off-by: Chad Dupuis <[email protected]> Signed-off-by: James Bottomley <[email protected]>
2012-09-24[SCSI] qla2xxx: Fix description of qla2xmaxqdepth parameter.Chad Dupuis1-1/+2
Signed-off-by: Giridhar Malavali <[email protected]> Signed-off-by: Chad Dupuis <[email protected]> Signed-off-by: James Bottomley <[email protected]>
2012-09-24[SCSI] qla2xxx: set idc version if function is first one to come.Saurav Kashyap2-5/+26
Signed-off-by: Saurav Kashyap <[email protected]> Signed-off-by: Chad Dupuis <[email protected]> Signed-off-by: James Bottomley <[email protected]>
2012-09-24[SCSI] qla2xxx: Do not restrict the number of NPIV ports for ISP83xx.Saurav Kashyap1-1/+1
Signed-off-by: Saurav Kashyap <[email protected]> Signed-off-by: Chad Dupuis <[email protected]> Signed-off-by: James Bottomley <[email protected]>
2012-09-24[SCSI] qla2xxx: Do PCI fundamental reset for ISP83xxJoe Carnuccio1-1/+2
On ISP83xx cards perform a fundamental reset instead of hot reset. Signed-off-by: Joe Carnuccio <[email protected]> Signed-off-by: Chad Dupuis <[email protected]> Signed-off-by: James Bottomley <[email protected]>
2012-09-24[SCSI] qla2xxx: Fail initialization if unable to load RISC code.Andrew Vasquez1-1/+2
Signed-off-by: Andrew Vasquez <[email protected]> Signed-off-by: Chad Dupuis <[email protected]> Signed-off-by: James Bottomley <[email protected]>
2012-09-24[SCSI] qla2xxx: Ensure PLOGI is sent to Fabric Management-Server upon request.Andrew Vasquez1-1/+1
Signed-off-by: Andrew Vasquez <[email protected]> Signed-off-by: Chad Dupuis <[email protected]> Signed-off-by: James Bottomley <[email protected]>
2012-09-24[SCSI] qla2xxx: Remove setting Scsi_host->this_id during adapter probe.Chad Dupuis2-2/+0
Setting this to 255 will cause any target with id 255 to not show up so leave it at the default in our host template. Signed-off-by: Andrew Vasquez <[email protected]> Signed-off-by: Chad Dupuis <[email protected]> Signed-off-by: James Bottomley <[email protected]>
2012-09-24[SCSI] qla2xxx: Use #defines instead of hardcoded values for intr status.Arun Easi2-18/+29
Signed-off-by: Arun Easi <[email protected]> Signed-off-by: Chad Dupuis <[email protected]> Signed-off-by: James Bottomley <[email protected]>
2012-09-24[SCSI] qla2xxx: Dont call nic restart firmware if it is already active and ↵Saurav Kashyap1-0/+8
running. Signed-off-by: Saurav Kashyap <[email protected]> Signed-off-by: Chad Dupuis <[email protected]> Signed-off-by: James Bottomley <[email protected]>
2012-09-24[SCSI] qla2xxx: Wrong PCIe(2.5Gb/s x8) speed in the kerenel message for ISP82xx.Atul Deshmukh3-21/+1
qla2xxx show wrong PCIe(2.5Gb/s x8) speed in the kerenel message. It should be 5.0Gb/s. Signed-off-by: Atul Deshmukh <[email protected]> Signed-off-by: Chad Dupuis <[email protected]> Signed-off-by: James Bottomley <[email protected]>
2012-09-24[SCSI] qla2xxx: Perform ROM mbx cmd access only after ISP soft-reset during ↵Santosh Vernekar1-8/+8
f/w recovery. Signed-off-by: Santosh Vernekar <[email protected]> Signed-off-by: Chad Dupuis <[email protected]> Signed-off-by: James Bottomley <[email protected]>