14 years agoPatch from Vu Pham <vuhuong@mellanox.com>: SRP target driver
vlnb [Mon, 17 Mar 2008 11:29:50 +0000 (11:29 +0000)]
Patch from Vu Pham <vuhuong@mellanox.com>: SRP target driver

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@304 d57e44dd-8a1f-0410-8b47-8ef2f437770f

14 years agoFixes possible *dev_cmd_count leak
vlnb [Fri, 14 Mar 2008 10:42:03 +0000 (10:42 +0000)]
Fixes possible *dev_cmd_count leak

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@303 d57e44dd-8a1f-0410-8b47-8ef2f437770f

14 years agoBugfixes:
swgruszka [Thu, 13 Mar 2008 10:58:44 +0000 (10:58 +0000)]
- pass commands to SCST after assigning initiator to them
- enable lun's on proper channel

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@302 d57e44dd-8a1f-0410-8b47-8ef2f437770f

14 years ago - Fixed race on TM leading to crashes
vlnb [Tue, 11 Mar 2008 19:09:30 +0000 (19:09 +0000)]
 - Fixed race on TM leading to crashes
 - Connection close improved to be less agressive and honor TCP TIME_WATE state
 - Docs updates

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@301 d57e44dd-8a1f-0410-8b47-8ef2f437770f

14 years agoProtect initiators list using tmds_lock. Avoid possibility to
swgruszka [Tue, 11 Mar 2008 14:27:13 +0000 (14:27 +0000)]
Protect initiators list using tmds_lock. Avoid possibility to
allocate initiator twice.

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@300 d57e44dd-8a1f-0410-8b47-8ef2f437770f

14 years ago - Fixed READ POSITION command handling
vlnb [Mon, 10 Mar 2008 10:59:56 +0000 (10:59 +0000)]
 - Fixed READ POSITION command handling
 - Fixed race in TM handling

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@299 d57e44dd-8a1f-0410-8b47-8ef2f437770f

14 years ago - Fixed race on TM processing leading to BUG()
vlnb [Wed, 5 Mar 2008 18:22:01 +0000 (18:22 +0000)]
 - Fixed race on TM processing leading to BUG()
 - Fixed dev_cdrom and dev_modisk load failures if there are no media in the drives
 - Other minor fixes and cleanups

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@298 d57e44dd-8a1f-0410-8b47-8ef2f437770f

14 years ago - TM fixes
vlnb [Fri, 29 Feb 2008 18:25:56 +0000 (18:25 +0000)]
 - TM fixes
 - Optimizations and send timeout introduced in r295 temporary disabled
 - Big connection shutdown times improvements. Great thanks to Alexey Kuznetsov for suggestions!
 - RESERVE/RELEASE serialization now made with TST field 0 (i.e. single task set)
 - Other minor fixes and improvements

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@297 d57e44dd-8a1f-0410-8b47-8ef2f437770f

14 years ago - Fixes for previous commit
vlnb [Tue, 26 Feb 2008 18:22:45 +0000 (18:22 +0000)]
 - Fixes for previous commit
 - Minor logging improvements

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@296 d57e44dd-8a1f-0410-8b47-8ef2f437770f

14 years agoA bunch of pending changes:
vlnb [Mon, 25 Feb 2008 18:48:02 +0000 (18:48 +0000)]
A bunch of pending changes:
 - Response data send timeout implemented: now if initiator doesn't accept data for too long (7 sec), target closes connection
 - Connction closing improved: now session cleared without need to wait for all outstanding commands data fully transmitted
 - On session unregistration now all outstanding commands are implicitely aborted
 - TM processing in SCST core made independant from other TM commands (before they were serialized)
 - Few bug fixes
 - Other minor improvements and cleanups
 - Docs update

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@295 d57e44dd-8a1f-0410-8b47-8ef2f437770f

14 years agoPass proper expected length for INQUIRY command
swgruszka [Tue, 19 Feb 2008 12:02:14 +0000 (12:02 +0000)]
Pass proper expected length for INQUIRY command

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@294 d57e44dd-8a1f-0410-8b47-8ef2f437770f

14 years agoUpdate README
swgruszka [Tue, 19 Feb 2008 10:42:43 +0000 (10:42 +0000)]

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@293 d57e44dd-8a1f-0410-8b47-8ef2f437770f

14 years agoCompilation for kernel 2.6.24
swgruszka [Tue, 19 Feb 2008 10:12:12 +0000 (10:12 +0000)]
Compilation for kernel 2.6.24

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@292 d57e44dd-8a1f-0410-8b47-8ef2f437770f

14 years agoAllow driver to compile
swgruszka [Tue, 19 Feb 2008 09:38:52 +0000 (09:38 +0000)]
Allow driver to compile

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@291 d57e44dd-8a1f-0410-8b47-8ef2f437770f

14 years agoAvoid race conditions when task is aborted. Commands can be
swgruszka [Tue, 19 Feb 2008 09:37:46 +0000 (09:37 +0000)]
Avoid race conditions when task is aborted. Commands can be
in two places, our internal queue or passed to SCST.

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@290 d57e44dd-8a1f-0410-8b47-8ef2f437770f

