aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2013-09-11[SCSI] fnic: Kernel panic while running sh/nosh with max lun cfgSesidhar Beddel1-3/+20
Kernel panics due to NULL lport while executing the log message because of synchronization issues between libfc and scsi transport fc. Checking for NULL pointers at the beginning of this routine would resolve the issue from kernel panic point of view. Signed-off-by: Sesidhar Baddel <[email protected]> Signed-off-by: Hiral Patel <[email protected]> Signed-off-by: James Bottomley <[email protected]>
2013-09-11[SCSI] fnic: Hitting BUG_ON(io_req->abts_done) in fnic_rport_exch_resetSesidhar Beddel1-28/+42
Hitting BUG_ON(io_req->abts_done) in fnic_rport_exch_reset in case of timing issue and also to some extent locking issue where abts and terminate is happening around same timing. The code changes are intended to update CMD_STATE(sc) and io_req->abts_done together. Signed-off-by: Sesidhar Beddel <[email protected]> Signed-off-by: Hiral Patel <[email protected]> Signed-off-by: James Bottomley <[email protected]>
2013-09-11[SCSI] fnic: Remove QUEUE_FULL handling codeSuma Ramars1-32/+0
Remove fnic driver QUEUE_FULL handling code instead let SCSI mid layer handle queue full and use its algorithm to ramp down/up queue Signed-off-by: Suma Ramars <[email protected]> Signed-off-by: Hiral Patel <[email protected]> Signed-off-by: James Bottomley <[email protected]>
2013-09-11[SCSI] fnic: On system with >1.1TB RAM, VIC fails multipath after boot upBrian Uchino1-4/+4
Issue was seen when SCSI buffer address is more than 40 bits in system with more than 1.1TB RAM. When SCSI buffer is passed to VIC, it is failing to map to correct buffer address, as DMA mask is set to 40 bits in driver initialization. Corrected DMA_MASK from 40-bits to 64-bits to avoid masking 41-64 bits addresses. Signed-off-by: Brian Uchino <[email protected]> Signed-off-by: Hiral Patel <[email protected]> Signed-off-by: James Bottomley <[email protected]>
2013-09-11[SCSI] fnic: FC stat param seconds_since_last_reset not getting updatedNarsimhulu Musini2-1/+112
Code to reset fc_host statistics. echo 1 > /sys/class/fc_host/hostX/statistics/reset_statistics clears fc_host stats, the code also issues command to fnic firmware to clear vnic stats. Signed-off-by: Narsimhulu Musini <[email protected]> Signed-off-by: Hiral Patel <[email protected]> Signed-off-by: James Bottomley <[email protected]>
2013-09-11[SCSI] sd: Fix potential out-of-bounds accessAlan Stern1-8/+3
This patch fixes an out-of-bounds error in sd_read_cache_type(), found by Google's AddressSanitizer tool. When the loop ends, we know that "offset" lies beyond the end of the data in the buffer, so no Caching mode page was found. In theory it may be present, but the buffer size is limited to 512 bytes. Signed-off-by: Alan Stern <[email protected]> Reported-by: Dmitry Vyukov <[email protected]> CC: <[email protected]> Signed-off-by: James Bottomley <[email protected]>
2013-09-10[SCSI] lpfc 8.3.42: Update lpfc version to driver version 8.3.42James Smart1-1/+1
Signed-off-by: James Smart <[email protected]> Signed-off-by: James Bottomley <[email protected]>
2013-09-10[SCSI] lpfc 8.3.42: Fixed issue of task management commands having a fixed ↵James Smart3-1/+10
timeout Signed-off-by: James Smart <[email protected]> Signed-off-by: James Bottomley <[email protected]>
2013-09-10[SCSI] lpfc 8.3.42: Fixed inconsistent spin lock usage.James Smart2-18/+16
Signed-off-by: James Smart <[email protected]> Signed-off-by: James Bottomley <[email protected]>
2013-09-10[SCSI] lpfc 8.3.42: Fix driver's abort loop functionality to skip IOs ↵James Smart2-1/+14
already getting aborted Signed-off-by: James Smart <[email protected]> Signed-off-by: James Bottomley <[email protected]>
2013-09-10[SCSI] lpfc 8.3.42: Fixed failure to allocate SCSI buffer on PPC64 platform ↵James Smart1-3/+6
for SLI4 devices Signed-off-by: James Smart <[email protected]> Signed-off-by: James Bottomley <[email protected]>
2013-09-10[SCSI] lpfc 8.3.42: Fix WARN_ON when driver unloadsJames Smart1-2/+8
Signed-off-by: James Smart <[email protected]> Signed-off-by: James Bottomley <[email protected]>
2013-09-10[SCSI] lpfc 8.3.42: Avoided making pci bar ioremap call during dual-chute ↵James Smart2-38/+12
WQ/RQ pci bar selection Signed-off-by: James Smart <[email protected]> Signed-off-by: James Bottomley <[email protected]>
2013-09-10[SCSI] lpfc 8.3.42: Fixed driver iocbq structure's iocb_flag field running ↵James Smart2-10/+9
out of space Signed-off-by: James Smart <[email protected]> Signed-off-by: James Bottomley <[email protected]>
2013-09-10[SCSI] lpfc 8.3.42: Fix crash on driver load due to cpu affinity logicJames Smart2-6/+27
Signed-off-by: James Smart <[email protected]> Signed-off-by: James Bottomley <[email protected]>
2013-09-10[SCSI] lpfc 8.3.42: Fixed logging format of setting driver sysfs attributes ↵James Smart1-2/+4
hard to interpret Signed-off-by: James Smart <[email protected]> Signed-off-by: James Bottomley <[email protected]>
2013-09-10[SCSI] lpfc 8.3.42: Fixed back to back RSCNs discovery failure.James Smart1-1/+9
Signed-off-by: James Smart <[email protected]> Signed-off-by: James Bottomley <[email protected]>
2013-09-10[SCSI] lpfc 8.3.42: Fixed race condition between BSG I/O dispatch and ↵James Smart2-17/+72
timeout handling Signed-off-by: James Smart <[email protected]> Signed-off-by: James Bottomley <[email protected]>
2013-09-10[SCSI] lpfc 8.3.42: Fixed function mode field defined too small for not ↵James Smart1-1/+1
recognizing dual-chute mode Signed-off-by: James Smart <[email protected]> Signed-off-by: James Bottomley <[email protected]>
2013-09-10[SCSI] lpfc 8.3.42: Back out data count,(residual fcfi_parm) fix for bad target.James Smart1-3/+3
Signed-off-by: James Smart <[email protected]> Signed-off-by: James Bottomley <[email protected]>
2013-09-10[SCSI] lpfc 8.3.42: Fixed mailbox memory leak.James Smart1-0/+1
Signed-off-by: James Smart <[email protected]> Signed-off-by: James Bottomley <[email protected]>
2013-09-10[SCSI] lpfc 8.3.42: Fix random errors using first burstJames Smart1-2/+7
Signed-off-by: James Smart <[email protected]> Signed-off-by: James Bottomley <[email protected]>
2013-09-10[SCSI] lpfc 8.3.42: Fixed not able to log informational messages at early ↵James Smart1-9/+3
stage of driver init time Signed-off-by: James Smart <[email protected]> Signed-off-by: James Bottomley <[email protected]>
2013-09-10[SCSI] lpfc 8.3.42: Fixed using unsafe linked list macro for walking and ↵James Smart2-4/+5
deleting linked list Signed-off-by: James Smart <[email protected]> Signed-off-by: James Bottomley <[email protected]>
2013-09-10[SCSI] megaraid_sas: addded support for big endian architecture[email protected]5-282/+407
This patch will add big endian architecture support to megaraid_sas driver. The support added is for LSI MegaRAID all generation controllers- (3Gb/s, 6Gb/s and 12 Gb/s controllers). We have done basic sanity test @ppc64 arch and @x86_64. Additional testing/observations are welcome. [jejb: fix up rejections] Signed-off-by: Kashyap Desai <[email protected]> Signed-off-by: Sumit Saxena <[email protected]> Signed-off-by: James Bottomley <[email protected]>
2013-09-10[SCSI] aic7xxx: fix swapped arguments in ahc_find_pci_deviceDave Jones1-1/+1
The prototype for ahc_9005_subdevinfo_valid shows that the caller has the arguments in the wrong order. 637 ahc_9005_subdevinfo_valid(uint16_t device, uint16_t vendor, 638 uint16_t subdevice, uint16_t subvendor) Signed-off-by: Dave Jones <[email protected]> Acked-by: Hannes Reinecke <[email protected]> Signed-off-by: James Bottomley <[email protected]>
2013-09-10[SCSI] hpsa: bump driver version to reflect changesMike Miller1-1/+1
Changes the version of hpsa so we know something has changed. Please consider this for inclusion. Signed-off-by: Mike Miller <[email protected]> Signed-off-by: James Bottomley <[email protected]>
2013-09-10[SCSI] hpsa: housekeeping patch for device_id and product arraysMike Miller1-6/+6
This patch does a bit of housekeeping for hpsa. Change lowercase alpha hex digits to uppercase for consistency within the driver. Also moves the P822se in the tables to keep controllers of each family grouped together. Signed-off-by: Mike Miller <[email protected]> Signed-off-by: James Bottomley <[email protected]>
2013-09-10[SCSI] hpsa: add HP Smart Array Gen8 namesMike Miller1-8/+7
Add the marketing names for HP Smart Array Gen8 controllers. Also removes an unused ID. Please consider this for inclusion. Signed-off-by: Mike Miller <[email protected]> Signed-off-by: James Bottomley <[email protected]>
2013-09-10[SCSI] hpsa: add HP Smart Array Gen9 PCI ID'sMike Miller2-0/+26
This patch adds the PCI ID's for HP Smart Array Gen9 controllers. Please consider this patch for inclusion. Signed-off-by: Mike Miller <[email protected]> Signed-off-by: James Bottomley <[email protected]>
2013-09-06[SCSI] ufs: configure the attribute for power modeSeungwon Jeon2-0/+87
UIC attributes can be set with using DME_SET command for power mode change. For configuration the link capability attributes are used, which is updated after successful link startup. Signed-off-by: Seungwon Jeon <[email protected]> Reviewed-by: Subhash Jadavani <[email protected]> Signed-off-by: Santosh Y <[email protected]> Signed-off-by: James Bottomley <[email protected]>
2013-09-06[SCSI] ufs: add operation for the uic power mode changeSeungwon Jeon4-4/+225
Setting PA_PWRMode using DME_SET triggers the power mode change. And then the result will be given by the HCS.UPMCRS. This operation should be done atomically. Signed-off-by: Seungwon Jeon <[email protected]> Reviewed-by: Subhash Jadavani <[email protected]> Tested-by: Yaniv Gardi <[email protected]> Signed-off-by: Santosh Y <[email protected]> Signed-off-by: James Bottomley <[email protected]>
2013-09-06[SCSI] ufs: add dme configuration primitivesSeungwon Jeon3-0/+145
Implements to support GET and SET operations of the DME. These operations are used to configure the behavior of the UNIPRO. Along with basic operation, {Peer/AttrSetType} can be mixed. Signed-off-by: Seungwon Jeon <[email protected]> Reviewed-by: Subhash Jadavani <[email protected]> Tested-by: Yaniv Gardi <[email protected]> Signed-off-by: Santosh Y <[email protected]> Signed-off-by: James Bottomley <[email protected]>
2013-09-06[SCSI] ufs: fix the setting interrupt aggregation counterSeungwon Jeon2-30/+27
IACTH(Interrupt aggregation counter threshold) value is allowed up to 0x1F and current setting value is the maximum. This value is related with NUTRS(max:0x20) of HCI's capability. Considering HCI controller doesn't support the maximum, IACTH setting should be adjusted with possible value. For that, existing 'ufshcd_config_int_aggr' is split into two part [reset, configure]. Signed-off-by: Seungwon Jeon <[email protected]> Reviewed-by: Subhash Jadavani <[email protected]> Tested-by: Yaniv Gardi <[email protected]> Signed-off-by: Santosh Y <[email protected]> Signed-off-by: James Bottomley <[email protected]>
2013-09-06[SCSI] ufs: find out sense data over scsi status valuesSeungwon Jeon2-15/+23
Unlike 'GOOD' and 'CHECK CONDITION', other status values in Response UPIU may or may not contain sense data. That is returning sense data isn't obvious. So, in this case the Data Segment Length field should be checked. If a non-zero value, it means that UPIU has Sense Data in the Data Segment area. Signed-off-by: Seungwon Jeon <[email protected]> Reviewed-by: Subhash Jadavani <[email protected]> Tested-by: Yaniv Gardi <[email protected]> Signed-off-by: Santosh Y <[email protected]> Signed-off-by: James Bottomley <[email protected]>
2013-09-06[SCSI] megaraid_sas: Version and Changelog updateadam radford3-4/+14
Signed-off-by: Adam Radford <[email protected]> Signed-off-by: James Bottomley <[email protected]>
2013-09-06[SCSI] megaraid_sas: Add High Availability clustering support using shared ↵adam radford5-29/+204
Logical Disks Signed-off-by: Adam Radford <[email protected]> Signed-off-by: James Bottomley <[email protected]>
2013-09-06[SCSI] Allow MPT Fusion SAS 3.0 driver to be built into the kernelGreg Kroah-Hartman1-1/+1
Right now the Makefile for the mpt3sas driver does not even allow the driver to be built into the kernel. So fix that up, as there doesn't seem to be any obvious reason why this shouldn't be done. Signed-off-by: Greg Kroah-Hartman <[email protected]> Acked-by: Sreekanth Reddy <[email protected]> Signed-off-by: James Bottomley <[email protected]>
2013-09-06[SCSI] ibmvfc: Fix for offlining devices during error recoveryBrian King1-2/+13
This fixes an issue seen with devices getting marked offline in a scenario where a VIOS was getting rebooted while a client VFC adapter is in SCSI EH and prevents unnecessary EH escalation in some scenarios. Signed-off-by: Brian King <[email protected]> Acked-by: Robert Jennings <[email protected]> Signed-off-by: James Bottomley <[email protected]>
2013-09-06[SCSI] ibmvscsi: Fix little endian issuesAnton Blanchard2-91/+109
The hypervisor is big endian, so little endian kernel builds need to byteswap. [jejb: fix checkpatch errors] Signed-off-by: Anton Blanchard <[email protected]> Signed-off-by: James Bottomley <[email protected]>
2013-09-06[SCSI] esas2r: Remove null test for stack allocated fw_coredump_bufferBradley Grove1-2/+1
Reported-by: Dave Jones <[email protected]> Signed-off-by: Bradley Grove <[email protected]> Signed-off-by: James Bottomley <[email protected]>
2013-09-06[SCSI] esas2r: coccinelle - Replace memcpy with struct assignmentBradley Grove1-2/+2
Reported-by: Fengguang Wu <[email protected]> Signed-off-by: Bradley Grove <[email protected]> Signed-off-by: James Bottomley <[email protected]>
2013-09-06[SCSI] esas2r: smatch - Remove test for impossible condition (uint8 > 255)Bradley Grove1-1/+1
Reported-by: Dan Carpenter <[email protected]> Signed-off-by: Bradley Grove <[email protected]> Signed-off-by: James Bottomley <[email protected]>
2013-09-06[SCSI] esas2r: smatch - Fix overrun due to sprintf appending NULLBradley Grove1-2/+5
Reported-by: Dan Carpenter <[email protected]> Signed-off-by: Bradley Grove <[email protected]> Signed-off-by: James Bottomley <[email protected]>
2013-09-06[SCSI] esas2r: smatch - Fix dereference that occurs prior to checkBradley Grove2-2/+8
Reported-by: Dan Carpenter <[email protected]> Signed-off-by: Bradley Grove <[email protected]> Signed-off-by: James Bottomley <[email protected]>
2013-09-06[SCSI] esas2r: smatch - Use biwise rather than logical AND for checking if ↵Bradley Grove1-1/+1
any bit set Reported-by: Dan Carpenter <[email protected]> Signed-off-by: Bradley Grove <[email protected]> Signed-off-by: James Bottomley <[email protected]>
2013-09-03[SCSI] sg: push file descriptor list locking down to per-device lockingVaughan Cao1-28/+34
Push file descriptor list locking down to per-device locking. Let sg_index_lock only protect device lookup. sdp->detached is also set and checked with this lock held. Signed-off-by: Vaughan Cao <[email protected]> Acked-by: Douglas Gilbert <[email protected]> Signed-off-by: James Bottomley <[email protected]>
2013-09-03[SCSI] sg: checking sdp->detached isn't protected when openVaughan Cao1-8/+9
@detached is set under the protection of sg_index_lock. Without getting the lock, new sfp will be added during sg removal and there is no chance for it to be picked out. So check with sg_index_lock held in sg_add_sfp(). Signed-off-by: Vaughan Cao <[email protected]> Acked-by: Douglas Gilbert <[email protected]> Signed-off-by: James Bottomley <[email protected]>
2013-09-03[SCSI] sg: no need sg_open_exclusive_lockVaughan Cao1-29/+5
Open exclusive check is protected by o_sem, no need sg_open_exclusive_lock. @exclude is used to record which type of rwsem we are holding. Signed-off-by: Vaughan Cao <[email protected]> Acked-by: Douglas Gilbert <[email protected]> Signed-off-by: James Bottomley <[email protected]>
2013-09-03[SCSI] sg: use rwsem to solve race during exclusive openVaughan Cao1-38/+41
A race condition may happen if two threads are both trying to open the same sg with O_EXCL simultaneously. It's possible that they both find fsds list is empty and get_exclude(sdp) returns 0, then they both call set_exclude() and break out from wait_event_interruptible and resume open. Now use rwsem to protect this process. Exclusive open gets write lock and others get read lock. The lock will be held until file descriptor is closed. This also leads 'exclude' only a status rather than a check mark. Signed-off-by: Vaughan Cao <[email protected]> Acked-by: Douglas Gilbert <[email protected]> Signed-off-by: James Bottomley <[email protected]>