Commit Graph

163 Commits

Author SHA1 Message Date
Stanislaw Gruszka
28dacdaebb Tag final release.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1267 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-10-24 15:31:32 +00:00
Stanislaw Gruszka
1d47370f17 Note about qla2x00t in README.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1266 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-10-24 15:30:25 +00:00
Dotan Barak
069d3ef3f1 Incorporate last patch submitted for task management retry.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1120 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-09-19 20:18:03 +00:00
Dotan Barak
596fee74a4 Don't try and stop a kernel thread that hasn't started- this will fix some
reported oopses.

Fix residual setting for 21XX/22XX/23XX cards. Oops.

Return at least *some* kind of WWN. Apparently there are still enough
cards floating around that have scrambled NVRAM that this is a problem-
at least for me.

More meaningless format changes.



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1082 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-09-08 01:45:52 +00:00
Dotan Barak
72d038f1b6 If we're running newer than 3.0.16 firmware and are in target mode, tell
the firmware to not automatically issue a PRLI after a PLOGI. This should
solve the problem of being in N-port topology where we have to issue a PLOGI
which by default is followed by a PRLI, which makes us an illegal target.

This is not the most ideal fix in that it breaks the initiator side of
initiator/target mode for any local topology disks.

Various other meaningless formattting changes.



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1081 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-09-08 01:40:39 +00:00
Dotan Barak
613542b923 Remove obsolete documentation.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1080 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-09-08 01:36:17 +00:00
Dotan Barak
27204db16a Update copyright date on LICENSE.
Update README to note that multi-id firmware needs to be used for NPIV.

Add a FIRMWARE readme that was supposed to go in back last June.

M    qla_isp/LICENSE
M    qla_isp/README.scst
A    qla_isp/FIRMWARE.readme


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1062 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-08-23 04:10:13 +00:00
Stanislaw Gruszka
f5248dc2ab Update firmware to that we have in Feral cvs repository.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1057 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-08-15 14:10:08 +00:00
Stanislaw Gruszka
79e1938ff3 Update README.scst a bit.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1027 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-08-08 13:50:16 +00:00
Dotan Barak
0a4165980d Various buglets- hopefully now fixed the case where 24XX fails to start.
Some stuff for multiple channels and internal f/w.




git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@971 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-07-23 15:37:47 +00:00
Dotan Barak
7426cbb244 Only use LOAD_RISC_RAM_EXTENDED if you have to. This just might
fix some of the 24XX and 23XX startup problems that have been
reported but are hard to predictably reproduce.

Do some minor sync with the mainline.