14 years agoInterface to enable/disable target per channel
swgruszka [Tue, 19 Feb 2008 09:19:38 +0000 (09:19 +0000)]
Interface to enable/disable target per channel

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@289 d57e44dd-8a1f-0410-8b47-8ef2f437770f

14 years agoSome cleanups and performance works
vlnb [Mon, 18 Feb 2008 18:44:29 +0000 (18:44 +0000)]
Some cleanups and performance works

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@288 d57e44dd-8a1f-0410-8b47-8ef2f437770f

14 years ago - Fixed minor problem in iSCSI-SCST
vlnb [Wed, 13 Feb 2008 17:15:47 +0000 (17:15 +0000)]
 - Fixed minor problem in iSCSI-SCST
 - Important reference counting and barriers usage cleanups
 - Sense buffer made dynamic
 - Other minor improvements and cleanups
 - Docs updates

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@287 d57e44dd-8a1f-0410-8b47-8ef2f437770f

14 years agoPrevent to compile broken driver
swgruszka [Wed, 13 Feb 2008 16:28:35 +0000 (16:28 +0000)]
Prevent to compile broken driver

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@286 d57e44dd-8a1f-0410-8b47-8ef2f437770f

14 years agoLet's isp_scst.c compile, multichannel support will be added later.
swgruszka [Tue, 12 Feb 2008 11:52:00 +0000 (11:52 +0000)]
Let's isp_scst.c compile, multichannel support will be added later.

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@285 d57e44dd-8a1f-0410-8b47-8ef2f437770f

14 years agoSynchronize with Feral CVS repository:
swgruszka [Tue, 12 Feb 2008 11:10:16 +0000 (11:10 +0000)]
Synchronize with Feral CVS repository:

Clean up MSI-X implementation and make sure we snag at least *3* vectors
so that the ATIO-Q vector is snagged.

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@284 d57e44dd-8a1f-0410-8b47-8ef2f437770f

14 years agoSynchronize with Feral CVS repository:
swgruszka [Tue, 12 Feb 2008 11:08:06 +0000 (11:08 +0000)]
Synchronize with Feral CVS repository:
- Add a missing MSI disable and provide for pre-2.6.8 kernels.
- Fix bugs- forgot to actually compile (shame on me).

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@283 d57e44dd-8a1f-0410-8b47-8ef2f437770f

14 years agoSynchronize with Feral CVS repository:
swgruszka [Tue, 12 Feb 2008 11:05:04 +0000 (11:05 +0000)]
Synchronize with Feral CVS repository:

I don't know why I thought this would work- forcing a re-login to the fabric
controller just barfs.

Make down count reflect jiffies elapsed rather than depend on calls to

Shorten deadloop time default to 10 seconds.

At least enable MSI (if not MSI-X) for 24XX cards.

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@282 d57e44dd-8a1f-0410-8b47-8ef2f437770f

14 years agoSynchronize with Feral CVS repository:
swgruszka [Tue, 12 Feb 2008 11:02:21 +0000 (11:02 +0000)]
Synchronize with Feral CVS repository:

We can (somehow) get commands on an atio7 for which we've never had a PLOGI/PRLI.
How this happens, I don't know. Anyway, we stick a tentative entry in the PDB
and call the task thread to find the rest of the info. This includes, badly and
stupidly, searching for the N-port handle by asking the chip. Sometimes it's not
there. In that case, we terminate the command.

In restarting commands that arrive while we start up, have the watchdog
time call isp_task_thread- this gives us a bit of hysteresis.

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@281 d57e44dd-8a1f-0410-8b47-8ef2f437770f

14 years agoSynchronize with Feral CVS repository:
swgruszka [Tue, 12 Feb 2008 10:59:43 +0000 (10:59 +0000)]
Synchronize with Feral CVS repository:
- Need to include linux/vmalloc.h. Showed up on PPC port.
- Fix complaints about using an uninitialized pointer.

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@280 d57e44dd-8a1f-0410-8b47-8ef2f437770f

14 years agoSynchronize with Feral CVS repository:
swgruszka [Tue, 12 Feb 2008 10:55:04 +0000 (10:55 +0000)]
Synchronize with Feral CVS repository:

Make 2100/2200 and 2300 cards also maintain a target mode port database.

For the 24XX, we have to find the IID, N-port handle and channel when we
get an ATIO7. For the other cards, we already have the channel and N-port
handle and Port IID of the initiator, but have to find the S_ID.

Do the isp_find_pdb_by_{sid,loopid} functions search backwards to minimize
search time.

Don't load fw images more than once per device type!

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@279 d57e44dd-8a1f-0410-8b47-8ef2f437770f

14 years agoSynchronize with Feral CVS repository:
swgruszka [Tue, 12 Feb 2008 10:50:57 +0000 (10:50 +0000)]
Synchronize with Feral CVS repository:
- Allow ISP_FC_GETDINFO callers to get target mode entries.
- Remove stray '`' from define and PPC is now working again.
- Fix a typo which had us loading 2322 f/w into a 2300. Oops.

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@278 d57e44dd-8a1f-0410-8b47-8ef2f437770f

