James Smart
28d7f3dfda
lpfc: Fix ExpressLane priority setup
...
Fix ExpressLane priority setup
Signed-off-by: James Smart <james.smart@emulex.com >
Reviewed-By: Dick Kennedy <dick.kennedy@emulex.com >
Signed-off-by: Christoph Hellwig <hch@lst.de >
2014-06-02 18:30:18 +02:00
James Smart
68e814f587
lpfc: Fix for cleaning up stale ring flag and sp_queue_event entries
...
Fix for cleaning up stale ring flag and sp_queue_event entries.
Signed-off-by: James Smart <james.smart@emulex.com >
Reviewed-By: Dick Kennedy <dick.kennedy@emulex.com >
Signed-off-by: Christoph Hellwig <hch@lst.de >
2014-06-02 18:29:49 +02:00
James Smart
16a59fb36f
lpfc: Update Copyright on changed files
...
Update Copyright on changed files
Signed-off-by: James Smart <james.smart@emulex.com >
Reviewed-By: Dick Kennedy <dick.kennedy@emulex.com >
Signed-off-by: Christoph Hellwig <hch@lst.de >
2014-06-02 18:29:05 +02:00
James Smart
98912dda4d
lpfc: Fixed locking for scsi task management commands
...
Fixed locking for scsi task management commands.
Signed-off-by: James Smart <james.smart@emulex.com >
Reviewed-By: Dick Kennedy <dick.kennedy@emulex.com >
Signed-off-by: Christoph Hellwig <hch@lst.de >
2014-06-02 18:29:01 +02:00
James Smart
f38fa0bb7c
lpfc: Convert runtime references to old xlane cfg param to fof cfg param
...
Convert runtime references to old xlane cfg param to fof cfg param
Signed-off-by: James Smart <james.smart@emulex.com >
Reviewed-By: Dick Kennedy <dick.kennedy@emulex.com >
Signed-off-by: Christoph Hellwig <hch@lst.de >
2014-06-02 18:28:57 +02:00
James Smart
0293635ef6
lpfc: Fix FW dump using sysfs
...
Fix FW dump using sysfs
Signed-off-by: James Smart <james.smart@emulex.com >
Reviewed-By: Dick Kennedy <dick.kennedy@emulex.com >
Signed-off-by: Christoph Hellwig <hch@lst.de >
2014-06-02 18:28:52 +02:00
James Smart
db55fba8dc
lpfc: Fix SLI4 s abort loop to process all FCP rings and under ring_lock
...
Fix SLI4 s abort loop to process all FCP rings and under ring_lock
Signed-off-by: James Smart <james.smart@emulex.com >
Reviewed-By: Dick Kennedy <dick.kennedy@emulex.com >
Signed-off-by: Christoph Hellwig <hch@lst.de >
2014-06-02 18:28:47 +02:00
James Smart
27f344eb15
lpfc: Add iotag memory barrier
...
Add a memory barrier to ensure the valid bit is read before
any of the cqe payload is read. This fixes an issue seen
on Power where the cqe payload was getting loaded before
the valid bit. When this occurred, we saw an iotag out of
range error when a command completed, but since the iotag
looked invalid the command didn't get completed to scsi core.
Later we hit the command timeout, attempted to abort the command,
then waited for the aborted command to get returned. Since the
adapter already returned the command, we timeout waiting,
and end up escalating EEH all the way to host reset. This
patch fixes this issue.
Signed-off-by: Brian King <brking@linux.vnet.ibm.com >
Signed-off-by: James Smart <james.smart@emulex.com >
---
lpfc_sli.c | 21 +++++++++++++++++++++
1 file changed, 21 insertions(+)
Signed-off-by: Christoph Hellwig <hch@lst.de >
2014-05-19 19:12:25 +02:00
Daeseok Youn
2e7063770e
[SCSI] lpfc: use NULL instead of 0 for pointer
...
sparse says:
drivers/scsi/lpfc/lpfc_sli.c:16547:37: warning:
Using plain integer as NULL pointer
Signed-off-by: Daeseok Youn <daeseok.youn@gmail.com >
Acked-by: James Smart <james.smart@emulex.com >
Signed-off-by: James Bottomley <JBottomley@Parallels.com >
2014-03-15 10:18:58 -07:00
James Smart
06918ac566
[SCSI] lpfc 8.3.45: Fixed crash during driver unload.
...
Signed-off-by: James Smart <james.smart@emulex.com >
Signed-off-by: James Bottomley <JBottomley@Parallels.com >
2014-03-15 10:18:57 -07:00
James Smart
1ba981fd3a
[SCSI] lpfc 8.3.45: Incorporated support of a low-latency io path
...
Signed-off-by: James Smart <james.smart@emulex.com >
Signed-off-by: James Bottomley <JBottomley@Parallels.com >
2014-03-15 10:18:56 -07:00
James Smart
cff261f6bd
[SCSI] lpfc 8.3.44: Fix kernel panics from corrupted ndlp list
...
Signed-off-by: James Smart <james.smart@emulex.com >
Signed-off-by: James Bottomley <JBottomley@Parallels.com >
2014-03-15 10:18:55 -07:00
James Smart
76f96b6dfd
[SCSI] lpfc 8.3.44: Fixed IO hang when in msi mode.
...
Signed-off-by: James Smart <james.smart@emulex.com >
Signed-off-by: James Bottomley <JBottomley@Parallels.com >
2014-03-15 10:18:54 -07:00
James Smart
53151bbb83
[SCSI] lpfc 8.3.43: Fixed not processing task management IOCB response status
...
This patch implements the changes requested by Jeremy Linton:
http://marc.info/?l=linux-scsi&m=136242124409687&w=2
The patch revises the command issuing behavior, detecting cases where the
Task Mgmt command may have completed but with a non-successful status, which it
previously treated as a successful TMF. The patch also corrects a flushing of
I/O that was done which should only be done on successful TMF completion.
Signed-off-by: James Smart <james.smart@emulex.com >
Signed-off-by: James Bottomley <JBottomley@Parallels.com >
2013-10-25 09:58:18 +01:00
James Smart
af22741c77
[SCSI] lpfc 8.3.43: Fixed invalid Total_Data_Placed value received for els and ct command responses
...
Signed-off-by: James Smart <james.smart@emulex.com >
Signed-off-by: James Bottomley <JBottomley@Parallels.com >
2013-10-25 09:58:18 +01:00
James Smart
0ba4b2199f
[SCSI] lpfc 8.3.43: Fixed invalid fcp_rsp length fir FCP_ICMND
...
Signed-off-by: James Smart <james.smart@emulex.com >
Signed-off-by: James Bottomley <JBottomley@Parallels.com >
2013-10-25 09:58:17 +01:00
James Smart
e8d3c3b14b
[SCSI] lpfc 8.3.43: Fixed invalid mailbox timeouts
...
Signed-off-by: James Smart <james.smart@emulex.com >
Signed-off-by: James Bottomley <JBottomley@Parallels.com >
2013-10-25 09:58:17 +01:00
James Smart
4902b381c6
[SCSI] lpfc 8.3.43: Fixed spinlock inversion problem.
...
Signed-off-by: James Smart <james.smart@emulex.com >
Signed-off-by: James Bottomley <JBottomley@Parallels.com >
2013-10-25 09:58:17 +01:00
James Smart
afbd8d8884
[SCSI] lpfc 8.3.42: Fix driver's abort loop functionality to skip IOs already getting aborted
...
Signed-off-by: James Smart <james.smart@emulex.com >
Signed-off-by: James Bottomley <JBottomley@Parallels.com >
2013-09-10 17:31:02 -07:00
James Smart
f5ca6f2e77
[SCSI] lpfc 8.3.42: Avoided making pci bar ioremap call during dual-chute WQ/RQ pci bar selection
...
Signed-off-by: James Smart <james.smart@emulex.com >
Signed-off-by: James Bottomley <JBottomley@Parallels.com >
2013-09-10 17:28:25 -07:00
James Smart
9a803a7449
[SCSI] lpfc 8.3.42: Fixed using unsafe linked list macro for walking and deleting linked list
...
Signed-off-by: James Smart <james.smart@emulex.com >
Signed-off-by: James Bottomley <JBottomley@Parallels.com >
2013-09-10 15:15:55 -07:00
James Smart
0c651878ba
[SCSI] lpfc 8.3.41: Fixed support for 128 byte WQEs
...
Signed-off-by: James Smart <james.smart@emulex.com >
Signed-off-by: James Bottomley <JBottomley@Parallels.com >
2013-08-23 13:18:56 -04:00
James Smart
572709e206
[SCSI] lpfc 8.3.41: Fixed max value of lpfc_lun_queue_depth
...
Signed-off-by: James Smart <james.smart@emulex.com >
Signed-off-by: James Bottomley <JBottomley@Parallels.com >
2013-08-23 13:16:36 -04:00
James Smart
48a5a664d0
[SCSI] lpfc 8.3.41: Fixed Receive Queue varied frame size handling
...
Signed-off-by: James Smart <james.smart@emulex.com >
Signed-off-by: James Bottomley <JBottomley@Parallels.com >
2013-08-23 13:15:43 -04:00
James Smart
445fd0809e
[SCSI] lpfc 8.3.41: Fix mailbox byteswap issue on PPC
...
Signed-off-by: James Smart <james.smart@emulex.com >
Signed-off-by: James Bottomley <JBottomley@Parallels.com >
2013-08-23 13:14:48 -04:00
James Smart
5a0916b4d2
[SCSI] lpfc 8.3.41: Fixed freeing of iocb when internal loopback times out
...
Signed-off-by: James Smart <james.smart@emulex.com >
Signed-off-by: James Bottomley <JBottomley@Parallels.com >
2013-08-23 13:13:52 -04:00
James Smart
92c13f291e
[SCSI] lpfc 8.3.40: Update Copyrights to 2013 for 8.3.38, 8.3.39, and 8.3.40 modifications
...
Signed-off-by: James Smart <james.smart@emulex.com >
Signed-off-by: James Bottomley <JBottomley@Parallels.com >
2013-06-26 10:48:55 -07:00
James Smart
b230b8a298
[SCSI] lpfc 8.3.40: Fixed issue mailbox wait routine failed to issue dump memory mbox command
...
Signed-off-by: James Smart <james.smart@emulex.com >
Signed-off-by: James Bottomley <JBottomley@Parallels.com >
2013-06-26 10:48:53 -07:00
James Smart
b069d7eb02
[SCSI] lpfc 8.3.40: Fixed a missing return code in a logging message
...
Signed-off-by: James Smart <james.smart@emulex.com >
Signed-off-by: James Bottomley <JBottomley@Parallels.com >
2013-06-26 10:48:47 -07:00
James Smart
8e668af5c2
[SCSI] lpfc 8.3.40: Fixed some logging message fields
...
Signed-off-by: James Smart <james.smart@emulex.com >
Signed-off-by: James Bottomley <JBottomley@Parallels.com >
2013-06-26 10:48:46 -07:00
James Smart
398d81c9ff
[SCSI] lpfc 8.3.40: Fixed list corruption when lpfc_drain_tx runs.
...
Signed-off-by: James Smart <james.smart@emulex.com >
Signed-off-by: James Bottomley <JBottomley@Parallels.com >
2013-06-26 10:48:45 -07:00
James Smart
91f32d01d9
[SCSI] lpfc 8.3.40: Fix inconsistent list removal causes crash.
...
Signed-off-by: James Smart <james.smart@emulex.com >
Signed-off-by: James Bottomley <JBottomley@Parallels.com >
2013-06-26 10:48:43 -07:00
James Smart
61f35bff15
[SCSI] lpfc 8.3.40: Fixed system panic during handling unsolicited receive buffer error condition
...
Signed-off-by: James Smart <james.smart@emulex.com >
Signed-off-by: James Bottomley <JBottomley@Parallels.com >
2013-06-26 10:48:42 -07:00
James Smart
88f43a0867
[SCSI] lpfc 8.3.39: Reduced tmo value set to FLOGI WQE for quick recovery from FLOGI sequence timeout
...
Signed-off-by: James Smart <james.smart@emulex.com >
Signed-off-by: James Bottomley <JBottomley@Parallels.com >
2013-05-02 13:13:11 -07:00
James Smart
7bb03bbf1e
[SCSI] lpfc 8.3.39: Fixed driver vector mapping to CPU affinity
...
Signed-off-by: James Smart <james.smart@emulex.com >
Signed-off-by: James Bottomley <JBottomley@Parallels.com >
2013-05-02 13:10:25 -07:00
James Smart
ea714f3dab
[SCSI] lpfc 8.3.39: Fixed system panic during EEH recovery due to midlayer acting on outstanding I/O
...
Signed-off-by: James Smart <james.smart@emulex.com >
Signed-off-by: James Bottomley <JBottomley@Parallels.com >
2013-05-02 13:07:51 -07:00
James Smart
711ea882a0
[SCSI] lpfc 8.3.39: Fixed bad book keeping in posting els sgls to port
...
Signed-off-by: James Smart <james.smart@emulex.com >
Signed-off-by: James Bottomley <JBottomley@Parallels.com >
2013-05-02 13:05:26 -07:00
James Smart
d5ce53b7dd
[SCSI] lpfc 8.3.39: Fixed crash when processing bsg's sg list with high memory pages
...
Signed-off-by: James Smart <james.smart@emulex.com >
Signed-off-by: James Bottomley <JBottomley@Parallels.com >
2013-05-02 13:00:01 -07:00
James Smart
a22e7db38b
[SCSI] lpfc 8.3.39: Doorbell formation information logged in dual-chute mode WQ and RQ setup
...
Signed-off-by: James Smart <james.smart@emulex.com >
Signed-off-by: James Bottomley <JBottomley@Parallels.com >
2013-05-02 12:54:39 -07:00
James Smart
e74c03c8a8
[SCSI] lpfc 8.3.39: Fixed pt2pt and loop discovery problems on topology changes.
...
Signed-off-by: James Smart <james.smart@emulex.com >
Signed-off-by: James Bottomley <JBottomley@Parallels.com >
2013-05-02 12:43:15 -07:00
James Smart
256ec0d05f
[SCSI] lpfc 8.3.39: Remove driver dependency on HZ
...
Signed-off-by: James Smart <james.smart@emulex.com >
Signed-off-by: James Bottomley <JBottomley@Parallels.com >
2013-05-02 12:39:54 -07:00
James Smart
16a3a20842
[SCSI] lpfc 8.3.39: Fixed VPI allocation issues after firmware dump is performed
...
Signed-off-by: James Smart <james.smart@emulex.com >
Signed-off-by: James Bottomley <JBottomley@Parallels.com >
2013-05-02 12:37:45 -07:00
Linus Torvalds
5aa1c98862
Merge tag 'scsi-misc' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi
...
Pull first round of SCSI updates from James "Jej B" Bottomley:
"The patch set is mostly driver updates (qla4, qla2 [ISF support
updates], lpfc, aacraid [dual firmware image support]) and a few bug
fixes"
* tag 'scsi-misc' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi: (47 commits)
[SCSI] iscsi_tcp: support PF_MEMALLOC/__GFP_MEMALLOC
[SCSI] libiscsi: avoid unnecessary multiple NULL assignments
[SCSI] qla4xxx: Update driver version to 5.03.00-k8
[SCSI] qla4xxx: Added print statements to display AENs
[SCSI] qla4xxx: Use correct value for max flash node entries
[SCSI] qla4xxx: Restrict logout from boot target session using session id
[SCSI] qla4xxx: Use correct flash ddb offset for ISP40XX
[SCSI] isci: add CONFIG_PM_SLEEP to suspend/resume functions
[SCSI] scsi_dh_alua: Add module parameter to allow failover to non preferred path without STPG
[SCSI] qla2xxx: Update the driver version to 8.05.00.03-k.
[SCSI] qla2xxx: Obtain loopback iteration count from bsg request.
[SCSI] qla2xxx: Add clarifying printk to thermal access fail cases.
[SCSI] qla2xxx: Remove duplicated include form qla_isr.c
[SCSI] qla2xxx: Enhancements to support ISPFx00.
[SCSI] qla4xxx: Update driver version to 5.03.00-k7
[SCSI] qla4xxx: Replace dev type macros with generic portal type macros
[SCSI] scsi_transport_iscsi: Declare portal type string macros for generic use
[SCSI] qla4xxx: Add flash node mgmt support
[SCSI] libiscsi: export function iscsi_switch_str_param
[SCSI] scsi_transport_iscsi: Add flash node mgmt support
...
2013-04-30 13:16:38 -07:00
Wei Yongjun
5a25bf36b7
[SCSI] lpfc: fix potential NULL pointer dereference in lpfc_sli4_rq_put()
...
The dereference to 'put_index' should be moved below the NULL test.
Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn >
Acked-by: James Smart <james.smart@emulex.com >
Signed-off-by: James Bottomley <JBottomley@Parallels.com >
2013-04-11 14:17:15 -07:00
James Smart
38c2067366
[SCSI] lpfc 8.3.38: Fixed circular locking dependency and inconsistent lock state issues
...
Signed-off-by: James Smart <james.smart@emulex.com >
Signed-off-by: James Bottomley <JBottomley@Parallels.com >
2013-04-09 15:20:29 -07:00
James Smart
e5771b4dc0
[SCSI] lpfc 8.3.38: Fixed OXID reuse issue.
...
Signed-off-by: James Smart <james.smart@emulex.com >
Signed-off-by: James Bottomley <JBottomley@Parallels.com >
2013-04-09 15:20:28 -07:00
James Smart
2562669cf6
[SCSI] lpfc 8.3.38: Fixed deadlock condition in FCF round robin handling
...
Signed-off-by: James Smart <james.smart@emulex.com >
Signed-off-by: James Bottomley <JBottomley@Parallels.com >
2013-04-09 15:20:27 -07:00
James Smart
0e9bb8d79c
[SCSI] lpfc 8.3.38: Fixed NMI watch dog panic's when resetting the hba.
...
Fixed NMI watch dog panic's when resetting the hba.
Signed-off-by: James Smart <james.smart@emulex.com >
Signed-off-by: James Bottomley <JBottomley@Parallels.com >
2013-04-09 14:21:58 -07:00
Randy Dunlap
bf07bdea0d
[SCSI] scsi: fix lpfc build when wmb() is defined as mb()
...
On architectures where wmb() is defined as mb(), a build error
happens since there is also a variable named 'mb' in lpfc_sli.c's
lpfc_sli_issue_mbox_s3() function. Rename the variable to 'mbx'
to prevent the build error.
drivers/scsi/lpfc/lpfc_sli.c: error: called object 'mb' is not a function
Reported-by: Geert Uytterhoeven <geert@linux-m68k.org >
Signed-off-by: Randy Dunlap <rdunlap@infradead.org >
Acked-by: James Smart <james.smart@emulex.com >
Signed-off-by: James Bottomley <JBottomley@Parallels.com >
2013-02-24 09:43:11 +00:00
James Smart
421c66228a
[SCSI] lpfc 8.3.37: Fixed infinite loop in lpfc_sli4_fcf_rr_next_index_get.
...
Signed-off-by: James Smart <james.smart@emulex.com >
Signed-off-by: James Bottomley <JBottomley@Parallels.com >
2013-01-30 11:39:57 +11:00