aboutsummaryrefslogtreecommitdiff
path: root/drivers/scsi
AgeCommit message (Collapse)AuthorFilesLines
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-10target: Update copyright ownership/year information to 2013Nicholas Bellinger2-6/+3
Update copyright ownership/year information for target-core, loopback, iscsi-target, tcm_qla2xx, vhost and iser-target. Signed-off-by: Nicholas Bellinger <[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-10target/tcm_qla2xxx: Add/use target_reverse_dma_direction() in ↵Nicholas Bellinger1-28/+3
target_core_fabric.h Reversing the dma_data_direction for pci_map_sg() friends is useful for other drivers, so move it from tcm_qla2xxx into inline code within target_core_fabric.h. Also drop internal usage of equivlient in tcm_qla2xxx fabric code. Reported-by: Christoph Hellwig <[email protected]> Cc: Roland Dreier <[email protected]> Cc: Giridhar Malavali <[email protected]> Cc: Chad Dupuis <[email protected]> Cc: Nicholas Bellinger <[email protected]> Signed-off-by: Nicholas Bellinger <[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 Miller1-0/+25
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 radford2-4/+4
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-06Merge branch 'for-linus' of ↵Linus Torvalds10-20/+20
git://git.kernel.org/pub/scm/linux/kernel/git/jikos/trivial Pull trivial tree from Jiri Kosina: "The usual trivial updates all over the tree -- mostly typo fixes and documentation updates" * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/trivial: (52 commits) doc: Documentation/cputopology.txt fix typo treewide: Convert retrun typos to return Fix comment typo for init_cma_reserved_pageblock Documentation/trace: Correcting and extending tracepoint documentation mm/hotplug: fix a typo in Documentation/memory-hotplug.txt power: Documentation: Update s2ram link doc: fix a typo in Documentation/00-INDEX Documentation/printk-formats.txt: No casts needed for u64/s64 doc: Fix typo "is is" in Documentations treewide: Fix printks with 0x%# zram: doc fixes Documentation/kmemcheck: update kmemcheck documentation doc: documentation/hwspinlock.txt fix typo PM / Hibernate: add section for resume options doc: filesystems : Fix typo in Documentations/filesystems scsi/megaraid fixed several typos in comments ppc: init_32: Fix error typo "CONFIG_START_KERNEL" treewide: Add __GFP_NOWARN to k.alloc calls with v.alloc fallbacks page_isolation: Fix a comment typo in test_pages_isolated() doc: fix a typo about irq affinity ...
2013-09-05Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/sparcLinus Torvalds2-6/+9
Pull sparc changes from David Miller: "Several bug fixes (from Kirill Tkhai, Geery Uytterhoeven, and Alexey Dobriyan) and some support for Fujitsu sparc64x chips (from Allen Pais)" * git://git.kernel.org/pub/scm/linux/kernel/git/davem/sparc: sparc64: Export flush_ptrace_access() (needed by lustre) sparc: fix PCI device proc file mmap(2) sparc64: Remove RWSEM export leftovers sparc64: Fix off by one in trampoline TLB mapping installation loop. sparc64: Fix ITLB handler of null page esp_scsi: Fix tag state corruption when autosensing. sparc64: Fix not SRA'ed %o5 in 32-bit traced syscall sparc64: cleanup: Rename ret_from_syscall to ret_from_fork sparc32: Fix exit flag passed from traced sys_sigreturn sparc64: Fix wrong syscall return value passed to trace_sys_exit() support sparc64x chip type in cpumap.c cpu hw caps support for sparc64x
2013-09-05Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-nextLinus Torvalds2-11/+13
Pull networking changes from David Miller: "Noteworthy changes this time around: 1) Multicast rejoin support for team driver, from Jiri Pirko. 2) Centralize and simplify TCP RTT measurement handling in order to reduce the impact of bad RTO seeding from SYN/ACKs. Also, when both timestamps and local RTT measurements are available prefer the later because there are broken middleware devices which scramble the timestamp. From Yuchung Cheng. 3) Add TCP_NOTSENT_LOWAT socket option to limit the amount of kernel memory consumed to queue up unsend user data. From Eric Dumazet. 4) Add a "physical port ID" abstraction for network devices, from Jiri Pirko. 5) Add a "suppress" operation to influence fib_rules lookups, from Stefan Tomanek. 6) Add a networking development FAQ, from Paul Gortmaker. 7) Extend the information provided by tcp_probe and add ipv6 support, from Daniel Borkmann. 8) Use RCU locking more extensively in openvswitch data paths, from Pravin B Shelar. 9) Add SCTP support to openvswitch, from Joe Stringer. 10) Add EF10 chip support to SFC driver, from Ben Hutchings. 11) Add new SYNPROXY netfilter target, from Patrick McHardy. 12) Compute a rate approximation for sending in TCP sockets, and use this to more intelligently coalesce TSO frames. Furthermore, add a new packet scheduler which takes advantage of this estimate when available. From Eric Dumazet. 13) Allow AF_PACKET fanouts with random selection, from Daniel Borkmann. 14) Add ipv6 support to vxlan driver, from Cong Wang" Resolved conflicts as per discussion. * git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next: (1218 commits) openvswitch: Fix alignment of struct sw_flow_key. netfilter: Fix build errors with xt_socket.c tcp: Add missing braces to do_tcp_setsockopt caif: Add missing braces to multiline if in cfctrl_linkup_request bnx2x: Add missing braces in bnx2x:bnx2x_link_initialize vxlan: Fix kernel panic on device delete. net: mvneta: implement ->ndo_do_ioctl() to support PHY ioctls net: mvneta: properly disable HW PHY polling and ensure adjust_link() works icplus: Use netif_running to determine device state ethernet/arc/arc_emac: Fix huge delays in large file copies tuntap: orphan frags before trying to set tx timestamp tuntap: purge socket error queue on detach qlcnic: use standard NAPI weights ipv6:introduce function to find route for redirect bnx2x: VF RSS support - VF side bnx2x: VF RSS support - PF side vxlan: Notify drivers for listening UDP port changes net: usbnet: update addr_assign_type if appropriate driver/net: enic: update enic maintainers and driver driver/net: enic: Exposing symbols for Cisco's low latency driver ...
2013-09-05Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/netDavid S. Miller1-1/+0
Conflicts: drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c net/bridge/br_multicast.c net/ipv6/sit.c The conflicts were minor: 1) sit.c changes overlap with change to ip_tunnel_xmit() signature. 2) br_multicast.c had an overlap between computing max_delay using msecs_to_jiffies and turning MLDV2_MRC() into an inline function with a name using lowercase instead of uppercase letters. 3) stmmac had two overlapping changes, one which conditionally allocated and hooked up a dma_cfg based upon the presence of the pbl OF property, and another one handling store-and-forward DMA made. The latter of which should not go into the new of_find_property() basic block. Signed-off-by: David S. Miller <[email protected]>