14 years agoSynchronize with Feral CVS repository:
swgruszka [Tue, 12 Feb 2008 10:48:35 +0000 (10:48 +0000)]
Synchronize with Feral CVS repository:

Put RISC_CODE define in the firmware files.

Use the Linux 2.6 firmware loader support if available. This saves
close to 700K of useless code getting loaded otherwise.

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@277 d57e44dd-8a1f-0410-8b47-8ef2f437770f

14 years agoSynchronize with Feral CVS repository:
swgruszka [Tue, 12 Feb 2008 10:46:32 +0000 (10:46 +0000)]
Synchronize with Feral CVS repository:

Set PCI-X and PCI-E readahead to what QLogic manuals recommend.

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@276 d57e44dd-8a1f-0410-8b47-8ef2f437770f

14 years agoSynchronize with Feral CVS repository:
swgruszka [Tue, 12 Feb 2008 10:44:49 +0000 (10:44 +0000)]
Synchronize with Feral CVS repository:

If we're in role=NONE, then make sure that isp_init code sets state to

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@275 d57e44dd-8a1f-0410-8b47-8ef2f437770f

14 years agoSynchronize with Feral CVS repository:
swgruszka [Tue, 12 Feb 2008 10:41:45 +0000 (10:41 +0000)]
Synchronize with Feral CVS repository:

Note that asking for "prefer N-port and then Loop" with the 24XX seems to
cause the f/w to crash. So, don't do that.

Firmware crashes are now considered fatal and cause the HBA to be marked dead.

Now that we've avoided the f/w crash in isp_init_24xx, we can process
toplogy options.

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@274 d57e44dd-8a1f-0410-8b47-8ef2f437770f

14 years agoSynchronize with Feral CVS repository:
swgruszka [Tue, 12 Feb 2008 10:37:37 +0000 (10:37 +0000)]
Synchronize with Feral CVS repository:

Add some code to do special IOCBs (that can just be ignored if they show
up as status IOCBs)- this is for some performance testing infrastructure.

Add some performance testing stuff.

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@273 d57e44dd-8a1f-0410-8b47-8ef2f437770f

14 years agoSynchronize with Feral CVS repository:
swgruszka [Tue, 12 Feb 2008 10:18:14 +0000 (10:18 +0000)]
Synchronize with Feral CVS repository:

Don't use both WWNs in the ICB block unless they're not NAA==2. This makes us
more consistent with QLogic driver setups and thus more likely to fit into the
same zoning setups.

If we're getting a PDB and it's for the Fabric Controller, force a login
to it (just in case it logged out underneath us). Return 'not logged in'
for the 24XX in case the 24XX specific login state isn't in the range of

Don't do local loop scans if we have more than one channel (NP-IV) and we're
in a FL-port topology- we just end up poking ourselves usually.

Make sure we set loopstate in a couple of places we missed so that we
try and get it again.

Add in the RESET DEVICE and ABORT COMMAND functions for the 24XX cards

Fix a longstanding bug where were passing the wrong (off by one) output
pointer to isp_handle_other_response.

Change isp_async...ISPASYNC_CHANGE_NOTIFY to have N-port handle, nlstate and
reason included as we get these for free with PDB Changed stuff for the
24XX card. Eventually we should be able to edit single local PDB entry
states instead of doing a full eval.

Put in the put of a 24XX Task Management Function IOCB. There is no get because
the firmware doesn't return it when done- instead a status iocb is done.

There is no "FAST POST" flag for the 24XX- this is a NOACK flag which means
that there is no interrupt if all goes well.

Fix spelling mistakes.

In isp_add_wwn_entry, ahem, don't allocate PDB entries out of the 'rexerved
for chip' area.

Put more comments in as to why we're terminating an exchange (and make them

Add, finally, the correct handling for a QIN_NOTIFY_ACK for a task management
function- this means we construct a ct7_entry_t to get the firmware to send
an FC Response IU for it. So, finally LUN RESETS and TARGET RESETS and
ABORT TASK will actually work and, more importantly, be seen to be working
by initiators.

Fix WWN defaults/active generation and retrieval. It was broken.

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@272 d57e44dd-8a1f-0410-8b47-8ef2f437770f

14 years agoSynchronize with Feral CVS repository:
swgruszka [Tue, 12 Feb 2008 10:02:35 +0000 (10:02 +0000)]
Synchronize with Feral CVS repository:

Fix a comment typo. Force on HARD ADDRESS for the 24XX.

Fix retry on error case- most of the time we *don't* want to retry a command
sent back with TDFL_ERROR set- instead we want to set PARITY ERROR as a
CA condition and just FIN the cmd.

Comment for r270:

1. A major botch for local loop handling - we were never getting past loopid zero
in isp_scan_loop. Bad doggie!

2. *Do* scan our loopid- this seems to allow us to find entities which are there
and have a N-port handle that is identical to ours. I have no idea how the QLogic
sorts this out. At least, this is how it seems to work for the 24XX in local loop

Don't deadlock with the HBA lock when performing a rescan ioctl. Also,
mark the loop state as if we'd just received a PDB event- that way

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@271 d57e44dd-8a1f-0410-8b47-8ef2f437770f

