Commit Graph
160 Commits
Author SHA1 Message Date
Vladislav Bolkhovitin 350542a8cf The patch below fixes the following category of checkpatch complaints:
WARNING: externs should be avoided in .c files

The patch below has been tested by rerunning the following command
and by verifying its output:
scripts/run-regression-tests 2.6.26.8

Signed-off-by: Bart Van Assche <bart.vanassche@gmail.com>



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1263 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-10-23 18:38:18 +00:00
Vladislav Bolkhovitin 36104c26c2 Remove -c sed option, because it isn't available on all systems
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1260 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-10-23 17:32:22 +00:00
Vladislav Bolkhovitin e972601875 Printk cleanups and minor fixes
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1259 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-10-23 17:26:39 +00:00
Bart Van Assche 2d90ba1a1e Fixed a checkpatch complaint about trailing whitespace. Verified that the output of svn diff -x -w is empty for this modification.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1254 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-10-23 09:16:52 +00:00
Bart Van Assche 0af5e1b9e3 Fixed whitespace-related checkpatch errors. Verified that the output of
svn diff -x -w is empty for this changeset.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1253 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-10-23 06:59:33 +00:00
Vladislav Bolkhovitin 83c20d9344 Checkpatch and sparse cleanups
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1245 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-10-22 16:11:13 +00:00
Vladislav Bolkhovitin b65169a791 Doc about additional 2.6.26.x commits updated.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1240 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-10-22 12:49:18 +00:00
Vladislav Bolkhovitin ed5513284c From ac2ef12020817c8e8edb7b4fe57f053c62cc833e Mon Sep 17 00:00:00 2001
From: Andrew Vasquez <andrew.vasquez@qlogic.com> 
Date: Thu, 14 Aug 2008 09:39:35 -0700 
Subject: qla2xxx: Set an rport's dev_loss_tmo value in a consistent manner. 
 
[ Upstream commit 85821c906cf3563a00a3d98fa380a2581a7a5ff1 ] 
 
As there's no point in adding a fixed-fudge value (originally 5 
seconds), honor the user settings only.  We also remove the 
driver's dead-callback get_rport_dev_loss_tmo function 
(qla2x00_get_rport_loss_tmo()). 
 
Signed-off-by: Andrew Vasquez <andrew.vasquez@qlogic.com> 
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com> 
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de> 

Submitted by Gal Rosen <galr@storwize.com>



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1239 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-10-22 12:39:36 +00:00
Vladislav Bolkhovitin 54b99faafa Fix compilation with enabled procfs on kernels <2.6.26. Sysfs from now will be supported only on kernels >=2.6.26.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1237 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-10-22 12:32:40 +00:00
Bart Van Assche a8414808ab Only extract the kernel tree when it's needed, i.e. for the 2.6.26.* kernels.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1235 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-10-21 20:03:39 +00:00
Vladislav Bolkhovitin a09681b1fb qla2x00_schedule_rport_del() must used _irq[save,restore] spinlocks, because it can be called on the IRQ.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1230 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-10-21 16:51:48 +00:00
Vladislav Bolkhovitin 82b04b2a00 Merge of the sysfs branch. To enable the sysfs interface you should run "make disable_proc". To switch back on the procfs interface you should run "make disable_proc".
The sysfs intarface is mostly finished. Only initiators-oriented access control not implemented and not all target drivers are updated. Only qla2x00t has been fully updated.



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1229 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-10-21 16:49:52 +00:00
Bart Van Assche 5a15dc1b9c Made sure that the qla2x00t patches are only included in the output of
scripts/generate-kernel-patch for kernel version 2.6.26. As a result,
during the nightly build the qla2x00t code will only be checked with
checkpatch and sparse for the 2.6.26 kernel.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1216 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-10-15 07:09:40 +00:00
Vladislav Bolkhovitin b184e11c0a From 20246fe8e4ea34f2ab556b7c50037b976051cab7 Mon Sep 17 00:00:00 2001
From: Andrew Vasquez <andrew.vasquez@qlogic.com>
Date: Tue, 21 Oct 2008 20:25:04 +0200
Subject: SCSI: qla2xxx: Skip FDMI registration on ISP21xx/22xx parts.