git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@934 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-07-07 17:05:06 +00:00
Stanislaw Gruszka
25d4acd35f Fix compilation on linux kernels 2.6.28, 29 and 30.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@917 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-06-23 17:29:30 +00:00
Stanislaw Gruszka
3fe62e70a8 Fix compilation error in some strange circumstances, I think change is harmless.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@889 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-06-02 16:24:38 +00:00
Dotan Barak
9fd2646cf0 Add dopey script that can turn a .h firmware file into
a loadable binary.



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@853 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-05-14 02:24:43 +00:00
Dotan Barak
3206819128 Fix various buglets that really were seriously bad and resync with FreeBSD tree.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@831 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-05-10 17:18:00 +00:00
Dotan Barak
0dc942ca13 A lot of microchanges, but actually this means that the FreeBSD port,
the SCST port, and the non-SCST Feral port are all more or less in
sync. And apparently somewhat functional.



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@825 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-05-07 01:52:56 +00:00
Vladislav Bolkhovitin
f572d4ff79 - Copyrights updated.
- Other minor updates



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@803 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-04-27 19:01:28 +00:00
Stanislaw Gruszka
cfb897c6c1 Reapply r689 (dropped in r742) to fix CentOS compilation. Thanks Smadar Gonen.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@795 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-04-23 19:52:51 +00:00
Stanislaw Gruszka
1bb5ee306a Rewrite way we disable target. We need to care for pending commands to free all
resources when user disable target mode. Currently we block receiving any new
commands from low level driver, wait for SCST to finish processing all queued
commands and then disable target mode in the device. This way we cope with all
possible races and lacks when target is disabled. Thanks to Smadar Gonen!


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@794 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-04-23 19:37:40 +00:00
Stanislaw Gruszka
8bf107d9fb Allow to compile with modern gcc-4.x compiler, which make some sophisticated
loop optimizations.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@782 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-04-16 11:57:46 +00:00
Dotan Barak
7863eed840 A bit of brushing up to put library like functions in isp_library.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@781 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-04-14 22:19:26 +00:00
Stanislaw Gruszka
a2664a8d2b - Disallow to pass command to low level driver when we user is disabling target
mode (protect by disable_sem).
- Fix parentheses in unlikely statement.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@780 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-04-14 20:25:20 +00:00
Stanislaw Gruszka
a85f34be79 Make debug messages more informative when more than one port are used.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@779 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-04-14 20:18:39 +00:00
Stanislaw Gruszka
348824b6a3 Add firmware state, loop state, topology and link speed human readable
information to procfs.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@777 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-04-14 20:05:52 +00:00
Dotan Barak
25a289c0f6 Initial 8Gb support, not tested very well yet.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@742 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-04-03 06:35:36 +00:00
Dotan Barak
2d3b3f19fd Make it compile on CentOS, or so Vlad asserts.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@740 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-04-03 00:44:57 +00:00
Dotan Barak
6291409b82 Use inline numbers for masks rather than assume peace
and goodwill and basic sensible cooperation.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@689 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-03-04 18:38:48 +00:00
Dotan Barak
8f6b4e5b99 Put some limit checking on dma segments so that
we don't, somehow, inadvertantly overrun the total
number of queue entries for a command + continuation
segments.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@680 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-02-23 23:18:25 +00:00
Dotan Barak
6880b800ef Major rewrite of DMA mapping code to reduce code duplication
and to allow some debug and enhancements that will be easier
soon.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@679 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-02-23 00:13:25 +00:00
Vladislav Bolkhovitin
e8b67bb755 - Docs updates
- Minor cleanups



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@675 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-02-18 18:52:35 +00:00
Dotan Barak
97abf4d107 Merge in work from Feral into this branch. The
recovery from not being able to push a ctio
fix is in. Various task management fixes are
also in. Other work in progress.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@672 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-02-11 18:55:43 +00:00
Dotan Barak
5e1547134a Broaden tags target.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@671 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-02-11 18:54:17 +00:00
Dotan Barak
e4d19dd1da Remove some misleading and dead files.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@661 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-02-03 06:32:12 +00:00
Dotan Barak
75561e4790 Update some firmware sets.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@660 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-02-03 06:31:27 +00:00
Vladislav Bolkhovitin
06905f3e57 Follow-up improvements to r556
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@558 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2008-10-31 16:17:08 +00:00
Vladislav Bolkhovitin
90c831b838 Cleanup removing usage of in_atomic(). Particularly, now target drivers and dev handlers need to explicitly supply preferred execution context in scst_cmd_done() and scst_tgt_cmd_done().
WARNING! This commit changes external SCST interface, so it can break compilation of your out of SCST SVN tree target driver or dev handler. To fix it, simply supply the preferred exection context to scst_cmd_done() and/or scst_tgt_cmd_done().

Thanks to Bart Van Assche <bart.vanassche@gmail.com> for pointing on it.



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@556 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2008-10-31 10:49:25 +00:00
Dotan Barak
d7d2f38d5e Fix missing removal of DECLARE_MUTEX_UNLOCKED noticed by Shai.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@535 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2008-10-24 00:19:11 +00:00
Dotan Barak
d247bbbd5e Get rid of obsolete DECLARE_MUTEX_LOCKED usage.
Call device_create with extra driver data argument (NULL)
on 2.6.27 and later.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@532 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2008-10-22 21:45:16 +00:00
Dotan Barak
7a3b527b88 Belatedly put in a patch to avoid an OOPS that Stanley had
sent me but I hadn't integrated. Bad me.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@496 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2008-09-24 01:09:27 +00:00
Dotan Barak
508b07dbb0 Add more startup delay for 24XX cards when execing f/w (temp soln)
Add support for up through 2.6.25 (might even be good for 2.6.26)
Remove HBAAPI support. This never has worked well and I doubt anyone will miss it.
Remove files not pertinent SCST build.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@493 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2008-09-12 22:30:21 +00:00
Dotan Barak
1257ac6ecf Make qlaispd sleep interruptible so as to now
skew process statistics.

Submitted by: Stanislaw Gruszka



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@489 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2008-08-16 17:05:07 +00:00
Dotan Barak
aef7fa62d9 Fixed the following sparse warnings:
warning: Using plain integer as NULL pointer
warning: obsolete struct initializer, use C99 syntax
warning: symbol 'hba_api_ioctl_operations' was not declared. Should it be static?

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



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@488 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2008-08-14 22:42:58 +00:00
Stanislaw Gruszka
0622954292 Add KVER make parameter and remove Module{,s}.symvers on clean.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@451 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2008-07-10 06:44:28 +00:00
Vladislav Bolkhovitin
8c71b68271 - Version changed to 1.0.1
- Switched back to the debug mode



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@442 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2008-07-09 16:44:01 +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
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
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