14 years agoSynchronize with Feral CVS repository:
swgruszka [Tue, 12 Feb 2008 09:57:26 +0000 (09:57 +0000)]
Synchronize with Feral CVS repository:

Fix a comment typo. Force on HARD ADDRESS for the 24XX.

Fix retry on error case- most of the time we *don't* want to retry a command
sent back with TDFL_ERROR set- instead we want to set PARITY ERROR as a
CA condition and just FIN the cmd.

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@270 d57e44dd-8a1f-0410-8b47-8ef2f437770f

14 years agoSynchronize with Feral CVS repository:
swgruszka [Tue, 12 Feb 2008 09:55:49 +0000 (09:55 +0000)]
Synchronize with Feral CVS repository:
- fix comment

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@269 d57e44dd-8a1f-0410-8b47-8ef2f437770f

14 years agoSynchronize with Feral CVS repository:
swgruszka [Tue, 12 Feb 2008 09:53:27 +0000 (09:53 +0000)]
Synchronize with Feral CVS repository:
- Allow LIP to have a (possible) channel.
- Update for some channel stuff.
- whitespace

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@268 d57e44dd-8a1f-0410-8b47-8ef2f437770f

14 years agoSynchronize with Feral CVS repository:
swgruszka [Tue, 12 Feb 2008 09:51:21 +0000 (09:51 +0000)]
Synchronize with Feral CVS repository:
- Clean up 24XX abort handling.
- Remove the response queue busy stuff and just have an in_intr flag to note
  interrupt recursion.
- Add a lower level error flag.
- Clarifiy a comment; make a definition for the 'no task' RX_ID.
- Change severity of f/w timeout message
- Do the wait for mbox0 clearing for 2312 cards > revision 1.

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@267 d57e44dd-8a1f-0410-8b47-8ef2f437770f

14 years agoSynchronize with Feral CVS repository:
swgruszka [Tue, 12 Feb 2008 09:43:44 +0000 (09:43 +0000)]
Synchronize with Feral CVS repository:
- Make sure we set/clear TDFL_ERROR
- Make sure we set SENSE VALID when we do a synthetic CTIO that has status.

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@266 d57e44dd-8a1f-0410-8b47-8ef2f437770f

14 years agoSynchronize with Feral CVS repository:
swgruszka [Tue, 12 Feb 2008 09:40:40 +0000 (09:40 +0000)]
Synchronize with Feral CVS repository:

Add unit attention injection. Fix some ridiculous Sense things.

Say why we couldn't pci register the driver.

Make isp_thread_event return an int if it fails to send the event. If it
fails to send the event, and this was for the 24XX card finding out the
initiator for a command, return the command with a BUSY status.

An N-port handle of zero is legal for a 24XX.

Add some more special N-Port handle definitions for 2K f/w.

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@265 d57e44dd-8a1f-0410-8b47-8ef2f437770f

14 years agoSynchronize with Feral CVS repository:
swgruszka [Tue, 12 Feb 2008 09:35:47 +0000 (09:35 +0000)]
Synchronize with Feral CVS repository:

Warn about bogus sense data in isp_target_start_ctio. Remove some redundant
zero initializations.

Make more common and more useful the debug printouts for the
various target dma mapping routines.

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@264 d57e44dd-8a1f-0410-8b47-8ef2f437770f

14 years agoSynchronize with Feral CVS repository:
swgruszka [Tue, 12 Feb 2008 09:33:44 +0000 (09:33 +0000)]
Synchronize with Feral CVS repository:

- Start checking for a couple of things for the type of SAN we're connected to.
- Remove restriction against 2.6.23.

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@263 d57e44dd-8a1f-0410-8b47-8ef2f437770f

14 years agoSynchronize with Feral CVS repository:
swgruszka [Tue, 12 Feb 2008 09:31:23 +0000 (09:31 +0000)]
Synchronize with Feral CVS repository:

As of version 4.0.25 the vpindex is available for MID f/w on the 24XX
for ASYNC_CHANGE_NOTIFY in outgoing mailbox 3.

Per QLogic release notes, the immediate notify entry for the 24XX has
various other items of interest in it based upon the ELS code.

Per QLogic release notes, after 4.0.25 f/w the WWPN comes with the
PLOGI/PDISC/ADISC and LOGO ELS codes in the immediate notify structure.
This makes initiator WWN maintenance *way* easier.

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@262 d57e44dd-8a1f-0410-8b47-8ef2f437770f

14 years agoSynchronize with Feral CVS repository:
swgruszka [Tue, 12 Feb 2008 09:22:32 +0000 (09:22 +0000)]
Synchronize with Feral CVS repository:
Hmm. Just in case INI_ANY and INI_NONE are not defined, define them here.
This is for the case of external software including isp_tpublic.h only.

Fix some misapplied flags.

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@261 d57e44dd-8a1f-0410-8b47-8ef2f437770f

14 years agoSynchronize with Feral CVS repository:
swgruszka [Tue, 12 Feb 2008 09:18:28 +0000 (09:18 +0000)]
Synchronize with Feral CVS repository:

