Commit Graph

119 Commits

Author SHA1 Message Date
Stanislaw Gruszka
8fc11f1234 Pass delivery status to SCST.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@229 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2007-12-10 11:53:05 +00:00
Vladislav Bolkhovitin
d33edb6ba3 Simple bugfix for concurrent work of several targets, which eventually turned out in a massive cleanup and fixes.
Particularly:
 - 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: http://svn.code.sf.net/p/scst/svn/trunk@227 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2007-12-07 17:00:42 +00:00
Stanislaw Gruszka
9fbca126b3 remove no_autosense workaround
on receive check if all data was transferred before pass it to scst


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@216 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2007-11-02 11:02:50 +00:00
Stanislaw Gruszka
8c1327661b synchronize with feral cvs repository, this time Matthew fix autosense problems :-)
+ The 24XX code in isp_target_start_ctio was setting the wrong values 
to set SENSE LENGTH VALID for the FCP RSPNS IU.

+ 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: http://svn.code.sf.net/p/scst/svn/trunk@215 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2007-11-02 08:43:47 +00:00
Stanislaw Gruszka
463fe3ac7f remove not necessary linux 2.4 Makefiles, isp stops support 2.4
update copyrights (GPLv3 avoidance)


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@208 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2007-10-23 09:51:55 +00:00
Stanislaw Gruszka
63032f29d8 synchronize with feral cvs repository
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@206 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2007-10-23 08:57:16 +00:00
Stanislaw Gruszka
d2aa9c0ac1 In cases when we load driver and initiator send some events like LIP, we may
not be ready to ack event and finally there is oops in interrupt. Fix this.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@188 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2007-09-18 06:21:41 +00:00
Stanislaw Gruszka
b10fbd2b80 Request irq after pci initialization is finished.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@187 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2007-09-12 14:11:45 +00:00
Stanislaw Gruszka
7a93ba59a8 Map properly task management function codes from low level driver to scst.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@186 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2007-09-10 10:09:30 +00:00
Stanislaw Gruszka
fbb45ff0f7 - Do not print lot of info about notify event.
- Check bp->scst_tgt agains NULL only once when command is processed


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@183 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2007-09-05 11:38:19 +00:00
Stanislaw Gruszka
df886318a9 - Search bus only once when process scsi command (tmd).
- Pass to SCST port WWN as registration name.
- Avoid race condition when we receive new tmd and bp->scst_tmd
  may (or not) be NULL.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@182 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2007-09-05 10:20:44 +00:00
Stanislaw Gruszka
1db177f0dc Initialize with zeros fresh allocated ini_t.
Free low level driver memory on error.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@181 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2007-09-04 11:07:50 +00:00
Stanislaw Gruszka
e151feff2d Bugfix, do not zero resource which someone may actually use.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@180 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2007-09-01 11:44:37 +00:00
Stanislaw Gruszka
d31e5941e7 Avoid race conditions related with registration and unregistration hba's.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@179 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2007-08-31 13:01:22 +00:00
Stanislaw Gruszka
59cfad3952 Get irq number from PCI subsystem after irq routing mechanism (like ACPI)
set it up. Otherwise we get irq number from legacy BIOS range and proper irq 
(other number from PCI range) is not handled or handled by other driver - 
- VERY VERY BAD THINGS happen then. 


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@178 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2007-08-31 09:40:17 +00:00
Stanislaw Gruszka
0c7c155d7f Add workaround for devices which have broken autosense mode. It is compile
time selectable. In run-time it is turned on only for 24xx chipsets. With 
this workaround (hopply) we don't need to limit queue length (see comment 
in patch).


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@177 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2007-08-31 09:28:08 +00:00
Stanislaw Gruszka
e37c03bbd7 Little comment fix.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@147 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2007-07-11 09:30:10 +00:00
Vladislav Bolkhovitin
7181d89244 Patch from Stanislaw Gruszka:
- pass FC transport error to SCST
- give SCST info about WWN of remote initiator
- info about expected transfer length and direction
- unifying printk error messages


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@145 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2007-07-10 16:39:38 +00:00
Vladislav Bolkhovitin
451443a6c8 Patch from Stanislaw Gruszka <stanislawg1@open-e.com>
This is SCST driver for ISP Qlogic chipsets commonly used in many SCSI and FC
host bus adapters. Supported chipset are listed in README file, incomplete
list of supported HBA's is in doc/Hardware.txt .

It is based on Matthew Jacob's multiplatform driver for ISP chipsets,
which can be download from ftp://ftp.feral.com/pub/isp/isp_dist.tgz



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@135 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2007-06-25 16:32:46 +00:00