summaryrefslogtreecommitdiffstats
path: root/drivers/scsi
Commit message (Collapse)AuthorAgeFilesLines
...
| * | | lpfc: Add support for reporting option_rom_version on newer adaptersJames Smart2015-04-101-1/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Dick Kennedy <dick.kennedy@emulex.com> Signed-off-by: James Smart <james.smart@emulex.com> Reviewed-by: Hannes Reinecke <hare@suse.de> Signed-off-by: James Bottomley <JBottomley@Odin.com>
| * | | lpfc: Fix setting of EQ (interrupt) delay MultiplierJames Smart2015-04-103-7/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Dick Kennedy <dick.kennedy@emulex.com> Signed-off-by: James Smart <james.smart@emulex.com> Reviewed-by: Hannes Reinecke <hare@suse.de> Signed-off-by: James Bottomley <JBottomley@Odin.com>
| * | | lpfc: Fix host reset escalation killing all IOs.James Smart2015-04-103-3/+34
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix host reset escalation killing all IOs. SLI-3 adapters will use a new host template. The template differs from SLI-4 adapters in that it does not have an eh_host_reset_handler. Lpfc has traditionally never had a host_reset. The host reset handler was added when we ran into a stuck hardware condition on a SLI-4 adapter. The host_reset will reset and reinit the pci function, clearing the hardware condition. Unfortunately, the host reset handler uses attach/detach code paths, which makes scsi_add_host() and scsi_remove_host() calls. Meaning, a host_reset will completely remove the scsi_host from the system. As a new call to scsi_add_host() is made, the shost# changes, which results in completely new scsi_devices and device names. All the older scsi devices on the old shost# are now orphaned and unrecoverable. We realize we need to re-implement the host_reset_handler so the scsi_host stays registered across the host_reset, but that will be a rather lengthy effort. In the short term, we had an immediate need to restore the SLI-3 devices to their working behavior, with the easiest path being to remove their host_reset handler. Signed-off-by: Dick Kennedy <dick.kennedy@emulex.com> Signed-off-by: James Smart <james.smart@emulex.com> Reviewed-by: Hannes Reinecke <hare@suse.de> Signed-off-by: James Bottomley <JBottomley@Odin.com>
| * | | lpfc: Linux lpfc driver doesn't re-establish the link after a cable pull on ↵James Smart2015-04-102-6/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | LPe12002 Signed-off-by: Dick Kennedy <dick.kennedy@emulex.com> Signed-off-by: James Smart <james.smart@emulex.com> Reviewed-by: Hannes Reinecke <hare@suse.de> Signed-off-by: James Bottomley <JBottomley@Odin.com>
| * | | lpfc: Fix to handle PLOGI when already logged inJames Smart2015-04-101-3/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Dick Kennedy <dick.kennedy@emulex.com> Signed-off-by: James Smart <james.smart@emulex.com> Reviewed-by: Hannes Reinecke <hare@suse.de> Signed-off-by: James Bottomley <JBottomley@Odin.com>
| * | | lpfc: Add new mbx cmd recognitionJames Smart2015-04-102-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Dick Kennedy <dick.kennedy@emulex.com> Signed-off-by: James Smart <james.smart@emulex.com> Reviewed-by: Hannes Reinecke <hare@suse.de> Signed-off-by: James Bottomley <JBottomley@Odin.com>
| * | | lpfc: Add Lancer Temperature Event support to the lpfc driverJames Smart2015-04-102-55/+125
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This will detect and send an async event if overtemp is detected Signed-off-by: Dick Kennedy <dick.kennedy@emulex.com> Signed-off-by: James Smart <james.smart@emulex.com> Reviewed-by: Hannes Reinecke <hare@suse.de> Signed-off-by: James Bottomley <JBottomley@Odin.com>
| * | | lpfc: Fix the iteration count to match the 30 sec comment in the routine ↵James Smart2015-04-101-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | lpfc_pci_function_reset Signed-off-by: Dick Kennedy <dick.kennedy@emulex.com> Signed-off-by: James Smart <james.smart@emulex.com> Reviewed-by: Hannes Reinecke <hare@suse.de> Signed-off-by: James Bottomley <JBottomley@Odin.com>
| * | | scsi_transport_fc: Add support for 25Gbit speedJames Smart2015-04-101-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: James Smart <james.smart@emulex.com> Reviewed-by: Hannes Reinecke <hare@suse.de> Reviewed-by: Ewan D. Milne <emilne@redhat.com> Signed-off-by: James Bottomley <JBottomley@Odin.com>
| * | | aha1542: remove loop from aha1542_outbOndrej Zary2015-04-091-8/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The loop in aha1542_outb with double-check is no longer needed, remove it. Signed-off-by: Ondrej Zary <linux@rainbow-software.org> Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: James Bottomley <JBottomley@Odin.com>
| * | | aha1542: Fix bus resetOndrej Zary2015-04-091-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bus reset always fails because aha1542_reset waits for the controller to assert the INIT bit (Mailbox Initialization Required) which it never does. This bit is asserted only after host reset. Remove the requirement for INIT bit (we really need only the IDLE bit). Signed-off-by: Ondrej Zary <linux@rainbow-software.org> Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: James Bottomley <JBottomley@Odin.com>
| * | | aha1542: rework lockingOndrej Zary2015-04-091-84/+34
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Remove aha1542_lock and use host_lock instead. Remove interrupt and queuecommand function wrappers. Remove locking from lowlevel _out and _in functions, they now can onle be called (at runtime) with host_lock being held. Remove ssleep(4) in aha1542_reset as we can't sleep while holding a spinlock. It's useless anyway as wait_mask will wait until the controller is idle and kernel waits for 10 seconds (HOST_RESET_SETTLE_TIME) after that. Signed-off-by: Ondrej Zary <linux@rainbow-software.org> Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: James Bottomley <JBottomley@Odin.com>
| * | | aha1542: Don't reduce functionality with DEBUG enabledOndrej Zary2015-04-091-21/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Enabling DEBUG disables write commands and devices with ID > 1. Remove this "feature" to allow real debugging. Signed-off-by: Ondrej Zary <linux@rainbow-software.org> Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: James Bottomley <JBottomley@Odin.com>
| * | | aha1542: Use print_hex_dump_bytes in debug codeOndrej Zary2015-04-091-26/+8
| | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Ondrej Zary <linux@rainbow-software.org> Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: James Bottomley <JBottomley@Odin.com>
| * | | aha1542: remove DEB macro and simplify debug codeOndrej Zary2015-04-091-34/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Remove DEB macro and join ifdef DEBUG blocks Signed-off-by: Ondrej Zary <linux@rainbow-software.org> Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: James Bottomley <JBottomley@Odin.com>
| * | | aha1542: Use shost_printk instead of printkOndrej Zary2015-04-091-35/+32
| | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Ondrej Zary <linux@rainbow-software.org> Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: James Bottomley <JBottomley@Odin.com>
| * | | aha1542: Change aha1542_set_bus_times parametersOndrej Zary2015-04-091-18/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Pass struct Scsi_Host *sh and dma parameters instead of index to aha1542_set_bus_times. This is required for printk conversion. Signed-off-by: Ondrej Zary <linux@rainbow-software.org> Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: James Bottomley <JBottomley@Odin.com>
| * | | aha1542: Pass struct Scsi_Host * to functionsOndrej Zary2015-04-091-62/+63
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Pass struct Scsi_Host * to functions instead of base address. This reduces the number of parameters and is also required for printk conversion. Signed-off-by: Ondrej Zary <linux@rainbow-software.org> Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: James Bottomley <JBottomley@Odin.com>
| * | | aha1542: cleanup includesOndrej Zary2015-04-091-8/+3
| | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Ondrej Zary <linux@rainbow-software.org> Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: James Bottomley <JBottomley@Odin.com>
| * | | aha1542: remove useless changelogOndrej Zary2015-04-091-22/+3
| | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Ondrej Zary <linux@rainbow-software.org> Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: James Bottomley <JBottomley@Odin.com>
| * | | aha1542: fix include guard and remove useless changelogOndrej Zary2015-04-091-33/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix include guard in header file and remove useless changelog Signed-off-by: Ondrej Zary <linux@rainbow-software.org> Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: James Bottomley <JBottomley@Odin.com>
| * | | aha1542: Always name Scsi_Host variables shOndrej Zary2015-04-091-49/+49
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Make Scsi_Host variable names consistent - use sh everywhere. Signed-off-by: Ondrej Zary <linux@rainbow-software.org> Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: James Bottomley <JBottomley@Odin.com>
| * | | aha1524: Use struct scsi_cmndOndrej Zary2015-04-091-75/+75
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Use struct scsi_cmnd instead of Scsi_Cmnd and also rename the variables to get rid of SC prefix Signed-off-by: Ondrej Zary <linux@rainbow-software.org> Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: James Bottomley <JBottomley@Odin.com>
| * | | aha1542: clean up cmd variablesOndrej Zary2015-04-091-29/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Make sure that there's no variable named cmd Signed-off-by: Ondrej Zary <linux@rainbow-software.org> Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: James Bottomley <JBottomley@Odin.com>
| * | | aha1542: Simplify aha1542_biosparamOndrej Zary2015-04-091-13/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Simplify aha1542_biosparam, use sector_div, remove unused BIOS_TRANSLATION_1632. Signed-off-by: Ondrej Zary <linux@rainbow-software.org> Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: James Bottomley <JBottomley@Odin.com>
| * | | aha1542: rework configuration parametersOndrej Zary2015-04-091-159/+54
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Remove __setup and introduce separate io, bus_on, bus_off and dma_speed module parameters. Signed-off-by: Ondrej Zary <linux@rainbow-software.org> Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: James Bottomley <JBottomley@Odin.com>
| * | | aha1542: rework hw_initOndrej Zary2015-04-092-81/+59
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Cleanup hw_init, use goto for error handling. Signed-off-by: Ondrej Zary <linux@rainbow-software.org> Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: James Bottomley <JBottomley@Odin.com>
| * | | aha1542: Call wait_mask from aha1542_outOndrej Zary2015-04-091-10/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | aha1542_out call is always followed by wait_mask. Move the call into aha1542_out to simplify code. Signed-off-by: Ondrej Zary <linux@rainbow-software.org> Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: James Bottomley <JBottomley@Odin.com>
| * | | aha1542: split out code from aha1542_hw_initOndrej Zary2015-04-091-30/+35
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Split out bus times related block of aha1542_hw_init into separate function aha1542_set_bus_times. Signed-off-by: Ondrej Zary <linux@rainbow-software.org> Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: James Bottomley <JBottomley@Odin.com>
| * | | aha1542: Merge aha1542_host_reset and aha1542_bus_resetOndrej Zary2015-04-091-68/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | aha1542_host_reset and aha1542_bus_reset are almost same, merge them into aha1542_reset Signed-off-by: Ondrej Zary <linux@rainbow-software.org> Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: James Bottomley <JBottomley@Odin.com>
| * | | aha1542: Remove aha1542_restartOndrej Zary2015-04-091-26/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | aha1542_restart does nothing (except useless printk), remove it Signed-off-by: Ondrej Zary <linux@rainbow-software.org> Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: James Bottomley <JBottomley@Odin.com>
| * | | aha1542: remove useless code from aha1542_test_portOndrej Zary2015-04-091-14/+1
| | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Ondrej Zary <linux@rainbow-software.org> Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: James Bottomley <JBottomley@Odin.com>
| * | | aha1542: Remove unneeded gotosOndrej Zary2015-04-091-39/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Remove gotos that are no longer needed. Signed-off-by: Ondrej Zary <linux@rainbow-software.org> Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: James Bottomley <JBottomley@Odin.com>
| * | | aha1542: Split aha1542_outOndrej Zary2015-04-091-40/+35
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | aha1542_out are in fact two separate functions. Split them into aha1542_out and aha1542_outb to simplify the code. Signed-off-by: Ondrej Zary <linux@rainbow-software.org> Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: James Bottomley <JBottomley@Odin.com>
| * | | aha1542: Unify aha1542_in and aha1542_in1Ondrej Zary2015-04-091-26/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Unify aha1542_in and aha1542_in1 functions, they differ only in timeout and printk. Signed-off-by: Ondrej Zary <linux@rainbow-software.org> Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: James Bottomley <JBottomley@Odin.com>
| * | | aha1542: Remove WAIT and WAITd macrosOndrej Zary2015-04-091-47/+57
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Convert the ugly WAIT and WAITd macros into wait_mask function. Signed-off-by: Ondrej Zary <linux@rainbow-software.org> Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: James Bottomley <JBottomley@Odin.com>
| * | | aha1542: Use BIT() macroOndrej Zary2015-04-091-18/+19
| | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Ondrej Zary <linux@rainbow-software.org> Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: James Bottomley <JBottomley@Odin.com>
| * | | aha1542: remove empty aha1542_statOndrej Zary2015-04-091-15/+1
| | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Ondrej Zary <linux@rainbow-software.org> Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: James Bottomley <JBottomley@Odin.com>
| * | | aha1542: Reorder functions to remove forward declarationsOndrej Zary2015-04-092-39/+24
| | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Ondrej Zary <linux@rainbow-software.org> Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: James Bottomley <JBottomley@Odin.com>
| * | | aha1542: Use u8 instead of uncharOndrej Zary2015-04-092-46/+46
| | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Ondrej Zary <linux@rainbow-software.org> Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: James Bottomley <JBottomley@Odin.com>
| * | | aha1542: Convert aha1542_intr_reset to functionOndrej Zary2015-04-091-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Convert aha1542_intr_reset macro to inline function Signed-off-by: Ondrej Zary <linux@rainbow-software.org> Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: James Bottomley <JBottomley@Odin.com>
| * | | aha1542: Remove HOSTDATA macroOndrej Zary2015-04-091-59/+55
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Remove HOSTDATA macro and use shost_priv instead Signed-off-by: Ondrej Zary <linux@rainbow-software.org> Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: James Bottomley <JBottomley@Odin.com>
| * | | aha1542: Remove SCSI_BUF_PA, SCSI_SG_PA, AHA1542_SCATTER and AHA1542_CMDLUNOndrej Zary2015-04-092-15/+10
| | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Ondrej Zary <linux@rainbow-software.org> Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: James Bottomley <JBottomley@Odin.com>
| * | | aha1542: remove dead codeOndrej Zary2015-04-092-248/+1
| | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Ondrej Zary <linux@rainbow-software.org> Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: James Bottomley <JBottomley@Odin.com>
| * | | aha1542: Stop using scsi_module.cOndrej Zary2015-04-092-133/+169
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Convert aha1542 to use scsi_add_host instead of scsi_module.c Use pnp_driver and isa_driver to manage cards. Signed-off-by: Ondrej Zary <linux@rainbow-software.org> Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: James Bottomley <JBottomley@Odin.com>
| * | | aacraid: driver version changeMahesh Rajashekhara2015-04-092-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Mahesh Rajashekhara <Mahesh.Rajashekhara@pmcs.com> Reviewed-by: Hannes Reinecke <hare@suse.de> Reviewed-by: Murthy Bhat <Murthy.Bhat@pmcs.com> Signed-off-by: James Bottomley <JBottomley@Odin.com>
| * | | aacraid: AIF raw device remove supportMahesh Rajashekhara2015-04-092-0/+36
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Mahesh Rajashekhara <Mahesh.Rajashekhara@pmcs.com> Reviewed-by: Hannes Reinecke <hare@suse.de> Reviewed-by: Murthy Bhat <Murthy.Bhat@pmcs.com> Signed-off-by: James Bottomley <JBottomley@Odin.com>
| * | | aacraid: performance improvement changesMahesh Rajashekhara2015-04-097-58/+57
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Mahesh Rajashekhara <Mahesh.Rajashekhara@pmcs.com> Reviewed-by: Hannes Reinecke <hare@suse.de> Reviewed-by: Murthy Bhat <Murthy.Bhat@pmcs.com> Signed-off-by: James Bottomley <JBottomley@Odin.com>
| * | | aacraid: IOCTL fixMahesh Rajashekhara2015-04-093-1/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | After getting the platform shutdown command "VM_CloseAll" response from the firmware, driver was getting configuration IOCTL request from the upper layers and it sends down to firmware. This causes firmware assert issue. This patch fixes the firmware assert issue. During the shutdown, if driver gets commands from the upper layer, driver sends error code to the upper layers. Signed-off-by: Mahesh Rajashekhara <Mahesh.Rajashekhara@pmcs.com> Reviewed-by: Hannes Reinecke <hare@suse.de> Reviewed-by: Murthy Bhat <Murthy.Bhat@pmcs.com> Signed-off-by: James Bottomley <JBottomley@Odin.com>
| * | | aacraid: IOP RESET command handling changesMahesh Rajashekhara2015-04-093-10/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch fixes the IOP_RESET issue. Sending IOP_RESET command need to wait for only 10 sec instead of 5 minutes in case of firmware does not response IOP_RESET command. Disable interrupt before setup interrupt routine to prevent spurious interrupts. Signed-off-by: Mahesh Rajashekhara <Mahesh.Rajashekhara@pmcs.com> Reviewed-by: Hannes Reinecke <hare@suse.de> Reviewed-by: Murthy Bhat <Murthy.Bhat@pmcs.com> Signed-off-by: James Bottomley <JBottomley@Odin.com>
OpenPOWER on IntegriCloud