Go for the gusto and merge multichan_development into the head branch. This
will break FreeBSD and NetBSD ports for a while (yawn) and solaris is dubious

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@260 d57e44dd-8a1f-0410-8b47-8ef2f437770f

14 years agoSynchronize with Feral CVS repository:
swgruszka [Tue, 12 Feb 2008 09:11:30 +0000 (09:11 +0000)]
Synchronize with Feral CVS repository:
- do not dereference a null pointer

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@259 d57e44dd-8a1f-0410-8b47-8ef2f437770f

14 years agoSynchronize with Feral CVS repository:
swgruszka [Tue, 12 Feb 2008 09:08:33 +0000 (09:08 +0000)]
Synchronize with Feral CVS repository:

Turn off, yet again, fast posting and RIO for 2200 cards. It just seems
to buggy in this driver to be used, and because of the age of the cards
not worth chasing down.

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@258 d57e44dd-8a1f-0410-8b47-8ef2f437770f

14 years agoSynchronize with Feral CVS repository:
swgruszka [Tue, 12 Feb 2008 09:05:53 +0000 (09:05 +0000)]
Synchronize with Feral CVS repository:
- whitespace

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@257 d57e44dd-8a1f-0410-8b47-8ef2f437770f

14 years agoSynchronize with Feral CVS repository:
swgruszka [Tue, 12 Feb 2008 08:58:04 +0000 (08:58 +0000)]
Synchronize with Feral CVS repository:
-revert the part of 1.174 that stopped complaining about not finding
 fast posting handles.
 multi-channel branch

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@256 d57e44dd-8a1f-0410-8b47-8ef2f437770f

14 years agoSynchronize with Feral CVS repository:
swgruszka [Tue, 12 Feb 2008 08:40:54 +0000 (08:40 +0000)]
Synchronize with Feral CVS repository:
- clean up tpublic notes and change tmd_xfr_t to tmd_xact_t
- minor cleanups from mendocino

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@255 d57e44dd-8a1f-0410-8b47-8ef2f437770f

14 years agoSmall typo noticed by Tomasz Chmielewski
vlnb [Fri, 8 Feb 2008 16:20:27 +0000 (16:20 +0000)]
Small typo noticed by Tomasz Chmielewski

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@254 d57e44dd-8a1f-0410-8b47-8ef2f437770f

14 years agoClustering statistic added
vlnb [Fri, 1 Feb 2008 15:41:38 +0000 (15:41 +0000)]
Clustering statistic added

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@253 d57e44dd-8a1f-0410-8b47-8ef2f437770f

14 years agoForgotten in the previous commit kernel patches
vlnb [Fri, 1 Feb 2008 10:33:47 +0000 (10:33 +0000)]
Forgotten in the previous commit kernel patches

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@252 d57e44dd-8a1f-0410-8b47-8ef2f437770f

14 years ago - Update to work on 2.6.24
vlnb [Thu, 31 Jan 2008 18:28:43 +0000 (18:28 +0000)]
 - Update to work on 2.6.24
 - Minor cleanups

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@251 d57e44dd-8a1f-0410-8b47-8ef2f437770f

14 years agoWeb pages updated
vlnb [Thu, 24 Jan 2008 12:21:45 +0000 (12:21 +0000)]
Web pages updated

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@250 d57e44dd-8a1f-0410-8b47-8ef2f437770f

14 years ago - Version protection added
vlnb [Thu, 24 Jan 2008 11:52:01 +0000 (11:52 +0000)]
 - Version protection added
 - Cleanups

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@249 d57e44dd-8a1f-0410-8b47-8ef2f437770f

14 years ago - A bunch of minor, mostly stability related, fixes.
vlnb [Thu, 24 Jan 2008 10:56:35 +0000 (10:56 +0000)]
 - A bunch of minor, mostly stability related, fixes.
 - Docs update

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@248 d57e44dd-8a1f-0410-8b47-8ef2f437770f

14 years agoWeb pages updated
vlnb [Wed, 23 Jan 2008 16:03:20 +0000 (16:03 +0000)]
Web pages updated

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@247 d57e44dd-8a1f-0410-8b47-8ef2f437770f

14 years ago - Important iSCSI stability on connection close fixes.
vlnb [Fri, 18 Jan 2008 19:13:04 +0000 (19:13 +0000)]
 - Important iSCSI stability on connection close fixes.
 - Latency measurements improvements
 - Minor improvements and logging changes

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@246 d57e44dd-8a1f-0410-8b47-8ef2f437770f

14 years ago - Processing latency measurement facility added
vlnb [Mon, 14 Jan 2008 18:21:01 +0000 (18:21 +0000)]
 - Processing latency measurement facility added
 - README updated
 - Minor fixes

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@245 d57e44dd-8a1f-0410-8b47-8ef2f437770f

14 years agoLogging improvements
vlnb [Fri, 11 Jan 2008 18:09:38 +0000 (18:09 +0000)]
Logging improvements

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@244 d57e44dd-8a1f-0410-8b47-8ef2f437770f