commit 031e134e5f95233d80fb1b62fdaf5e1be587597c upstream

Firmware does not have the facilities to issue management server
IOCBs.

Signed-off-by: Andrew Vasquez <andrew.vasquez@qlogic.com>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Cc: Ferenc Wagner <wferi@niif.hu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

Submitted by Gal Rosen <galr@storwize.com>



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1214 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-10-14 16:30:44 +00:00
Vladislav Bolkhovitin 384319da18 From 61c8bd1d3a9e7e57843d98d9b133fec77ecf4e1b Mon Sep 17 00:00:00 2001
From: Andrew Vasquez <andrew.vasquez@qlogic.com>
Date: Mon, 29 Sep 2008 15:15:04 +0000
Subject: SCSI: qla2xxx: Defer enablement of RISC interrupts until ISP initialization completes.

commit 048feec5548c0582ee96148c61b87cccbcb5f9be upstream

Josip Rodin noted
(http://article.gmane.org/gmane.linux.ports.sparc/10152) the
driver oopsing during registration of an rport to the
FC-transport layer with a backtrace indicating a dereferencing of
an shost->shost_data equal to NULL.  David Miller identified a
small window in driver logic where this could happen:

    > Look at how the driver registers the IRQ handler before the host has
    > been registered with the SCSI layer.
    >
    > That leads to a window of time where the shost hasn't been setup
    > fully, yet ISRs can come in and trigger DPC thread events, such as
    > loop resyncs, which expect the transport area to be setup.
    >
    > But it won't be setup, because scsi_add_host() hasn't finished yet.
    >
    > Note that in Josip's crash log, we don't even see the
    >
    >         qla_printk(KERN_INFO, ha, "\n"
    >             " QLogic Fibre Channel HBA Driver: %s\n"
    >             "  QLogic %s - %s\n"
    >             "  ISP%04X: %s @ %s hdma%c, host#=%ld, fw=%s\n",
    >  ...
    >
    > message yet.
    >
    > Which means that the crash occurs between qla2x00_request_irqs()
    > and printing that message.

Close this window by enabling RISC interrupts after the host has
been registered with the SCSI midlayer.

Reported-by: Josip Rodin <joy@entuzijast.net>
Signed-off-by: Andrew Vasquez <andrew.vasquez@qlogic.com>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

Submitted by Gal Rosen <galr@storwize.com>



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1213 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-10-14 16:29:08 +00:00
Vladislav Bolkhovitin abe7cc6bdd From 1e42c5591e3a65ef36ea90c4461c09e78280417d Mon Sep 17 00:00:00 2001
From: Andrew Vasquez <andrew.vasquez@qlogic.com>
Date: Wed, 14 Oct 2009 08:51:21 +0200
Subject: [PATCH] qla2xxx: Add dev_loss_tmo_callbk/terminate_rport_io callback support.

[ Upstream commit 5f3a9a207f1fccde476dd31b4c63ead2967d934f ]

Signed-off-by: Seokmann Ju <seokmann.ju@qlogic.com>
Signed-off-by: Andrew Vasquez <andrew.vasquez@qlogic.com>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

Submitted by Gal Rosen <galr@storwize.com>



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1212 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-10-14 16:25:36 +00:00
Bart Van Assche ebc6c27bde Reworked qla2x00t patch generation process:
- Moved qla2x00t patch generation code from qla2x00t/Makefile to
  qla2x00t/extract-qla2xxx-orig and qla2x00t/generate-in-tree-patches.
  Restored qla2x00t/Makefile to r1104.
- scripts/run-regression-tests now passes the full kernel version (including
  patch level) to scripts/generate-kernel-patch.
- scripts/generate-kernel-patch can now generate patches for the files
  in drivers/scsi/qla2xxx for any kernel version instead of only 2.6.26.8.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1198 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-10-11 15:54:04 +00:00
Bart Van Assche 53c9cb7de8 Inhibit building the qla2x00t targets in parallel because this produces incorrect results.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1191 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-10-10 14:55:18 +00:00
Vladislav Bolkhovitin 6e2c69c4c4 The current status of the QLogic target driver in the SCST project is as
follows:
- Building the QLogic target driver is possible by following the instructions
 in qla2x00t/qla2x00-target/README.
- Some but not all of the qla2x00-target code is included in the output of
 scripts/generate-kernel-patch. This is unfortunate because it is the output
 of this script that is posted to the LKML each time SCST is submitted for
 review.
- Most of the qla2x00-target code is checked during the nightly build by
 checkpatch. None of the qla2x00-target code is checked during the nightly
 build by sparse.

The patch below makes sure that all of the qla2x00-target code is included in
the generate-kernel-patch output and also that all of the qla2x00-target code
is checked during the nightly build by both checkpatch and sparse. This has
been realized by including the diff of the linux-2.6.26.8/drivers/scsi/qla2xxx
source files and the source files in qla2x00t/*[ch] as individual patches under
qla2x00t/in-tree-patches. These patches are generated from downloaded
linux-2.6.26.8 sources and the sources in the SCST SVN repository.

The next step is to fix the checkpatch and sparse warnings triggered by the
qla2x00-target code and to port the latest qla2xxx patches to the SCST
qla2x00t implementation.

Signed-off-by: Bart Van Assche <bart.vanassche@gmail.com>



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1189 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-10-08 16:53:17 +00:00
Vladislav Bolkhovitin ac7f3b45b9 Fix for 2 typos noticed by Gal Rosen <galr@storwize.com>
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1188 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-10-08 16:24:47 +00:00
Vladislav Bolkhovitin b40aa9fa94 Docs and web updates
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1187 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-10-08 13:44:55 +00:00
Vladislav Bolkhovitin 40206105d8 A better fix for incorrect size of port_data_t and mb[8] for MBC_PORT_NODE_NAME_LIST problem.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1185 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-10-06 19:00:25 +00:00
Vladislav Bolkhovitin e132d782f1 Cleanup
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1184 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-10-06 17:43:55 +00:00
Vladislav Bolkhovitin ab2bbd42fb Some cleanups with a micro performance improvement as a nice side effect.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1182 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-10-06 14:32:17 +00:00
Vladislav Bolkhovitin cd8443bb4d Fixes for issues reported by Gal Rosen <galr@storwize.com>:
1. Incorrect task management response delivery (with patch)

2. Possible use of non-initialized variable

3. Incorrect size of port_data_t and mb[8] for MBC_PORT_NODE_NAME_LIST



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1179 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-10-05 18:38:15 +00:00
Bart Van Assche 420865b354 Fixed the following checkpatch complaints:
- WARNING: labels should not be indented
- WARNING: braces {} are not necessary for single statement blocks


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1174 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-10-03 14:53:32 +00:00
Bart Van Assche 6ad9eb54ef Fixed the following checkpatch complaint:
ERROR: open brace '{' following struct go on the same line.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1173 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-10-03 13:24:21 +00:00
Bart Van Assche 8fb8e01e0c Fixed the following checkpatch complaint:
ERROR: return is not a function, parentheses are not required


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1172 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-10-03 13:16:03 +00:00
Bart Van Assche 9218c65a0c Fixed the following checkpatch complaints:
- ERROR: space required before the open parenthesis '('
- ERROR: "(foo*)" should be "(foo *)"
- ERROR: "foo * bar" should be "foo *bar"
- ERROR: code indent should use tabs where possible
Verified that the output of svn diff -x -w is empty for this commit.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1171 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-10-03 13:12:18 +00:00
Bart Van Assche 7c76bb1a7a Fixed two occurrences of the following checkpatch complaint: ERROR: do not initialise externals to 0 or NULL.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1170 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-10-03 12:54:02 +00:00
Bart Van Assche 82e9aa5061 Fixed checkpatch complaints about the positioning of braces:
- ERROR: else should follow close brace '}'
- ERROR: open brace '{' following struct go on the same line


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1169 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-10-03 12:47:24 +00:00
Bart Van Assche b6b5b735c1 More fixes for checkpatch complaints about whitespace:
- 2 ERROR: code indent should use tabs where possible
- 2 ERROR: trailing whitespace                                             
Verified that the output of svn diff -x -w is empty for this commit.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1168 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-10-03 12:39:24 +00:00
Bart Van Assche 2adf188f8b Fixed the following checkpatch complaint:
ERROR: do not use assignment in if condition


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1167 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-10-03 12:29:05 +00:00
Bart Van Assche db24922d55 Removed trailing whitespace. Verified that the output of
svn diff -x -w is empty for this commit.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1166 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-10-03 12:25:13 +00:00
Bart Van Assche 1ecb44a49a Removed trailing whitespace from the source lines that are different
from the qla2xxx driver source code in the 2.6.26 kernel. Verified
that the output of svn diff -x -w is empty for this commit.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1165 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-10-03 12:15:33 +00:00
Vladislav Bolkhovitin aaac2c07f9 Forgotten copyrights updated
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1160 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-10-01 11:01:11 +00:00
Bart Van Assche 90bfe40444 Fixed the following checkpatch complaints:
- ERROR: open brace '{' following struct go on the same line
- ERROR: return is not a function, parentheses are not required
- ERROR: that open brace { should be on the previous line
- WARNING: %Ld/%Lu are not-standard C, use %lld/%llu
- WARNING: braces {} are not necessary for single statement blocks


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1150 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-09-26 08:54:42 +00:00
Bart Van Assche a7c8b82516 Converted GNU-style to C99-style initializer list because checkpatch
does not recognize the former and complains about it.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1149 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-09-26 08:39:18 +00:00
Vladislav Bolkhovitin b5f9085222 - Fixes wrong DMA data direction
- Micro performance improvement



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1144 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-09-25 18:20:13 +00:00
Vladislav Bolkhovitin 395c59cd3a Spell fixes, including "restransmitting" noticed by Gal Rosen <galr@storwize.com>
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1137 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-09-23 19:14:02 +00:00
Bart Van Assche 59e5d0410c More whitespace-only changes that fix several checkpatch errors.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1126 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-09-22 18:26:33 +00:00
Bart Van Assche f582bf72d3 Removed trailing whitespace.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1125 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-09-22 18:07:18 +00:00
Vladislav Bolkhovitin 8de256e7a3 qla2x00t HOWTO updated
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1108 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-09-17 20:10:11 +00:00
Vladislav Bolkhovitin 7d0cd658eb Typo fixed
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1107 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-09-17 19:58:38 +00:00
Vladislav Bolkhovitin 4e7e7ff6b6 Kernels below 2.6.26 not supported anymore by qla2x00t, sorry.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1106 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-09-17 19:57:04 +00:00
Vladislav Bolkhovitin b03c72f55d Support for 24xx+ QLA chips added to qla2x00t. So far only for 2.6.26+ kernels.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1104 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-09-17 17:44:07 +00:00
Vladislav Bolkhovitin befe0a36fa Chenge logs and TAGS updated
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1051 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-08-14 19:19:04 +00:00
Vladislav Bolkhovitin 0e1890f3c7 Minor docs update
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1013 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-08-05 09:50:11 +00:00
Vladislav Bolkhovitin aac4e05c23 Patch from Gal Rosen <galr@storwize.com>:
I suggest the attached patch for the issue of disabling target mode
while I/O.

Fix BUG in qla target. Set ha->tgt to NULL in wrong place (when
disabling target mode). This cause to unfinished commands, and the echo
command to disabling the target mode to stuck. scst_tgt_cmd_done never
called because the ha->tgt was set to NULL before it should be. ha->tgt
already set to NULL in q2t_target_release after all task managements
finished and all commands were cleaned, so the fix just remove the set
from q2t_host_action.



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@984 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-07-28 09:29:12 +00:00
Vladislav Bolkhovitin 7cbd0df80d - Implemented abort on timeout of stuck in the firmware commands
- Minor cleanups



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@980 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-07-27 17:33:48 +00:00