8786 Commits

Author SHA1 Message Date
Vladislav Bolkhovitin
299b079f7c Pending changes to match the 1.0.0 released packeges
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@436 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2008-07-08 19:21:22 +00:00
Vladislav Bolkhovitin
d803ef1c43 WEB updates for release 1.0.0
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@435 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2008-07-08 16:41:52 +00:00
Stanislaw Gruszka
5172b31980 Add release2debug and debug2release Makefile targets for qla_isp.
Leave qla_isp in release 'state' as other stuff.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@434 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2008-07-08 07:59:42 +00:00
Vladislav Bolkhovitin
0fd9c9b385 - Version changed to 1.0.0
- Build configuration changed to "Release"
 - iscsi-scst-howto.txt added
 - ChangeLog's updated
 - Minor docs changes
 - scstadm_install and scstadm_uninstall main Makefile targets added



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@433 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2008-07-07 18:00:32 +00:00
Vladislav Bolkhovitin
ae69bf11e9 - Comment about 2008 Linux Storage & Filesystem Workshop added
- scst_user_spec.txt removed, it was committed here by mistake
 - Minor changes


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@432 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2008-07-07 17:54:49 +00:00
Vladislav Bolkhovitin
79cb40d73a - Install/uninstall added
- Version fixed


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@431 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2008-07-07 17:51:53 +00:00
Stanislaw Gruszka
3bdd1d549f Add uninstall makefile target.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@430 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2008-07-06 10:45:25 +00:00
Stanislaw Gruszka
2211857c67 Copy Modules.symvers stuff from qla2x00t makefiles to avoid undefined symbols warrning.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@429 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2008-07-05 20:19:11 +00:00
Stanislaw Gruszka
6c161367e6 Add warrning qla_isp do not support > 2.6.24
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@428 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2008-07-05 19:11:16 +00:00
Vladislav Bolkhovitin
1389b4595e Add "extraclean" entry to the qla_isp Makefiles.
Signed-off-by: Dotan Barak <dotanba@gmail.com>



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@427 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2008-07-04 17:53:30 +00:00
Vladislav Bolkhovitin
f763b7e7a9 Added qla_isp support to the general Makefile.
The following operations (parametgers to the make) are now supported:
qla_isp, qla_isp_clean, qla_isp_extraclean, 
qla_isp_install, qla_isp_uninstall.

But at the moment qla_isp doesn't support all of the needed operations: uninstall and extraclean are not supported in its Makefile.

Signed-off-by: Dotan Barak <dotanba@gmail.com>



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@426 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2008-07-02 17:43:20 +00:00
Vladislav Bolkhovitin
70630a843b Fixes few harmless issues:
1. The #define on line 228 of iscsi-scst/usr/isns.c triggers a compiler
warning on ppc.
 2. make iscsi && sudo make iscsi_install triggers the following error