14 years ago - Fixed possible crash on SN slots overflow
vlnb [Fri, 11 Jan 2008 10:03:48 +0000 (10:03 +0000)]
 - Fixed possible crash on SN slots overflow
 - Docs updates
 - Other minor changes

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@243 d57e44dd-8a1f-0410-8b47-8ef2f437770f

14 years ago - Fixes two problems on connection closing, leading to crashes and memory corruptions
vlnb [Fri, 4 Jan 2008 17:29:58 +0000 (17:29 +0000)]
 - Fixes two problems on connection closing, leading to crashes and memory corruptions
 - Small logging improvements

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@242 d57e44dd-8a1f-0410-8b47-8ef2f437770f

14 years agoMinor logging changes
vlnb [Mon, 31 Dec 2007 11:42:23 +0000 (11:42 +0000)]
Minor logging changes

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@241 d57e44dd-8a1f-0410-8b47-8ef2f437770f

14 years ago - Fixed huge iSCSI RFC violation, inherited from IET: incorrect commands ordering.
vlnb [Sat, 29 Dec 2007 17:04:13 +0000 (17:04 +0000)]
 - Fixed huge iSCSI RFC violation, inherited from IET: incorrect commands ordering.
 - TM fixes related to new commands serialization
 - Other TM improvements
 - Minor changes: likely/unlikely and priority of mgmt threads

Work not fully completed, still there are some rare issues.

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@240 d57e44dd-8a1f-0410-8b47-8ef2f437770f

14 years ago - Broken VERIFY commands fixed (hopefully; compile tested only)
vlnb [Mon, 24 Dec 2007 19:22:02 +0000 (19:22 +0000)]
 - Broken VERIFY commands fixed (hopefully; compile tested only)
 - Mistyped spin_lock() instead spin_lock_bh() fixed
 - DEBUG_TM and small logging improvements
 - Docs update

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@239 d57e44dd-8a1f-0410-8b47-8ef2f437770f

14 years agoPatches from Arne Redlich <agr@powerkom-dd.de>:
vlnb [Mon, 24 Dec 2007 10:20:18 +0000 (10:20 +0000)]
Patches from Arne Redlich <agr@powerkom-dd.de>:
1. The kernel's log level is a string, so strcmp needs to be used for

2. Svn HEAD doesn't compile against kernel versions < 2.6.19 because
"bool" had its debut only in 2.6.19. Here's a quick fix.

3. Iscsi-scstd dies with SIGPIPE if run in foreground mode because the reading
end of the init_report_pipe is already closed in this mode.

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@238 d57e44dd-8a1f-0410-8b47-8ef2f437770f

14 years ago - Update to the latest IET r145
vlnb [Fri, 21 Dec 2007 19:10:40 +0000 (19:10 +0000)]
 - Update to the latest IET r145
 - TM fixes and improvements, particularly, TARGET RESET now resets only visible to the initiator devices
 - Logs improvements

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@237 d57e44dd-8a1f-0410-8b47-8ef2f437770f

14 years ago - Makes sessions registration/unregistration independant from other activities
vlnb [Fri, 14 Dec 2007 16:51:36 +0000 (16:51 +0000)]
 - Makes sessions registration/unregistration independant from other activities
 - Cleanups
 - Docs update

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@236 d57e44dd-8a1f-0410-8b47-8ef2f437770f

14 years agoMinor fixes and improvements
vlnb [Fri, 14 Dec 2007 16:43:23 +0000 (16:43 +0000)]
Minor fixes and improvements

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@235 d57e44dd-8a1f-0410-8b47-8ef2f437770f

14 years agoPerf/release patches fixes
vlnb [Thu, 13 Dec 2007 18:33:30 +0000 (18:33 +0000)]
Perf/release patches fixes

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@234 d57e44dd-8a1f-0410-8b47-8ef2f437770f

14 years ago - Implement SN based iSCSI IO flow control
vlnb [Thu, 13 Dec 2007 18:28:34 +0000 (18:28 +0000)]
 - Implement SN based iSCSI IO flow control
 - TM fixes and cleanups
 - Fixes crash on modprobe with some real devices

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@233 d57e44dd-8a1f-0410-8b47-8ef2f437770f

14 years ago - Fixed incorrect residual on internal BUSY replies
vlnb [Wed, 12 Dec 2007 16:06:47 +0000 (16:06 +0000)]
 - Fixed incorrect residual on internal BUSY replies
 - Cleanups and ChangeLog updates

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@232 d57e44dd-8a1f-0410-8b47-8ef2f437770f

14 years agoFixed possible crash if tgt module rmmod'ed under load
vlnb [Tue, 11 Dec 2007 10:51:08 +0000 (10:51 +0000)]
Fixed possible crash if tgt module rmmod'ed under load

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@231 d57e44dd-8a1f-0410-8b47-8ef2f437770f

14 years agoPost r227 fixes and cleanups. Particulary, fixes brocken by it scst_user functionalit...
vlnb [Mon, 10 Dec 2007 12:09:07 +0000 (12:09 +0000)]
Post r227 fixes and cleanups. Particulary, fixes brocken by it scst_user functionality and release/perf builds

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@230 d57e44dd-8a1f-0410-8b47-8ef2f437770f

