aboutsummaryrefslogtreecommitdiff
path: root/drivers/scsi
AgeCommit message (Collapse)AuthorFilesLines
2006-07-12[SCSI] NCR_D700: misc fixes (section and argument ordering)James Bottomley1-7/+7
Apparently the D700 has had an argument ordering issue for quite a while which can cause it to get the wrong scsi_id (I just got an unbootable voyager system because of this). Hopefully this patch also fixes up all the sectional mismatches within the driver. Signed-off-by: James Bottomley <[email protected]>
2006-07-12[SCSI] scsi_debug: must_check fixesRandy Dunlap1-18/+54
Check all __must_check warnings in scsi_debug. Signed-off-by: Randy Dunlap <[email protected]> Signed-off-by: Douglas Gilbert <[email protected]> Signed-off-by: James Bottomley <[email protected]>
2006-07-12[SCSI] scsi_transport_sas: kill the use of channel James Bottomley1-5/+3
Using the port_id for the channel is completely unnecessary since the host_id/target_id are constructed to be globally unique. Also move the mptsas driver on to virtual channel 1 for its raid devices. Acked-by: "Moore, Eric" <[email protected]> Signed-off-by: James Bottomley <[email protected]>
2006-07-12[SCSI] scsi_transport_sas: add expander backlinkJames Bottomley1-0/+20
This patch adds the ability to add a backlink to a particular port. The idea is to represent properly ports on expanders that are used specifically for linking to the parent device in the topology. Signed-off-by: James Bottomley <[email protected]>
2006-07-10[PATCH] FDPIC: Move roundup() into linux/kernel.hDavid Howells1-1/+0
Move the roundup() macro from binfmt_elf.c into linux/kernel.h as it's generally useful. [[email protected]: nuke all the other implementations] Signed-off-by: David Howells <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
2006-07-09[SCSI] hide EH backup data outside the scsi_cmndChristoph Hellwig7-224/+108
Currently struct scsi_cmnd has various fields that are used to backup original data after the corresponding fields have been overridden for EH commands. This means drivers can easily get at it and misuse it. Due to the old_ naming this doesn't happen for most of them, but two that have different names have been used wrong a lot (see previous patch). Another downside is that they unessecarily bloat the scsi_cmnd size. This patch moves them onstack in scsi_send_eh_cmnd to fix those two issues aswell as allowing future EH fixes like moving the EH command submissions to use SG lists like everything else. Signed-off-by: Christoph Hellwig <[email protected]> Signed-off-by: James Bottomley <[email protected]>
2006-07-09[SCSI] ibmvscsi: handle inactive SCSI target during probeDave C Boutcher1-0/+1
Without this patch we register an interrupt with request_irq, but then return a bad return code from the module probe. Signed-off-by: James Bottomley <[email protected]>
2006-07-09[SCSI] ibmvscsi: allocate lpevents for ibmvscsi on iseriesDave C Boutcher1-1/+1
Allocate the correct number of lp events when running ibmvscsi on legacy iseries Signed-off-by: Dave Boutcher <[email protected]> Signed-off-by: James Bottomley <[email protected]>
2006-07-09[SCSI] aic7[9x]xx: Remove last vestiges of reverse_scanMatthew Wilcox2-22/+0
Remove last vestiges of the reverse_scan paramater from aic7xxx and aic79xx. Signed-off-by: Matthew Wilcox <[email protected]> Signed-off-by: James Bottomley <[email protected]>
2006-07-09[SCSI] aha152x: stop poking at saved scsi_cmnd membersChristoph Hellwig1-6/+23
Stop poking into the old_ & co scsi_cmnd fields that should only be used in the EH code. Untested, but this is required to move ahead with the EH fixes. Signed-off-by: Christoph Hellwig <[email protected]> Signed-off-by: James Bottomley <[email protected]>
2006-07-09[SCSI] st.c: Improve sense outputLuben Tuikov1-4/+3
Convert this: st0: Error with sense data: <6>st: Current: sense key: Illegal Request Additional sense: Invalid field in cdb To this: st0: Current: sense key: Illegal Request Additional sense: Invalid field in cdb Signed-off-by: Luben Tuikov <[email protected]> Acked-by: Kai Makisara <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: James Bottomley <[email protected]>
2006-07-09[SCSI] lpfc 8.1.7: Change version number to 8.1.7James Smart1-1/+1
Change version number to 8.1.7 Signed-off-by: James Smart <[email protected]> Signed-off-by: James Bottomley <[email protected]>
2006-07-09[SCSI] lpfc 8.1.7: Misc FixesJames Smart3-13/+17
Misc Fixes: - Fix some sparse warnings - casts of address space - Fix handling of the adapter registration string. Each invocation was byteswapping, so every other adapter init attempt failed. - Correct comments and default value for the lpfc_max_luns parameter Signed-off-by: James Smart <[email protected]> Signed-off-by: James Bottomley <[email protected]>
2006-07-09[SCSI] lpfc 8.1.7: Add lpfc_sli_flush_mbox_queue() functionJames Smart3-1/+21
Add lpfc_sli_flush_mbox_queue() function and use it in lpfc_offline() call to avoid deadlock on thread block. Signed-off-by: James Smart <[email protected]> Signed-off-by: James Bottomley <[email protected]>
2006-07-09[SCSI] lpfc 8.1.7: Correct the wait in attachment that delays for topology ↵James Smart1-10/+14
discovery Correct the wait in attachment that delays for topology discovery Signed-off-by: James Smart <[email protected]> Signed-off-by: James Bottomley <[email protected]>
2006-07-09[SCSI] lpfc 8.1.7: Remove depricated sysfs attribute board_onlineJames Smart1-42/+0
Remove depricated sysfs attribute board_online, as it's replaced by the new issue_reset attribute Signed-off-by: James Smart <[email protected]> Signed-off-by: James Bottomley <[email protected]>
2006-07-09[SCSI] lpfc 8.1.7: Adding new issue_reset sysfs attributeJames Smart1-0/+43
Adding new issue_reset sysfs attribute Signed-off-by: James Smart <[email protected]> Signed-off-by: James Bottomley <[email protected]>
2006-07-09[SCSI] lpfc 8.1.7: Fix panic in lpfc_sli_validate_fcp_iocbJames Smart1-10/+12
Fix panic in lpfc_sli_validate_fcp_iocb due to access of scsi_cmnd after returning it to the midlayer Signed-off-by: James Smart <[email protected]> Signed-off-by: James Bottomley <[email protected]>
2006-07-09[SCSI] lpfc 8.1.7: Consolidate dma buf cleanup into a separate functionJames Smart1-16/+24
Consolidate dma buf cleanup into a separate function Signed-off-by: James Smart <[email protected]> Signed-off-by: James Bottomley <[email protected]>
2006-07-09[SCSI] lpfc 8.1.7: Correct bogus nodev_tmo message on NPort that changes its ↵James Smart1-24/+34
NPort Id Correct bogus nodev_tmo message on NPort that changes its NPort Id Signed-off-by: James Smart <[email protected]> Signed-off-by: James Bottomley <[email protected]>
2006-07-09[SCSI] lpfc 8.1.7: Fix txcmplq related panics on heavy IO while downloading ↵James Smart1-7/+17
firmware Fix txcmplq related panics on heavy IO while downloading firmware Signed-off-by: James Smart <[email protected]> Signed-off-by: James Bottomley <[email protected]>
2006-07-09[SCSI] lpfc 8.1.7: Issue DOWN_LINK prior to INIT_LINK to work around link ↵James Smart1-1/+11
failure issue Issue DOWN_LINK prior to INIT_LINK to work around link failure issue Signed-off-by: James Smart <[email protected]> Signed-off-by: James Bottomley <[email protected]>
2006-07-09[SCSI] lpfc 8.1.7: Fixed infinite retry of REG_LOGIN mailbox failed due to ↵James Smart1-0/+11
MBXERR_RPI_FULL Fixed infinite retry of REG_LOGIN mailbox failed due to MBXERR_RPI_FULL Signed-off-by: James Smart <[email protected]> Signed-off-by: James Bottomley <[email protected]>
2006-07-09[SCSI] lpfc 8.1.7: Fix memory leak and cleanup code related to per ring ↵James Smart3-27/+5
lookup array Fix memory leak and cleanup code related to per ring lookup array. Signed-off-by: James Smart <[email protected]> Signed-off-by: James Bottomley <[email protected]>
2006-07-09[SCSI] lpfc 8.1.7: Standardize the driver on a single define for the maximum ↵James Smart3-7/+8
supported targets Standardize the driver on a single define for the maximum supported targets. Signed-off-by: James Smart <[email protected]> Signed-off-by: James Bottomley <[email protected]>
2006-07-09[SCSI] lpfc 8.1.7: Use mod_timer instead of add_timer in ↵James Smart1-4/+3
lpfc_els_timeout_handler Use mod_timer instead of add_timer in lpfc_els_timeout_handler This patch was formerly posted by Mark Haverkamp. http://marc.theaimsgroup.com/?l=linux-scsi&m=114246089015681&w=2 Signed-off-by: Mark Haverkamp <[email protected]> Signed-off-by: James Smart <[email protected]> Signed-off-by: James Bottomley <[email protected]>
2006-07-09[SCSI] update additional sense codes and some opcode namesDouglas Gilbert1-38/+88
Following on from my post titled: "additional sense codes need update" see the attachment against lk 2.6.17 . ChangeLog: - update additional sense codes table to agree with SPC-4 revision 5a (14 June 2006) - adjust some of the opcode names Signed-off-by: Douglas Gilbert <[email protected]> Signed-off-by: James Bottomley <[email protected]>
2006-07-09[SCSI] scsi_transport_sas: add unindexed portsJames Bottomley1-1/+35
Some SAS HBAs don't want to go to the trouble of tracking port numbers, so they'd simply like to say "add this port and give it a number". This is especially beneficial from the hotplug point of view, since tracking ports and the available number space can be a real pain. The current implementation uses an incrementing number per expander to add the port on. However, since there can never be more ports than there are phys, a later implementation will try to be more intelligent about this. Signed-off-by: James Bottomley <[email protected]>
2006-07-09[SCSI] aic79xx: make ahd_done_with_status() staticAdrian Bunk1-1/+1
This patch makes a needlessly global function static. Signed-off-by: Adrian Bunk <[email protected]> Acked-by: Hannes Reinecke <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: James Bottomley <[email protected]>
2006-07-05[PATCH] ahci: Ensure that we don't grab both functionsroot1-4/+11
When we force the chip into dual fn mode so we get PATA and AHCI we must be sure we don't then do anything dumb like try and grab both with the AHCI driver. Signed-off-by: Alan Cox <[email protected]> Signed-off-by: Jeff Garzik <[email protected]>
2006-07-05[PATCH] libata-core.c: restore configuration boot messages in ↵Borislav Petkov1-5/+5
ata_dev_configure(), v2 This one looks better, IMHO. This restores the default libata configuration messages printed during booting. Signed-off-by: <[email protected]> Signed-off-by: Jeff Garzik <[email protected]>
2006-07-05[PATCH] sata_sil24: add suspend/sleep supportTejun Heo1-0/+25
Add suspend/sleep support. Signed-off-by: Tejun Heo <[email protected]> Signed-off-by: Jeff Garzik <[email protected]>
2006-07-05[PATCH] sata_sil24: separate out sil24_init_controller()Tejun Heo1-45/+62
Separate out controller initialization from sil24_init_one() into sil24_init_controller(). This will be used by resume. Signed-off-by: Tejun Heo <[email protected]> Signed-off-by: Jeff Garzik <[email protected]>
2006-07-05[PATCH] sata_sil: add suspend/sleep supportTejun Heo1-0/+17
Add suspend/sleep support. Signed-off-by: Tejun Heo <[email protected]> Signed-off-by: Jeff Garzik <[email protected]>
2006-07-05[PATCH] sata_sil: separate out sil_init_controller()Tejun Heo1-38/+48
Separate out controller initialization from sil_init_one() into sil_init_controller(). This will be used by resume. Signed-off-by: Tejun Heo <[email protected]> Signed-off-by: Jeff Garzik <[email protected]>
2006-07-05[PATCH] libata: reimplement controller-wide PMTejun Heo2-7/+286
Reimplement controller-wide PM. ata_host_set_suspend/resume() are defined to suspend and resume a host_set. While suspended, EHs for all ports in the host_set are pegged using ATA_FLAG_SUSPENDED and frozen. Because SCSI device hotplug is done asynchronously against the rest of libata EH and the same mutex is used when adding new device, suspend cannot wait for hotplug to complete. So, if SCSI device hotplug is in progress, suspend fails with -EBUSY. In most cases, host_set resume is followed by device resume. As each resume operation requires a reset, a single host_set-wide resume operation may result in multiple resets. To avoid this, resume waits upto 1 second giving PM to request resume for devices. Signed-off-by: Tejun Heo <[email protected]> Signed-off-by: Jeff Garzik <[email protected]>
2006-07-05[PATCH] libata: reimplement per-dev PMTejun Heo2-90/+115
Reimplement per-dev PM. The original implementation directly put the device into suspended mode and didn't synchronize w/ EH operations including hotplug. This patch reimplements ata_scsi_device_suspend() and ata_scsi_device_resume() such that they request EH to perform the respective operations. Both functions synchronize with hotplug such that it doesn't operate on detached devices. Suspend waits for completion but resume just issues request and returns. This allows parallel wake up of devices and thus speeds up system resume. Due to sdev detach synchronization, it's not feasible to separate out EH requesting from sdev handling; thus, ata_device_suspend/resume() are removed and everything is implemented in the respective libata-scsi functions. Signed-off-by: Tejun Heo <[email protected]> Signed-off-by: Jeff Garzik <[email protected]>
2006-07-05[PATCH] libata: implement PM EH actionsTejun Heo2-3/+187
Implement two PM per-dev EH actions - ATA_EH_SUSPEND and ATA_EH_RESUME. Each action puts the target device into suspended mode and resumes from it respectively. Once a device is put to suspended mode, no EH operations other than RESUME is allowed on the device. The device will stay suspended till it gets resumed and thus reset and revalidated. To implement this, a new device state helper - ata_dev_ready() - is implemented and used in EH action implementations to make them operate only on attached & running devices. If all possible devices on a port are suspended, reset is skipped too. This prevents spurious events including hotplug events from disrupting suspended devices. Signed-off-by: Tejun Heo <[email protected]> Signed-off-by: Jeff Garzik <[email protected]>
2006-07-05[PATCH] libata: implement ATA_EHI_NO_AUTOPSY and QUIETTejun Heo2-16/+21
Implement ATA_EHI_NO_AUTOPSY and QUIET. These used to be implied by ATA_PFLAG_LOADING, but new power management and PMP support need to use these separately. e.g. Suspend/resume operations shouldn't print full EH messages and resume shouldn't be recorded as an error. Signed-off-by: Tejun Heo <[email protected]> Signed-off-by: Jeff Garzik <[email protected]>
2006-07-05[PATCH] libata: clean up debounce parameters and improve parameter selectionTejun Heo2-15/+12
The names of predefined debounce timing parameters didn't exactly match their usages. Rename to more generic names and implement param selection helper sata_ehc_deb_timing() which uses EHI_HOTPLUGGED to select params. Combined with the previous EHI_RESUME_LINK differentiation, this makes parameter selection accurate. e.g. user scan resumes link but normal deb param is used instead of hotplug param. Signed-off-by: Tejun Heo <[email protected]> Signed-off-by: Jeff Garzik <[email protected]>
2006-07-05[PATCH] libata: implement ATA_EHI_RESUME_LINKTejun Heo2-7/+9
Implement ATA_EHI_RESUME_LINK, which indicates that the link needs to be resumed. This used to be implied by ATA_EHI_HOTPLUGGED. However, hotplug isn't the only event which requires link resume and separating this out allows other places to request link resume. This differentiation also allows better debounce timing selection. This patch converts user scan to use ATA_EHI_RESUME_LINK. Signed-off-by: Tejun Heo <[email protected]> Signed-off-by: Jeff Garzik <[email protected]>
2006-07-05[PATCH] libata: replace ap_lock w/ ap->lock in ata_scsi_error()Tejun Heo1-12/+11
ap_lock was used because &ap->host_set->lock was too long and used a lot. Now that &ap->host_set->lock is replaced with ap->lock, there's no reason to keep ap_lock. [ed. note: that's not entirely true. ap_lock is a local variable, caching the results of a de-ref. In theory, if the compiler is smart enough, this patch is cosmetic. However, since this is not a fast path (it is the error path), this patch is nonetheless acceptable, even though it _may_ introduce a performance regression.] Signed-off-by: Tejun Heo <[email protected]> Signed-off-by: Jeff Garzik <[email protected]>
2006-07-05[PATCH] libata: fix ehc->i.action setting in ata_eh_autopsy()Tejun Heo1-1/+1
ata_eh_autopsy() used to directly assign determined action mask to ehc->i.action thus overriding actions set by some of nested analyze functions. This patch makes ata_eh_autopsy() add action masks just as it's done in other places. Signed-off-by: Tejun Heo <[email protected]> Signed-off-by: Jeff Garzik <[email protected]>
2006-07-05[PATCH] libata: add ap->pflags and move core dynamic flags to itTejun Heo5-40/+40
ap->flags is way too clamped. Separate out core dynamic flags to ap->pflags. ATA_FLAG_DISABLED is a dynamic flag but left alone as it's referenced by a lot of LLDs and it's gonna be removed once all LLDs are converted to new EH. Signed-off-by: Tejun Heo <[email protected]> Signed-off-by: Jeff Garzik <[email protected]>
2006-07-05[PATCH] libata: Conditionally set host->max_cmd_lenBrian King1-6/+15
In preparation for SAS attached SATA devices, which will not have a libata scsi_host, only setup host->max_cmd_len if ap->host exists. Signed-off-by: Brian King <[email protected]> Signed-off-by: Jeff Garzik <[email protected]>
2006-07-05[PATCH] sata_vsc: data_xfer should use mmioMartin Hicks1-1/+1
Hi, sata_vsc is an MMIO device, and should use the correct data_xfer function. This problem was introduced by: commit a6b2c5d4754dc539a560fdf0d3fb78a14174394a Author: Alan Cox <[email protected]> Date: Mon May 22 16:59:59 2006 +0100 [PATCH] PATCH: libata. Add ->data_xfer method Signed-off-by: Martin Hicks <[email protected]> Signed-off-by: Jeff Garzik <[email protected]>
2006-07-03Merge master.kernel.org:/pub/scm/linux/kernel/git/jejb/scsi-misc-2.6Linus Torvalds51-2222/+3157
* master.kernel.org:/pub/scm/linux/kernel/git/jejb/scsi-misc-2.6: (57 commits) [SCSI] fix error handling in scsi_io_completion [SCSI] qla1280: fix section mismatch warnings [SCSI] mptsas: eliminate ghost devices [SCSI] qla2xxx: make some more functions static [SCSI] small whitespace cleanup for qlogic driver [SCSI] mptbase: mpt_interrupt should return IRQ_NONE [SCSI] mptsas: make two functions static [SCSI] sg.c: Fix bad error handling in [SCSI] 53c700: fix breakage caused by the autosense update [SCSI] iscsi: add async notification of session events [SCSI] iscsi: pass target nr to session creation [SCSI] iscsi: break up session creation into two stages [SCSI] iscsi: rm channel usage from iscsi [SCSI] iscsi: fix session refcouting [SCSI] iscsi: convert iscsi_tcp to new set/get param fns [SCSI] iscsi: convert iser to new set/get param fns [SCSI] iscsi: fixup set/get param functions [SCSI] iscsi: add target discvery event to transport class [SCSI] st: remove unused st_buffer.in_use [SCSI] atp870u: reduce huge stack usage ...
2006-07-03[PATCH] lockdep: annotate on-stack completionsIngo Molnar1-1/+1
lockdep needs to have the waitqueue lock initialized for on-stack waitqueues implicitly initialized by DECLARE_COMPLETION(). Annotate on-stack completions accordingly. Has no effect on non-lockdep kernels. Signed-off-by: Ingo Molnar <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
2006-07-03Merge ../scsi-misc-2.6James Bottomley51-2222/+3157
Conflicts: drivers/scsi/nsp32.c drivers/scsi/pcmcia/nsp_cs.c Removal of randomness flag conflicts with SA_ -> IRQF_ global replacement. Signed-off-by: James Bottomley <[email protected]>
2006-07-02[PATCH] irq-flags: scsi: Use the new IRQF_ constantsThomas Gleixner84-108/+108
Signed-off-by: Thomas Gleixner <[email protected]> Cc: Ingo Molnar <[email protected]> Cc: "David S. Miller" <[email protected]> Cc: Benjamin Herrenschmidt <[email protected]> Cc: James Bottomley <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>