commit 7c0616b85ba23d0467bf0b5a6f288f5296eb05ff Author: James Smart Date: Tue Jan 26 23:10:40 2010 -0500 [SCSI] lpfc 8.3.8: Update Driver version to 8.3.8 Update Driver version to 8.3.8 Signed-off-by: James Smart Signed-off-by: James Bottomley commit 3b5dd52aaffd291edea9f939ed46a960b240bb45 Author: James Smart Date: Tue Jan 26 23:10:15 2010 -0500 [SCSI] lpfc 8.3.8: (BSG4) Add new vendor specific BSG Commands Add the following new vendor specific BSG commands. - Add LPFC_BSG_VENDOR_GET_MGMT_REV command - Add LPFC_BSG_VENDOR_MBOX command - Add LPFC_BSG_VENDOR_DIAG_MODE command - Add LPFC_BSG_VENDOR_DIAG_TEST command Signed-off-by: James Smart Signed-off-by: James Bottomley commit 4cc0e56e977f12e6f400cbab3df7cf1e11d6f58a Author: James Smart Date: Tue Jan 26 23:09:48 2010 -0500 [SCSI] lpfc 8.3.8: (BSG3) Modify BSG commands to operate asynchronously Modify the following BSG commands to operate asynchronously. - FC_BSG_RPT_ELS - FC_BSG_RPT_CT - LPFC_BSG_VENDOR_GET_CT_EVENT - LPFC_BSG_VENDOR_SET_CT_EVENT Signed-off-by: James Smart Signed-off-by: James Bottomley commit c79c1292df87fa9c63383ca551fa719c0c2fda7c Author: James Smart Date: Tue Jan 26 23:09:22 2010 -0500 [SCSI] lpfc 8.3.8: (BSG2) Create lpfc_bsg.h Create lpfc_bsg.h - structures, etc used by bsg-related routines. Signed-off-by: James Smart Signed-off-by: James Bottomley commit 4fede78f7552479c4bb3bab221133ec5244e4154 Author: James Smart Date: Tue Jan 26 23:08:55 2010 -0500 [SCSI] lpfc 8.3.8: (BSG1) Update BSG infrastructure Update BSG infrastructure to handle new vendor specific BSG commands. Signed-off-by: James Smart Signed-off-by: James Bottomley commit 65467b6bdffd3efde111444663bc9de35b59b22a Author: James Smart Date: Tue Jan 26 23:08:29 2010 -0500 [SCSI] lpfc 8.3.8: Add code to display logical link speed Display Logical Link Speed when supported and is non-zero. Signed-off-by: James Smart Signed-off-by: James Bottomley commit 695a814e18561c52456acf5051fac0ea4b8111da Author: James Smart Date: Tue Jan 26 23:08:03 2010 -0500 [SCSI] lpfc 8.3.8: BugFixes: Discovery relates changes Discovery relates changes: - Separated VPI_REGISTERED state of physical port into VFI_REGISTERED and VPI_REGISTERED state so that driver can unregister physical port VPI independent of VFI. - Add code to unregister, re-init and re-register physical port VPI when physical port NportID change. - Add code to unregister and re-register VPI of a vport when its Nport ID change. - Add code in FDISC completion path to re-start FLOGI discovery when a FDISC complete with LOGIN_REQUIRED reason code. - Fix a memory leak in lpfc_init_vpi_cmpl - Add code to start a timer for vport to retry FDISC when CVL is received by a vport or physical port. If all Nports receive CVLs, then all timers are cancelled and a logical link level discovery will be started after one second. - Flush ELS commands after killing all delayed ELS commands. Signed-off-by: James Smart Signed-off-by: James Bottomley commit 341af10239c4c87192bf762f53c7bcb1f3a1e767 Author: James Smart Date: Tue Jan 26 23:07:37 2010 -0500 [SCSI] lpfc 8.3.8: BugFixes: SLI relates changes Fix hardware/SLI relates issues: - Handle XB bit so that ELS XRIs are not prematurely released. - Handle XB bit so that FCP XRIs are not prematurely released. - Define new security SLI Commands. - Remove unused security SLI commands - Skip receive data size parameter check on received FLOGI. - Added LPFC_USE_FCPWQIDX flag to iocb to force SLI layer to submit abort WQE on same WQ as the command WQE. Signed-off-by: James Smart Signed-off-by: James Bottomley commit 2cec802980727f1daa46d8c31b411e083d49d7a2 Author: Ben Hutchings Date: Sat Jan 23 18:40:29 2010 +0000 [SCSI] qla1280: Drop host_lock while requesting firmware request_firmware() may sleep and it appears to be safe to release the spinlock here. Signed-off-by: Ben Hutchings Cc: stable@kernel.org Signed-off-by: James Bottomley commit 7c56533cf4fb072abc39e850e7ef4fb6166cc83b Author: Jayamohan Kallickal Date: Sat Jan 23 05:39:37 2010 +0530 [SCSI] be2iscsi: correction in the claculation for num_cxn_wrb This patch correct the math done for num_cxn_wrb Signed-off-by: Jayamohan Kallickal Signed-off-by: James Bottomley commit b30c6dab1d87cc638a7413dd0e778d8c9a5232eb Author: Jayamohan Kallickal Date: Sat Jan 23 05:38:56 2010 +0530 [SCSI] be2iscsi: changing the chip opcode for TEXT This patch corrects the chipopcode for text and chooses correct paramters for that command Signed-off-by: Jayamohan Kallickal Signed-off-by: James Bottomley commit caf818f118b1ea60226a884072f1c3a9d5714766 Author: Jayamohan Kallickal Date: Sat Jan 23 05:38:18 2010 +0530 [SCSI] be2iscsi: Ensure clean reuse of wrb This patch ensures that wrb is cleanly resued for io path and is memset to zero for non io path Signed-off-by: Jayamohan Kallickal Signed-off-by: James Bottomley commit f55a24f2c24b63f8b4329eb28b4aec02a4bcf5d0 Author: Jayamohan Kallickal Date: Sat Jan 23 05:37:40 2010 +0530 [SCSI] be2iscsi: correcting the return This patch fixes an issue where return was not called properly. Thanks to Mike Christie for spotting this Signed-off-by: Jayamohan Kallickal Signed-off-by: James Bottomley commit 5dc1c416b39531e3bcf0651ca4123e64228dd553 Author: Jayamohan Kallickal Date: Sat Jan 23 05:36:52 2010 +0530 [SCSI] be2iscsi: Proper checking of state This patch adds proper checking of value in for hba state. We would be adding more states later on Signed-off-by: Jayamohan Kallickal Signed-off-by: James Bottomley commit 230dceb4316da9c8e05c82b64f2527aee95da2ff Author: Jayamohan Kallickal Date: Sat Jan 23 05:36:10 2010 +0530 [SCSI] be2iscsi: Fix for first_burst This patch fixes the first_burst being modified instead of max_burst Signed-off-by: Jayamohan Kallickal Signed-off-by: James Bottomley commit d2eeb1ac35a7146cbd4b1f6bf09bb6384ccdfb0d Author: Jayamohan Kallickal Date: Sat Jan 23 05:35:15 2010 +0530 [SCSI] be2iscsi: changing copyright to 2010 This patch replaces 2009 with 2010 in copyright statement Signed-off-by: Jayamohan Kallickal Signed-off-by: James Bottomley commit 32951dd8cd70e525eb523c9e2b62d79d9157fae9 Author: Jayamohan Kallickal Date: Sat Jan 23 05:34:24 2010 +0530 [SCSI] be2iscsi: Remove Ring mode from driver Ring mode is not used. This patch removes the code. Signed-off-by: Mike Christie Signed-off-by: Jayamohan Kallickal Signed-off-by: James Bottomley commit d0e2ddff7c4b493acff50a9000564b67cbe7d676 Author: Dmitry Torokhov Date: Tue Jan 19 10:24:40 2010 -0800 [SCSI] vmw_pvscsi: fix signedness warning with newer compilers pvscsi_setup_msix() expects 'irq' argument to be an int but is being passed unsigned int. Unsigned int is more proper type for IRQ number so let's use it. This shuts off a compile warning with recent compilers. Signed-off-by: Dmitry Torokhov Acked-by: Alok Kataria Signed-off-by: James Bottomley commit fa4698fcf59c3bd01c171e5e558bae9e8eb396f1 Author: Martin K. Petersen Date: Mon Jan 18 18:43:18 2010 -0500 [SCSI] sd: Combine DIF/DIX error handling DIF and DIX errors are handled identically at this point. Collapse the switch cases into one and let scsi_io_completion print result and sense data. Signed-off-by: Martin K. Petersen Signed-off-by: James Bottomley commit d44a6d2bbffd9e5c87f0a78cbe9c089e21289162 Author: Roel Kluin Date: Sun Jan 17 16:15:57 2010 +0100 [SCSI] lpfc: unify two if branches with the same code in lpfc_decode_firmware_rev() Regardless of the flag state, the branches execute the same code Signed-off-by: Roel Kluin Acked-by: James Smart Signed-off-by: James Bottomley commit a3babda5b3b60b5d28dbab127b1ecc8ba707b6e7 Author: Jayamohan Kallickal Date: Thu Jan 7 01:51:44 2010 +0530 [SCSI] be2iscsi: Fix to allow driver to load when the FW allows more cids This fix allows the driver to load when the FW allows more cids than than the driver supports. The driver will limit the number of cid to what it can support. There was no reason to fail the driver load,so, correcting that Signed-off-by: Jayamohan Kallickal Signed-off-by: James Bottomley commit aa3590329fdf789902e3c1383589bad12a74fb09 Author: Jayamohan Kallickal Date: Thu Jan 7 01:51:04 2010 +0530 [SCSI] be2iscsi: Fixing the number of SGE's The number of SGE's supported is fixed to what the chip expects. Also, the max sectors set to tested values Signed-off-by: Jayamohan Kallickal Signed-off-by: James Bottomley commit 48bd86cf213a5780346b603b703c4b83978611a8 Author: Jayamohan Kallickal Date: Thu Jan 7 01:50:19 2010 +0530 [SCSI] be2iscsi: Fixing Bug for multiple SGEs The patch fixes a but where the sg_next is not assigned and hence the first sge was being resused wrongly Signed-off-by: Jayamohan Kallickal Signed-off-by: James Bottomley commit e4b8972c6172950ce226afdf7a921098f7672d5c Author: Kashyap, Desai Date: Wed Dec 16 18:57:02 2009 +0530 [SCSI] mpt2sas: Bump version 04.100.01.00 Version upgraded to 04.100.01.00. Signed-off-by: Kashyap Desai Reviewed-by: Eric Moore Signed-off-by: James Bottomley commit 84f0b04a0e3b279a0b0a851b93eb403a626ca4b8 Author: Kashyap, Desai Date: Wed Dec 16 18:56:28 2009 +0530 [SCSI] mpt2sas: Enable TLR for SSP TAPE drives (Added SAS Transport APIs) If TLR is supported for end device, MPT2SAS driver will enable the TLR bit in the SCSI_IO for every request. If there is a response with MPI2_SCSITASKMGMT_RSP_INVALID_FRAME, the driver will turn off the TLR logic. [jejb: updated to new transport class TLR API] Signed-off-by: Kashyap Desai Reviewed-by: Eric Moore Signed-off-by: James Bottomley commit f4af3c14113d1b0d98d5a5e717b8aa1f484065b6 Author: Kashyap, Desai Date: Wed Dec 16 18:55:54 2009 +0530 [SCSI] mpt2sas: Update driver header to latest MPI Spec. Update header to latest MPI SPEC revision. Signed-off-by: Kashyap Desai Reviewed-by: Eric Moore Signed-off-by: James Bottomley commit 50d5c60634673a79f8d88564e10345b50fca7378 Author: Kashyap, Desai Date: Wed Dec 16 18:55:26 2009 +0530 [SCSI] mpt2sas: Added phy_enable and set_phy_speed sysfs callback support. Added new callbacks phy_enable and set_phy_speed in the mpt2sas_transport_functions template. This will allow end user to enable/disable phys and change links rates using the SysFS interface. Current implementation only supports direct attached phys, but we could in the future add support for expander based phys. A new subroutine mpt2sas_config_set_sas_iounit_pg1 was added; this wrapper function used to send request to controller firmware to modify the phys and link rates. A new subroutine _transport_find_local_phy was added; a function for easly obtaining the local phy object for direct attached. Example to disable a phy echo 0 > /sys/class/phy3:0/enable Example to enable the same phy echo 1 > /sys/class/phy3:0/enable Example to change the link rate to 1.5 #echo "1.5 Gbit" > /sys/class/phy3:0/maximum_linkrate #cat /sys/class/phy3:0/negotiated_linkrate 1.5 Gbit Example to change the link rate to 3.0 #echo "3.0 Gbit" > /sys/class/phy3:0/maximum_linkrate #cat /sys/class/phy3:0/negotiated_linkrate 3.0 Gbit Example to change the link rate to 6.0 #echo "6.0 Gbit" > /sys/class/phy3:0/maximum_linkrate #cat /sys/class/phy3:0/negotiated_linkrate 6.0 Gbit Signed-off-by: Kashyap Desai Reviewed-by: Eric Moore Signed-off-by: James Bottomley commit f7c95ef02b564d9984c0655c9659791b1dd5d7ad Author: Kashyap, Desai Date: Wed Dec 16 18:54:42 2009 +0530 [SCSI] mpt2sas: Added raid transport support Adding support for raid transport layer. This will provide sysfs attributes containing raid level, state, and resync rate. MPT2SAS module will select RAID_ATTRS. Signed-off-by: Kashyap Desai Reviewed-by: Eric Moore Signed-off-by: James Bottomley commit 22c88425e03e8476176375ab0457c88ff3a5b68c Author: Kashyap, Desai Date: Wed Dec 16 18:53:04 2009 +0530 [SCSI] mpt2sas: Use compat_ptr to setup the pointer compatibility. On ppc64, an 32bit application was failing due to data buffers not being copied properly from user to kernel memory. The problem due to improper conversion of 32 to 64 bit pointers. The fix is to use compat_ptr to setup the pointer compatibility in the routine _ctl_compat_mpt_command. Signed-off-by: Kashyap Desai Reviewed-by: Eric Moore Signed-off-by: James Bottomley commit e75b9b6d9d81e35aed5ef2692285c4948e173c5c Author: Kashyap, Desai Date: Wed Dec 16 18:52:39 2009 +0530 [SCSI] mpt2sas: Set ioc->fwfault_debug to the cmd line option mpt2sas_fwfault_debug. (1) change the formentioned string from logging_level to fwfault_debug (2) set ioc->fwfault_debug to the command line option mpt2sas_fwfault_debug setting at driver load time. Signed-off-by: Kashyap Desai Reviewed-by: Eric Moore Signed-off-by: James Bottomley commit 6846e75cdfa76c6609ac0381a6739c9f4af8fd3b Author: Kashyap, Desai Date: Wed Dec 16 18:51:45 2009 +0530 [SCSI] mpt2sas: User resource_size_t instead of unsigned long Use resource_size_t to define the type resource for the system interface register set. The existing implementation was using "unsigned long" which would be 32 bit in 32 bit OS. If 32 bit OS is using 64 bit physical address space for the system interface register set, we need to shift to using resource_size_t which takes care of physical address space. Signed-off-by: Kashyap Desai Reviewed-by: Eric Moore Signed-off-by: James Bottomley commit b2ff36ba19dec02b05d3e26e36923b71ab64f34a Author: Kashyap, Desai Date: Wed Dec 16 18:51:05 2009 +0530 [SCSI] mpt2sas: Return -ENODATA on IOCTL timeout The driver was modified to return -ENODATA when there is a timeout via ioctl path. Signed-off-by: Kashyap Desai Reviewed-by: Eric Moore Signed-off-by: James Bottomley commit d7384b28afb2bf2b7be835ddc8c852bdc5e0ce1c Author: Kashyap, Desai Date: Wed Dec 16 18:50:06 2009 +0530 [SCSI] mpt2sas: Delete volume before HBA detach. The driver hangs when doing `rmmod mpt2sas` if there are any IR volumes present.The hang is due the scsi midlayer trying to access the IR volumes after the driver releases controller resources. Perhaps when scsi_remove_host is called,the scsi mid layer is sending some request. This doesn't occur for bare drives becuase the driver is already reporting those drives deleted prior to calling mpt2sas_base_detach. To solve this issue, we need to delete the volumes as well. Signed-off-by: Kashyap Desai Reviewed-by: Eric Moore Signed-off-by: James Bottomley commit 0f88009d5cfae890bd3466126d1622ad4f16b798 Author: James Bottomley Date: Mon Jan 18 10:14:51 2010 -0600 [SCSI] scsi_transport_sas: add support for transport layer retries (TLR) The mpt2sas driver wants to use transport layer retries (TLR) so the simplest thing to do seems to be to add the enabling flags and checks to the SAS transport class, since they're a SAS specific protocol feature. Signed-off-by: James Bottomley commit 8605c46c171f02859fb3a32655fa226ce446c6ec Author: George Kadianakis Date: Sun Jan 17 21:19:31 2010 +0200 [SCSI] lpfc: restore MSI-X/MSI support A Gentoo bug report [1] showed that as of 2.6.31 lpfc only uses INTx interrupts. This patch restores lpfc's ability to support MSI-X/MSI interrupts that the "Addition of SLI4 Interface - Base Support" patch [2] broke. It reestablishes MSI-X as the default interrupt method and in case MSI-X is not supported lpfc_sli{4,}_enable_intr fallbacks to MSI and then to INTx. [1]: http://bugs.gentoo.org/show_bug.cgi?id=296319 [2]: commit da0436e915a5c17ee79e72c1bf978a4ebb1cbf4d [James Smart: Background: Nothing Broke. This was intended. We had originally enabled MSI-X by default, but in qualification within the last 12 months, we encountered a major catch-22: There were at least 4 platforms, from 2 major OEMs, that : - Say they support MSI-X - platform routines work and act as if they do. - We enable it, generate a test interrupt to check they really do deliver it, and it works. - But shortly after attachment, the system hangs or loses interrupts, resulting in a bad system behavior. Given the distro's picking up the 2.6.32 kernel, we had to stick with a default of MSI-X off, with user-enabled MSI-X as these platforms couldn't get fixed. However, we're also now encountering platforms that require MSI-X and never INTx, so we must change. It's desired also for also for performance reasons. So - now (2.6.33) is the right time to re-enable MSI-X by default. ] [jejb: fix up comment on default values] Signed-off-by: George Kadianakis Acked-by: James Smart Signed-off-by: James Bottomley commit e8a392444d338d3ce77d157bcbe4975828536efa Author: Giridhar Malavali Date: Tue Jan 12 13:02:49 2010 -0800 [SCSI] qla2xxx: Update version number to 8.03.02-k0. Signed-off-by: Giridhar Malavali Signed-off-by: James Bottomley commit f8ac60855ebfa239319a4a9945799995feda3b06 Author: Giridhar Malavali Date: Tue Jan 12 13:02:48 2010 -0800 [SCSI] qla2xxx: Remove firmware hint for 81xx parts. Firmware is loaded from flash for these ISP types. Signed-off-by: Giridhar Malavali Signed-off-by: James Bottomley commit 9a069e196767d7b87184fd8d8211d22bb5b9c0b8 Author: Giridhar Malavali Date: Tue Jan 12 13:02:47 2010 -0800 [SCSI] qla2xxx: Add BSG support for FC ELS/CT passthrough and vendor commands. [jejb: fixed printk casting issues] Signed-off-by: Sarang Radke Signed-off-by: Giridhar Malavali Signed-off-by: James Bottomley commit 90a86fc05ffefe48581c88106d0b9cc37f6e060c Author: Joe Carnuccio Date: Tue Jan 12 13:02:46 2010 -0800 [SCSI] qla2xxx: Enhance EEH support and enable AER support. qla2xxx: EEH added call to pci_restore_state. qla2xxx: EEH added delay in slot reset routine. qla2xxx: EEH moved call to pci_save_state(), see (1). qla2xxx: EEH additional changes for RHEL5.5. qla2xxx: EEH added function call, removed function call, see (2). (1) In qla2xxx_probe_one the call to pci_save_state() has been moved to after the call to qla2xxx_request_irqs(). (2) Add call to pci_disable_pcie_error_reporting() in remove_one. Delete call to pci_cleanup_aer_uncorrect_error_status() in pci_resume. Signed-off-by: Giridhar Malavali Signed-off-by: James Bottomley commit 9db0fb3aa4cc4e42241e194ef64931321fa72196 Author: Jayamohan Kallickal Date: Tue Jan 5 05:12:43 2010 +0530 [SCSI] be2iscsi: Enable TEXT req resp This patch enables TEXT Request / Response for the driver Signed-off-by: Jayamohan Kallickal Signed-off-by: James Bottomley commit aa874f0738ecac7e5ac13b4d808a1026dcb5367d Author: Jayamohan Kallickal Date: Tue Jan 5 05:12:03 2010 +0530 [SCSI] be2iscsi: Fixing initialization of can_queue This patch fixes can_queue being uninitiallized since it was done before beiscsi_get_params was called. Thanks to Mike Christie for identifying this Signed-off-by: Jayamohan Kallickal Signed-off-by: James Bottomley commit da7408c800e3ae293275f52497d0ef7a9b09c9e4 Author: Jayamohan Kallickal Date: Tue Jan 5 05:11:23 2010 +0530 [SCSI] be2iscsi: The session failure only when Link Goes down This fixes a situation where the sessions were being killed whenever LinkUP is notified rather than LinkDown Signed-off-by: Jayamohan Kallickal Signed-off-by: James Bottomley commit 756d29c8c7ed8887ed7d752371ce2f6d12399267 Author: Jayamohan Kallickal Date: Tue Jan 5 05:10:46 2010 +0530 [SCSI] be2iscsi: Enable async mode for mcc rings This patches enables async mode for mcc rings so that multiple requests can be queued. Signed-off-by: Jayamohan Kallickal Signed-off-by: James Bottomley commit 51a462500fbed4a1e8110dc60a421a3f12b9580b Author: Jayamohan Kallickal Date: Tue Jan 5 05:10:01 2010 +0530 [SCSI] be2iscsi: No requirement for endianess change for data_count This patch removes the endianess change that was wrongly added for data_count Signed-off-by: Jayamohan Kallickal Signed-off-by: James Bottomley commit 0ecb0b45f22df911c564070b64af21db36934f0f Author: Jayamohan Kallickal Date: Tue Jan 5 05:09:19 2010 +0530 [SCSI] be2iscsi: decide which requests need completion This patch decides whether ack based completion is required or not Signed-off-by: Jayamohan Kallickal Signed-off-by: James Bottomley commit d7aea67b8a7665fe5e53cdf59ba76c9b8d67b751 Author: Jayamohan Kallickal Date: Tue Jan 5 05:08:39 2010 +0530 [SCSI] be2iscsi: Use of opcode in beiscsi_alloc_pdu This patch enables use of opcode that is passed in Signed-off-by: Jayamohan Kallickal Signed-off-by: James Bottomley commit 2807afb7411b97834fc7338f3735f3d152443551 Author: Jayamohan Kallickal Date: Tue Jan 5 05:07:49 2010 +0530 [SCSI] be2iscsi:moved pci_set_drvdata to inside beiscsi_hba_alloc This patch moves pci_set_drvdata to inside beiscsi_hba_alloc Signed-off-by: Jayamohan Kallickal Signed-off-by: James Bottomley commit 7bd6e25cdbee7d4f6bc4946dc914310220e637b8 Author: Jayamohan Kallickal Date: Tue Jan 5 05:07:02 2010 +0530 [SCSI] be2iscsi: Added opcode for LOGOUT_RSP, TEXT_RESP, TMFUNC_RSP This patch adds opcodes in thecompletion path that were missed out earlier Signed-off-by: Jayamohan Kallickal Signed-off-by: James Bottomley commit d543148883f65c34e6cd54c5e9ed0592dfbb6acb Author: Jayamohan Kallickal Date: Tue Jan 5 05:06:21 2010 +0530 [SCSI] be2iscsi: Link Wrb with next Wrb This patch will link the current allocated wrb with the next wrb that will be allocated. This is a requirement from the chip. Signed-off-by: Jayamohan Kallickal Signed-off-by: James Bottomley commit c24622886fb934313a2a43ea1f516cbf1ddd947b Author: Jayamohan Kallickal Date: Tue Jan 5 05:05:34 2010 +0530 [SCSI] be2iscsi: Move freeing of resources to stop_conn We need to hold on to ep resources untill invalidate and close connection are completed Signed-off-by: Jayamohan Kallickal Signed-off-by: James Bottomley commit 7da5087971b1a187f92be4efb74a991ac9ccb0a3 Author: Jayamohan Kallickal Date: Tue Jan 5 05:04:12 2010 +0530 [SCSI] be2iscsi: Use start cid and number of cid and icd from FW This patch enablesi be2iscsi to use the start number and number of cids/icd provided by FW rather than hard coded values. Signed-off-by: Jayamohan Kallickal Signed-off-by: James Bottomley commit 1fe6dbf4d0afba52ad0249f398e6296a1433a004 Author: Dave Jones Date: Mon Jan 4 10:19:34 2010 -0500 [SCSI] gdth: Convert to use regular kernel types. converted using this script.. perl -p -i -e 's|ulong32|u32|g' drivers/scsi/gdth* perl -p -i -e 's|ulong64|u64|g' drivers/scsi/gdth* perl -p -i -e 's|ushort|u16|g' drivers/scsi/gdth* perl -p -i -e 's|unchar|u8|g' drivers/scsi/gdth* perl -p -i -e 's|ulong|unsigned long|g' drivers/scsi/gdth* perl -p -i -e 's|PACKED|__attribute__((packed))|g' drivers/scsi/gdth* sha1sum of the generated code was identical before and after. Signed-off-by: Dave Jones Signed-off-by: James Bottomley commit e7efe5932b1d3916c79326a4221693ea90a900e2 Author: Douglas Gilbert Date: Sun Jan 3 13:51:15 2010 -0500 [SCSI] skip sense logging for some ATA PASS-THROUGH cdbs Further to the lsml thread titled: "does scsi_io_completion need to dump sense data for ata pass through (ck_cond = 1) ?" This is a patch to skip logging when the sense data is associated with a SENSE_KEY of "RECOVERED_ERROR" and the additional sense code is "ATA PASS-THROUGH INFORMATION AVAILABLE". This only occurs with the SAT ATA PASS-THROUGH commands when CK_COND=1 (in the cdb). It indicates that the sense data contains ATA registers. Smartmontools uses such commands on ATA disks connected via SAT. Periodic checks such as those done by smartd cause nuisance entries into logs that are: - neither errors nor warnings - pointless unless the cdb that caused them are also logged Signed-off-by: Douglas Gilbert Signed-off-by: James Bottomley commit 5d7ebb9c7a04d29efce1099024944dfd94d9f63c Author: Dan Carpenter Date: Mon Dec 28 20:08:39 2009 +0200 [SCSI] FlashPoint: fix off by one tests The check on MAX_SCSI_TAR should be >= instead of > or we could go past the end of the array. Joe Eykholt aslo correctly points out that the check on MAX_LUN should be >= as well. That matches with how it is used in the rest of the file. Signed-off-by: Dan Carpenter Signed-off-by: James Bottomley commit 0ed8570ef4d51bb46e2028b2e3c3ddd1f860e193 Author: Jiri Slaby Date: Mon Dec 21 16:27:55 2009 -0800 [SCSI] cxgbi3: remove unnecessary NULL test Stanse found that c3cn is poked many times around in cxgb3i_conn_pdu_ready, there is no need to check if it is NULL. Remove the test. Signed-off-by: Jiri Slaby Reviewed-by: Mike Christie Acked-by: Karen Xie Signed-off-by: Andrew Morton Signed-off-by: James Bottomley commit 3dbf6c0012d12473461b7485006db373e8192fa5 Author: Julia Lawall Date: Sat Dec 19 08:17:27 2009 +0100 [SCSI] pm8001: Use kzalloc for allocating only one thing Use kzalloc rather than kcalloc(1,...) The semantic patch that makes this change is as follows: (http://coccinelle.lip6.fr/) // @@ @@ - kcalloc(1, + kzalloc( ...) // Signed-off-by: Julia Lawall Acked-by:Jack Wang Signed-off-by: James Bottomley commit 4ffd005a4dedf536330756742595ec904f740f48 Author: Kashyap, Desai Date: Wed Dec 16 19:04:49 2009 +0530 [SCSI] mptfusion: Bump version 03.04.14 Version upgrade to 3.04.14. Signed-off-by: Kashyap Desai Signed-off-by: James Bottomley commit de81562f2f9852a1f2c609ede1e26c07ed457c60 Author: Kashyap, Desai Date: Wed Dec 16 19:02:59 2009 +0530 [SCSI] mptfusion: corrected if condition check for SCSIIO and PASSTHROUGH commands Modified the function type check to verify it is not MPI_FUNCTION_RAID_SCSI_IO_PASSTHROUGH or MPI_FUNCTION_SCSI_IO_REQUEST. Signed-off-by: Kashyap Desai Signed-off-by: James Bottomley commit 64e155adc250ab68255b761c1faa77799aa1e41a Author: Kashyap, Desai Date: Wed Dec 16 19:02:29 2009 +0530 [SCSI] mptfusion: block device when target is being removed by FW Add support to set the sdev state to SDEV_BLOCK during device removal to stop IOs comming to the deleting driver immediately. Signed-off-by: Kashyap Desai Signed-off-by: James Bottomley commit e0f553ab58f478321717100e44b28f765bd2a045 Author: Kashyap, Desai Date: Wed Dec 16 19:01:58 2009 +0530 [SCSI] mptfusion: Added sysfs expander manufacture information at the time of expander add. Added new function mptsas_exp_manufacture_info, which will obtain the REPORT_MANUFACTURING, and fill the details into the sas_expander_device object when the expander port is created. Signed-off-by: Kashyap Desai Signed-off-by: James Bottomley commit 65f89c2396aa113a06fe7e2f6ba46f0712cb4806 Author: Kashyap, Desai Date: Wed Dec 16 19:01:13 2009 +0530 [SCSI] mptfusion: Added MPI_SCSIIO_CONTROL_HEADOFQ priority There is a 'ioprio' field in the BIO and the Request structure. check this priority field and set MPI_SCSIIO_CONTROL_HEADOFQ to pass down I/O priority. An enhancement to the LSI Disk Array Controller firmware is being developed to look at the Head Of Queue bit to allow I/Os with the HOQ bit set to be processed before I/Os which do not have the HOQ bit set. In order to set the HOQ bit, the mpt fusion driver needs to look at the 'ioprio' field in the request structure associated with the scsi command. Signed-off-by: Kashyap Desai Signed-off-by: James Bottomley commit 02507a80b35edd720480540d917e9f92cc371009 Author: Finn Thain Date: Sat Dec 5 12:30:42 2009 +1100 [SCSI] mac_esp: fix PIO mode, take 2 The mac_esp PIO algorithm no longer works in 2.6.31 and crashes my Centris 660av. So here's a better one. Also, force async with esp_set_offset() rather than esp_slave_configure(). One of the SCSI drives I tested still doesn't like the PIO mode and fails with "esp: esp0: Reconnect IRQ2 timeout" (the same drive works fine in PDMA mode). This failure happens when esp_reconnect_with_tag() tries to read in two tag bytes but the chip only provides one (0x20). I don't know what causes this. I decided not to waste any more time trying to fix it because the best solution is to rip out the PIO mode altogether and use the DMA engine. Signed-off-by: Finn Thain Signed-off-by: James Bottomley commit f2818663c82b7297ff4aa38cbddb870dc02f7104 Author: Hannes Reinecke Date: Tue Dec 15 09:26:06 2009 +0100 [SCSI] scsi_transport_fc: Remove capping from dev_loss_tmo Currently dev_loss_tmo is capped by SCSI_DEVICE_BLOCK_MAX_TIMEOUT. This causes problem with multipathing when the 'no_path_retry' setting exceeds the dev_loss_tmo setting, as then the system might run into a deadlock when all paths have been removed temporarily for longer than dev_loss_tmo. The principal reasons for the capping has been that we should not allow a remote port to remain in status 'blocked' indefinitely, so the capping is there to ensure that the port status is being reset eventually. However, the fast_io_fail_tmo will also move the remote port out of the 'blocked' state, so for any HBA driver implementing both the capping should really be on the fast_io_fail_tmo, and not on the dev_loss_tmo. This patch implements just that, ie the fast_io_fail_tmo is capped to SCSI_DEVICE_BLOCK_TIMEOUT and the capping is removed from dev_loss_tmo when fast_io_fail_tmo is set. This allows us to synchronize the dev_loss_tmo setting to the 'no_path_retry' setting from multipathing thus avoiding the deadlock. Signed-off-by: Hannes Reinecke Acked-by: James Smart Signed-off-by: James Bottomley commit e47c11c7a402a054a85cb917a6ed020f6b5fae04 Author: Erik Ekman Date: Mon Dec 14 21:21:56 2009 +0100 [SCSI] fusion: fix warning when not using procfs Fixes the following warning: drivers/message/fusion/mptbase.c:129: warning: 'mpt_proc_root_dir' defined but not used also moves it from public data section since it is static. Signed-off-by: Erik Ekman Acked-by: "Desai, Kashyap" Signed-off-by: James Bottomley commit 340f052001d46aff9e7e853c492e0d3f5554d42f Author: Roel Kluin Date: Tue Dec 8 14:08:56 2009 -0800 [SCSI] ibmmca: fix buffer overflow Allows i == IM_MAX_HOSTS, which is out of range. Signed-off-by: Roel Kluin Signed-off-by: Andrew Morton Signed-off-by: James Bottomley commit 4a02462af1f4c3498e6a330ffd5c063118309b31 Author: Roel Kluin Date: Tue Dec 8 14:08:59 2009 -0800 [SCSI] u14-34f: fix buffer overflow This allows i == MAX_INT_PARAM, which is out of range for ints[] Signed-off-by: Roel Kluin Signed-off-by: Andrew Morton Signed-off-by: James Bottomley commit 8fe79162a6807bf120140d64e96da54fc273b88b Author: Roel Kluin Date: Tue Dec 8 14:08:57 2009 -0800 [SCSI] eata: fix buffer overflow Allows i == MAX_INT_PARAM, which is out of range. Signed-off-by: Roel Kluin Signed-off-by: Andrew Morton Signed-off-by: James Bottomley commit 9b7dac086bec7c71722d6e79464609e17f0996e7 Author: Bart Van Assche Date: Fri Dec 4 20:43:37 2009 +0100 [SCSI] ibmvscsi: fix a typo in a source code comment Signed-off-by: Bart Van Assche Acked-by: Brian King Signed-off-by: James Bottomley commit 40c4f3e4eaa7eda2b0a00abd4d69778808d26f77 Author: Bart Van Assche Date: Fri Dec 4 20:38:49 2009 +0100 [SCSI] libsrp: fix typo -- replace RDAM by RDMA Fixed a typo in libsrp.c: replaced two occurrences of 'RDAM' by 'RDMA'. Signed-off-by: Bart Van Assche Acked-by: FUJITA Tomonori Signed-off-by: James Bottomley commit e3deec090558d5cb5ffdc574e5560f3ed9723394 Author: James Bottomley Date: Tue Nov 3 12:33:07 2009 -0600 [SCSI] eliminate potential kmalloc failure in scsi_get_vpd_page() The best way to fix this is to eliminate the intenal kmalloc() and make the caller allocate the required amount of storage. Signed-off-by: James Bottomley