14 years agoPass delivery status to SCST.
swgruszka [Mon, 10 Dec 2007 11:53:05 +0000 (11:53 +0000)]
Pass delivery status to SCST.

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@229 d57e44dd-8a1f-0410-8b47-8ef2f437770f

14 years agoPatch from Vu Pham <huongvp@yahoo.com>:
vlnb [Fri, 7 Dec 2007 17:32:33 +0000 (17:32 +0000)]
Patch from Vu Pham <huongvp@yahoo.com>:

We currently have multiple scst targets with exported fileio or blockio luns using the same files or block devices.
These fileio or blockio luns end up to have the same lun ID (dev_id_num), linux dm-multipath  recognizes them as same lun (because of lun ID) with different paths which is wrong. It should be multiple separated luns from different scst targets.

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@228 d57e44dd-8a1f-0410-8b47-8ef2f437770f

14 years agoSimple bugfix for concurrent work of several targets, which eventually turned out...
vlnb [Fri, 7 Dec 2007 17:00:42 +0000 (17:00 +0000)]
Simple bugfix for concurrent work of several targets, which eventually turned out in a massive cleanup and fixes.
 - Added ability for target drivers to set result of command's status delvery to initiator (see scst_set_delivery_status())
 - Added ability for user space devices set some mode page parameters to make SCST core behave correspondingly
 - TM improvements
 - Few possible crashes fixed
 - Logging improvements
 - Performance improvements
 - Docs updates

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@227 d57e44dd-8a1f-0410-8b47-8ef2f437770f

14 years agoPatch from Krzysztof Blaszkowski <kb@sysmikro.com.pl>: Let SLAB decide amount of...
vlnb [Mon, 26 Nov 2007 16:47:16 +0000 (16:47 +0000)]
Patch from Krzysztof Blaszkowski <kb@sysmikro.com.pl>: Let SLAB decide amount of pages per slab

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@226 d57e44dd-8a1f-0410-8b47-8ef2f437770f

14 years ago - Fixes build problem in perf mode
vlnb [Mon, 26 Nov 2007 16:23:50 +0000 (16:23 +0000)]
 - Fixes build problem in perf mode
 - Switches between debug modes made as Makefile targets, thanks Tomasz Chmielewski <mangoo@wpkg.org> for idea

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@225 d57e44dd-8a1f-0410-8b47-8ef2f437770f

14 years agoFixes crash on reservation conflict + some cleanups
vlnb [Fri, 16 Nov 2007 18:46:02 +0000 (18:46 +0000)]
Fixes crash on reservation conflict + some cleanups

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@224 d57e44dd-8a1f-0410-8b47-8ef2f437770f

14 years ago - Fixes hang in TCP CLOSE/CLOSE_WAIT stages
vlnb [Thu, 15 Nov 2007 16:12:08 +0000 (16:12 +0000)]
 - Fixes hang in TCP CLOSE/CLOSE_WAIT stages
 - Minor debug improvements

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@223 d57e44dd-8a1f-0410-8b47-8ef2f437770f

14 years agoFixes race found by Anton Novodvorsky <anovodvorsky@gmail.com>
vlnb [Thu, 15 Nov 2007 15:54:53 +0000 (15:54 +0000)]
Fixes race found by Anton Novodvorsky <anovodvorsky@gmail.com>

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@222 d57e44dd-8a1f-0410-8b47-8ef2f437770f

14 years agoNow if iSCSI daemon fails to load config file, it fails to load.
vlnb [Tue, 13 Nov 2007 17:28:28 +0000 (17:28 +0000)]
Now if iSCSI daemon fails to load config file, it fails to load.

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@221 d57e44dd-8a1f-0410-8b47-8ef2f437770f

14 years ago - Now iSCSI target service load considered successful if at least one listen socket...
vlnb [Mon, 12 Nov 2007 11:21:54 +0000 (11:21 +0000)]
 - Now iSCSI target service load considered successful if at least one listen socket was successfully open and setup
 - Minor race on BLOCKIO requests submittion was fixed
 - Other minor fixes and cleanups

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@220 d57e44dd-8a1f-0410-8b47-8ef2f437770f

14 years ago- Fixed config file parsing for null groups when a group
mgandalf [Wed, 7 Nov 2007 19:00:58 +0000 (19:00 +0000)]
- Fixed config file parsing for null groups when a group
  name was the same as an assignment immediately following
- Added support for undefined groups at the time of assignment.
  If a given group does not exist, an empty group will be
  created and a warning will be issued.
- Make method cleanupString() in SCST::SCST private.
- Minor updates.

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@219 d57e44dd-8a1f-0410-8b47-8ef2f437770f

14 years agoFixes regression introduced in r209
vlnb [Wed, 7 Nov 2007 15:28:43 +0000 (15:28 +0000)]
Fixes regression introduced in r209

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@218 d57e44dd-8a1f-0410-8b47-8ef2f437770f

14 years agoMinor pass-through related fixes and logging improvelemnts
vlnb [Fri, 2 Nov 2007 19:20:59 +0000 (19:20 +0000)]
Minor pass-through related fixes and logging improvelemnts

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@217 d57e44dd-8a1f-0410-8b47-8ef2f437770f