message (2.6.22.17 kernel, ppc), but doesn't break installation:
...
install: cannot stat `usr/iscsi-scst-adm': No such file or directory
...
 3. Unneeded "unlikely" removed

Issues 1 and 2 reported by Bart Van Assche <bart.vanassche@gmail.com>


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@425 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2008-06-30 09:50:27 +00:00
Vladislav Bolkhovitin
18139c9919 Minor updates
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@424 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2008-06-30 09:38:39 +00:00
Vladislav Bolkhovitin
9c1703ef3d - A complete fix for the problem when a command comes with zero transfer length and READ or WRITE data transfer direction
- Version changed to 1.0.0-rc2


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@423 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2008-06-26 16:39:05 +00:00
Vladislav Bolkhovitin
8b77aa8ad2 Minor cleanups and docs updates
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@422 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2008-06-26 16:35:10 +00:00
Vladislav Bolkhovitin
8b7d94f811 New web look
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@421 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2008-06-26 11:52:09 +00:00
Vladislav Bolkhovitin
07f7cadb34 - Fixes incorrect allocation length 0 by scst_user module
- Fixes missed case of "allocation length 0 for READ6/WRITE6 means 256".


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@420 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2008-06-23 16:32:51 +00:00
Vladislav Bolkhovitin
4998538979 Replace memory allocation from kzalloc to kmalloc because
this memory buffer will be zeroed later on in the code.

Signed-off-by: Dotan Barak <dotanba@gmail.com>



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@419 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2008-06-19 17:54:25 +00:00
Vladislav Bolkhovitin
54aede6418 Fix compilation warning in kernels higher than 2.6.16
(the prototype of the function strncasecmp was changed in 2.6.16).

Signed-off-by: Dotan Barak <dotanba@gmail.com>



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@418 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2008-06-19 17:52:18 +00:00
Vladislav Bolkhovitin
5f2d7fddea - Fixes not cleanly applies xxx2yyy patches
- Updated to IET r155
 - Compilation fixes
 - Typos fixes, including patch from Dotan Barak <dotanba@gmail.com>


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@417 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2008-06-19 17:48:08 +00:00
Vladislav Bolkhovitin
5b6ba1d246 Added error message for a kernel bug, which doesn't allow for poll() to work with >256 file descriptors and prevents iscsi-scstd to start.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@416 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2008-06-18 09:54:38 +00:00
Vladislav Bolkhovitin
f7f8750f73 Patch from Bart Van Assche <bart.vanassche@gmail.com>:
The patch below fixes the following class of checkpatch warnings:
- WARNING: braces {} are not necessary for single statement blocks

How this patch has been verified:
- Checked that make -s clean && make -s scst iscsi-scst still works.
- Verified that checkpatch does no longer complain about the placement of
  braces.

The patch below only changes comments, so it should be safe to include it in
the 1.0.0 release.

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


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@415 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2008-06-13 17:31:29 +00:00
Mark Buechler
8aa85fae74 Added option mapping NV -> NV_CACHE.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@414 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2008-06-13 13:38:46 +00:00
Vladislav Bolkhovitin
14bd19ede1 Patch from Bart Van Assche <bart.vanassche@gmail.com>:
The script scripts/specialize-patch'>scripts/specialize-patch is an awk script. Currently it specifies /usr/bin/awk as its interpreter although it doesn't use the standard AWK syntax but the extended GNU AWK syntax. The patch below changes the interpreter name such that the script also works on systems where /usr/bin/awk is not GNU AWK (e.g. Ubuntu 8.04). Note: GNU AWK is not installed by default on all Linux systems. E.g. on Debian systems it's in the gawk package.

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



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@413 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2008-06-13 11:08:23 +00:00
Vladislav Bolkhovitin
692c895cb5 - Complete the fix for broken REQUEST SENSE
- Cleanup: cleanup_lock shouldn't be IRQ


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@412 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2008-06-13 10:31:50 +00:00
Vladislav Bolkhovitin
da47dc7a6c - ISCSI sending response timeout increased to 30 seconds
- Fixed 2 problems in scst_user on release() cleanup
 - Added per-device memory limit and new scst.ko module parameter scst_max_dev_cmd_mem
 - Cleanups, including important ones
 - Version changed to 1.0.0-rc1


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@411 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2008-06-12 18:55:13 +00:00
Vladislav Bolkhovitin
2cd7071377 Fixes broken REQUEST SENSE
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@410 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2008-06-12 18:37:31 +00:00
Vladislav Bolkhovitin
0cfbfa801c Patch from Bart Van Assche <bart.vanassche@gmail.com>:
The patch below fixes the following checkpatch warning:
__func__ should be used instead of gcc specific __FUNCTION__

This patch has been tested as follows:
- Checked that make -C ib_srpt still works.
- Checked that the patch generated by generate-kernel-patch still applies
  cleanly to the 2.6.25.4 kernel, that the patched kernel still compiles,
  installs and boots and that the scst, iscsi-scst and ib_srpt modules still
  load (I performed rm -rf /lib/modules/2.6.25.4* before starting kernel
  compilation).

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



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@409 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2008-06-12 14:59:48 +00:00
Vladislav Bolkhovitin
20a2e4ae8d Copyrights updated
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@408 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2008-06-12 11:39:28 +00:00
Vladislav Bolkhovitin
a7eca72894 Patch from Arne Redlich <agr@powerkom-dd.de>:
Removes unneeded kfree()

Signed-off-by: Arne Redlich <agr@powerkom-dd.de>


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@407 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2008-06-12 11:35:40 +00:00
Vladislav Bolkhovitin
0aca68d080 Patch from Dotan Barak <dotanba@gmail.com> (applied manually):
Fix compilation failure in kernel 2.6.19 and below
(bug.h was added only stafrting kernel 2.6.20).

Signed-off-by: Dotan Barak <dotanba@gmail.com>


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@406 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2008-06-12 11:32:12 +00:00
Vladislav Bolkhovitin
51b18560a1 Patch from Dotan Barak <dotanba@gmail.com>:
Replace memory allocation from kzalloc to kmalloc because
this memory buffer will be zeroed later on in the code.

Signed-off by: Dotan Barak <dotanba@gmail.com>


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@405 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2008-06-12 11:25:38 +00:00
Vladislav Bolkhovitin
f8521e2a68 Patch from Bart Van Assche <bart.vanassche@gmail.com>:
The patch below fixes all remaining checkpatch errors:
- ERROR: do not use assignment in if condition
- ERROR: that open brace { should be on the previous line
- ERROR: trailing whitespace
- ERROR: use tabs not spaces
The last three had already been fixed before, but some occurences were
reintroduced in r403. It would be great if new modifications could be checked
for checkpatch errors before being committed.

This patch has been tested as follows:
- Reread the patch below carefully.
- Verified that make -s clean && make -s iscsi scst && make -s -C srpt
  still works and does not trigger any compiler warnings.
- Verified that checkpatch does no longer report any errors.
- Checked that the patch generated by generate-kernel-patch still applies
  cleanly to the 2.6.25.4 kernel, and that the patched kernel tree still
  compiles, installs and boots fine, and that the iscsi-scst, ib_srpt,
  scst_disk and scst_vdisk modules still load.
- Tested that iSCSI login/logout still works from a remote system, and that
  iSCSI I/O still works.

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



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@404 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2008-06-12 11:22:15 +00:00
Vladislav Bolkhovitin
994b72d114 The major TM processing cleanup in scst_user module which was possible after the recent SCST changes, to fix current problems. Also there are fixes for found during development/testing problems. Particularly:
- PRIO queue was removed from scst_user. Instead, all priority commands now queued in the head of the regular queue. The corresponding code was removed from fileio_tgt as well. It necessary, in the future the priority queue can be easily restored from this patch.

 - pre_unreg_sess() was removed from struct scst_dev_type. The corresponding code was removed from SCST core as well

 - Almost all /proc/scsi_tgt commands now can fail after timeout (90 seconds) with EBUSY

 - Fixed possible incorrect command's retry if double RESET UA is detected.

 - Many minor changes and cleanups

Also docs were updated.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@403 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2008-05-31 12:05:02 +00:00
Vladislav Bolkhovitin
ecb27e7444 Patch from Bart Van Assche <bart.vanassche@gmail.com>:
The patch below fixes the checkpatch complaints on kfree():
WARNING: kfree(NULL) is safe this check is probabally not required

This patch has been verified as follows:
- Verified that checkpatch does no longer complain about kfree().
- Verified that make -s clean && make -s iscsi scst && make -s -C srpt
  still works and does not trigger any new compiler warnings.
- Checked that the patch generated by generate-kernel-patch still applies
  cleanly to the 2.6.25.4 kernel, and that the patched kernel tree still
  compiles, installs and boots fine, and that the iscsi-scst, ib_srpt,
  scst_disk and scst_vdisk modules still load.

Note: I'm not sure any of the above verifications did trigger the code paths
changed by this patch.

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


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@402 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2008-05-29 17:24:18 +00:00
Vladislav Bolkhovitin
2092cff5cd 3 small patches from Bart Van Assche <bart.vanassche@gmail.com>:
The patch below fixes the following category of checkpatch complaints:
ERROR: do not use C99 // comments

This patch has been verified as follows:
- Verified that checkpatch does no longer complain about C99 comments.
- Verified that make -s clean && make -s iscsi scst && make -s -C srpt
  still works.

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

The patch below fixes the following category of checkpatch complaints:
WARNING: unnecessary cast may hide bugs, see http://c-faq.com/malloc/mallocnocast.html

This patch has been verified as follows:
- Verified that checkpatch does no longer complain about unnecessary casts.
- Verified that make -s clean && make -s iscsi scst && make -s -C srpt
  still works and does not trigger any new compiler warnings.

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

The patch below fixes the following category of checkpatch warnings:
ERROR: Use of SPIN_LOCK_UNLOCKED is deprecated: see Documentation/spinlocks.txt

This patch has been verified as follows:
- Verified that checkpatch does no longer complain about spinlocks.
- Verified that make -s clean && make -s iscsi scst && make -s -C srpt
  still works and does not trigger any new compiler warnings.
- Verified that the patch generated by generate-kernel-patch still applies
  cleanly to the 2.6.25.4 kernel, and that the patched kernel tree still
  compiles, installs and boots fine, and that the iscsi-scst, ib_srpt,
  scst_disk and scst_vdisk modules still load.

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



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@401 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2008-05-28 11:17:08 +00:00
Vladislav Bolkhovitin
8386cd3871 Patch from Bart Van Assche <bart.vanassche@gmail.com>:
The patch below fixes the following checkpatch warning:
WARNING: EXPORT_SYMBOL(foo); should immediately follow its function/variable

This patch has been tested as follows:
- Verified that the output of the following command did not change due to the
  patch below:
    find -name '*.[ch]'|xargs grep -h -w EXPORT_SYMBOL | sort
- Checked that make -s clean && make -s iscsi scst && make -s -C srpt still
  works.
- Checked that the patch generated by generate-kernel-patch still applies
  cleanly to the 2.6.25.4 kernel, and that the patched kernel tree still
  compiles, installs and boots fine, and that the iscsi-scst, ib_srpt,
  scst_disk and scst_vdisk modules still load.

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



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@400 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2008-05-27 14:31:31 +00:00
Vladislav Bolkhovitin
b95fb1f9d7 Patch from Bart Van Assche <bart.vanassche@gmail.com>:
The patch below fixes the following checkpatch warning:
WARNING: Use #include <linux/...> instead of <asm/...>

This patch has been tested as follows:
- Verified the patch by rereading it.
- Checked that make -s clean && make -s iscsi scst && make -s -C srpt still
  works.
- Checked that the patch generated by generate-kernel-patch still applies
  cleanly to the 2.6.25.4 kernel, and that the patched kernel tree still
  compiles, installs and boots fine, and that the iscsi-scst, ib_srpt,
  scst_disk and scst_vdisk modules still load.

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



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@399 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2008-05-27 14:28:37 +00:00
Vladislav Bolkhovitin
73ea36593d Patch from Bart Van Assche <bart.vanassche@gmail.com>:
The patch below fixes the following categories of checkpatch complaints:
- ERROR: switch and case should be at the same indent
- ERROR: do not initialise statics to 0 or NULL
- ERROR: use tabs not spaces

I have verified that the SCST source code still compiles.

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



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@398 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2008-05-27 14:26:15 +00:00
Vladislav Bolkhovitin
dc7820544d Patch from Bart Van Assche <bart.vanassche@gmail.com>:
While all warnings on mismatches between printf-style format strings and
argument lists were fixed on i386 and x86_64, gcc prints a large number of
warnings about mismatches when compiling SCST on ppc64. The patch below
fixes these by casting integer arguments to the type (long long unsigned int)
where appropriate.

This patch has been tested as follows:
- Verified the patch by reading it.
- Checked that make -s clean && make -s iscsi scst && make -s -C srpt did not
  trigger any compiler warnings about format strings on i386, x86_64 and ppc.
- Checked that no previously fixed checkpatch warnings were reintroduced in
  the patch generated by generate-kernel-patch.
- Checked that the patch generated by generate-kernel-patch still applies
  cleanly to the 2.6.25.4 kernel, and that the patched kernel tree still
  compiles, installs and boots fine.

Additionally, this patch splits a kernel version preprocessor test from one into two lines, such that
the generate-kernel-patch script can process the version check properly.

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



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@397 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2008-05-26 11:13:04 +00:00
Vladislav Bolkhovitin
dbf723a163 - Fixed one more 32/64 bits user/kernel incompatibility
- Minor fixes


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@396 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2008-05-26 11:00:19 +00:00
Stanislaw Gruszka
684a1ed5b8 Check preprocesor definitions when releasing firmware.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@395 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2008-05-24 13:48:20 +00:00
Vladislav Bolkhovitin
d59057bb9f Patch from Erik Habbinga <erikhabbinga@inphase-tech.com> to fix out of tree building introduced in r387 with some changes to prevent such things in the future.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@394 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2008-05-23 16:00:56 +00:00
Vladislav Bolkhovitin
39e9127aaf Patch from Bart Van Assche <bart.vanassche@gmail.com>:
The patch below fixes the following checkpatch warning:
__func__ should be used instead of gcc specific __FUNCTION__

This patch has been tested as follows:
- Checked that make iscsi scst still works.
- Checked that after loading the scst module the kernel messages generated
  because of the shell command "echo all >/proc/scsi_tg/trace_level" still
  make sense. An example:
  [  646.408035] [5845]: scst: scst_proc_log_entry_write:346:Changed trace level for "scsi_tgt": old 0x80005f0e, new 0xffffffff
- Checked that the patch generated by generate-kernel-patch still applies
  cleanly to the 2.6.25.4 kernel, that the patched kernel still compiles,
  installs and boots and that the scst, iscsi-scst and ib_srpt modules still
  load (I performed rm -rf /lib/modules/2.6.25.4* before starting kernel
  compilation).

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



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@393 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2008-05-23 15:22:12 +00:00
Vladislav Bolkhovitin
83af00fd15 Patch from Bart Van Assche <bart.vanassche@gmail.com>:
The current version of generate-kernel-patch does not remove preprocessor
statements that should have been removed because intended for another kernel
version (surrounded by #if LINUX_VERSION_CODE ... KERNEL_VERSION(...) / #endif).
The patch below fixes this.

I have verified the patch below by comparing the patch generated by the
old and the new versions of the generate-kernel-patch script:
$ diff p1 p2
7190d7189
< +#if defined(EXTRACHECKS)
7196c7195,7196
< +#endif
---
> > +
> > +
13056d13055
< +#ifdef STRICT_SERIALIZING
13058d13056
< +#elif !defined(SCSI_EXEC_REQ_FIFO_DEFINED)
13060d13057
< +#else
13062c13059,13062
< +#endif
---
> > +
> > +
> > +
> > +

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



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@392 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2008-05-23 15:19:52 +00:00
Vladislav Bolkhovitin
2261eaec3e - Fixed problems with 64-bit platforms with 32-bit user space and with non-4K pages
- From the main Makefile all all LSI/MPT related targets are commented out, because the recent changes in its Makefile have broken them.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@391 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2008-05-23 15:12:34 +00:00
Vladislav Bolkhovitin
05b869c78f Patch from Bart Van Assche <bart.vanassche@gmail.com>:
The patch adds command-line options -m and -q to the script
generate-kernel-patch. These command line options make it possible to
choose at the time the script is invoked whether or not to include the
qla2x00t and/or mpt code in the generated kernel patch.

Please review.

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

Index: scripts/generate-kernel-patch



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@390 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2008-05-23 09:56:13 +00:00
Vladislav Bolkhovitin
1460c1aeff Patch from Bart Van Assche <bart.vanassche@gmail.com>:
The patch below makes sure the SCST code compiles again (it was broken by r386). The patch
includes the following changes:
- Make sure that macro's do not end in a semicolon, because otherwise the
  transformation if (condition) { MACRO; } else {...}
  into if (condition) MACRO; else {...}
  results in a compilation error.
- Aligned backslashes (whitespace-only change).
- One "else{" was incorectly changed into "else { {" -- fixed this.

I have verified that the following command again succeeds:
  make -s iscsi scst && make -s -C srpt && make -s -C qla2x00t

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



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@389 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2008-05-23 09:38:07 +00:00
Vladislav Bolkhovitin
1e85595852 Oops, forgot to add this file in commit 387
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@388 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2008-05-22 17:01:44 +00:00
Vladislav Bolkhovitin
46a67fdb51 Patch from Erik Habbinga <erikhabbinga@inphase-tech.com>:
I've updated the MPT fusion target driver for LSI SCSI/FC/SAS HBAs.  The original SCST MPT driver was based on the 1.00.13 LSI
sample target driver.  LSI has since released version 1.00.14 of the sample target driver.  I've ported all the changes from .13 to
.14 into the SCST MPT driver for consistency.  I've also updated the SCST MPT driver to compile under 2.6.24 and 2.6.25.4.  Finally,
I force the SCSI parallel transfer rate to very slow depending on the SCSI HBA firmware revision.  Newer versions of SCSI HBA
firmware have a bug where the incorrect amount of data is transferred for non-divisible-by-4 length transfers (like standard 14 byte
REQUEST SENSE).  LSI is aware of the problem and I'll update the driver to restore functionality upon a new good SCSI HBA firmware
release.

I still have not confirmed operation with LSI SAS or FC HBAs.

Signed-off-by: Erik Habbinga <erikhabbinga@inphase-tech.com>

Changes:

./mpt/mpt_scst.h

- differences between LSI sample target drivers 1.00.13 and 1.00.14

./mpt/Kconfig

- remove some unnecessary white space

./mpt/mpt_scst.c

- differences between LSI sample target drivers 1.00.13 and 1.00.14

- changes for kernel 2.6.24 and 2.6.25.4

- force slow transfers for newer SCSI HBA firmware versions

./mpt/Makefile

- simplified for inclusion into kernel source tree

./mpt/in-tree/Kconfig-2.6.24.diff

- patch against 2.6.24 and 2.6.25.4 drivers/message/fusion/Kconfig

./mpt/in-tree/Makefile.diff

- changed to work with generate-kernel-patch script



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@387 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2008-05-22 16:36:59 +00:00