14 years agoremove no_autosense workaround
swgruszka [Fri, 2 Nov 2007 11:02:50 +0000 (11:02 +0000)]
remove no_autosense workaround
on receive check if all data was transferred before pass it to scst

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@216 d57e44dd-8a1f-0410-8b47-8ef2f437770f

14 years agosynchronize with feral cvs repository, this time Matthew fix autosense problems :-)
swgruszka [Fri, 2 Nov 2007 08:43:47 +0000 (08:43 +0000)]
synchronize with feral cvs repository, this time Matthew fix autosense problems :-)

+ The 24XX code in isp_target_start_ctio was setting the wrong values

+ Amusingly enough, this apparently didn't matter. In fact, once sense
data was being put into the ct7_entry_t there was *still* a problem
and REQUEST SENSE was being sent by the Linux initiator.

+ What *was* happening is that the 24XX requries the response data to
be 32 bit swapped. This is not obvious from the chip documents.

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@215 d57e44dd-8a1f-0410-8b47-8ef2f437770f

14 years agoCleanups, debug imporvements and minor fixes
vlnb [Thu, 1 Nov 2007 17:07:07 +0000 (17:07 +0000)]
Cleanups, debug imporvements and minor fixes

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@214 d57e44dd-8a1f-0410-8b47-8ef2f437770f

14 years ago - Patch from Tomasz Chmielewski <mangoo@wpkg.org>: fixes incorrect shutdown on Debia...
vlnb [Fri, 26 Oct 2007 15:58:50 +0000 (15:58 +0000)]
 - Patch from Tomasz Chmielewski <mangoo@wpkg.org>: fixes incorrect shutdown on Debian systems.

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@213 d57e44dd-8a1f-0410-8b47-8ef2f437770f

14 years ago - Fixed ignoring errors on the service start. Reported by Tomasz Chmielewski <mangoo...
vlnb [Thu, 25 Oct 2007 16:19:40 +0000 (16:19 +0000)]
 - Fixed ignoring errors on the service start. Reported by Tomasz Chmielewski <mangoo@wpkg.org>
 - Minor fixes

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@212 d57e44dd-8a1f-0410-8b47-8ef2f437770f

14 years ago - Fixed typos noticed by Tomasz Chmielewski
vlnb [Thu, 25 Oct 2007 10:46:29 +0000 (10:46 +0000)]
 - Fixed typos noticed by Tomasz Chmielewski
 - Forgotten fixes for previous commit
--Tohis line, and those below, will be ignored--

M    trunk/iscsi-scst/kernel/patches/put_page_callback-
M    trunk/iscsi-scst/kernel/patches/put_page_callback-
M    trunk/iscsi-scst/kernel/patches/put_page_callback-2.6.22.patch
M    trunk/iscsi-scst/kernel/patches/put_page_callback-2.6.23.patch
M    trunk/iscsi-scst/kernel/patches/put_page_callback-
M    trunk/scst-full_perf.patch
M    trunk/scst-release.patch

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@211 d57e44dd-8a1f-0410-8b47-8ef2f437770f

14 years ago - Cleanups and fixes in transfer length and direction processing.
vlnb [Thu, 25 Oct 2007 09:54:00 +0000 (09:54 +0000)]
 - Cleanups and fixes in transfer length and direction processing.

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@210 d57e44dd-8a1f-0410-8b47-8ef2f437770f

14 years agoUpdate to work on 2.6.23+ kernels + some other related fixes and updates
vlnb [Tue, 23 Oct 2007 15:35:20 +0000 (15:35 +0000)]
Update to work on 2.6.23+ kernels + some other related fixes and updates

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@209 d57e44dd-8a1f-0410-8b47-8ef2f437770f

14 years agoremove not necessary linux 2.4 Makefiles, isp stops support 2.4
swgruszka [Tue, 23 Oct 2007 09:51:55 +0000 (09:51 +0000)]
remove not necessary linux 2.4 Makefiles, isp stops support 2.4
update copyrights (GPLv3 avoidance)

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@208 d57e44dd-8a1f-0410-8b47-8ef2f437770f

14 years agoupdate installation instructions
swgruszka [Tue, 23 Oct 2007 09:26:21 +0000 (09:26 +0000)]
update installation instructions

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@207 d57e44dd-8a1f-0410-8b47-8ef2f437770f

14 years agosynchronize with feral cvs repository
swgruszka [Tue, 23 Oct 2007 08:57:16 +0000 (08:57 +0000)]
synchronize with feral cvs repository

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@206 d57e44dd-8a1f-0410-8b47-8ef2f437770f

14 years ago - Fixed BUG() with put_page_callback patch for network hardware without TX offload
vlnb [Thu, 18 Oct 2007 10:12:34 +0000 (10:12 +0000)]
 - Fixed BUG() with put_page_callback patch for network hardware without TX offload
 - Fixed 2 corner cases crashes with disabled pass-through devices
 - Docs updated

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@205 d57e44dd-8a1f-0410-8b47-8ef2f437770f