mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-28 09:20:18 +00:00
5f81d67e70627b5ca54e0ca23947877d25964ee0
There are a few minor changes: - fix some 80 char line length issues - fix some indenting - change scst_to_dma_dir to scst_to_tgt_dma_dir The big issue is fixing the sending of sense data. The LSI chip, when talking to a non-packetized SCSI initiator, cannot send both status (i.e. check condition) and sense data (from autosense) in the same transaction. The result is a 006B (MPI_IOC_STATUS_TARGET_STS_DATA_NOT_SENT) IOCStatus value when this is attempted. The sense data doesn't get transmitted over the SCSI cable in this case. My fix, which is modeled on LSI's own SCSI target implementation, is to cache sense data before attempting to send it. If a REQUEST SENSE command comes in with pending sense, the LSI driver will handle the REQUEST SENSE command on it's own without involving SCST. Pending sense is cleared once the REQUEST SENSE command is handled, or if any other command comes in. Sense data is cached per initiator. Apparantely this problem is only related to non-packetized SCSI interfaces. That's all I have to test with, so I can't vouch for SAS or FC. git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@75 d57e44dd-8a1f-0410-8b47-8ef2f437770f
Description
No description provided
Languages
C
90.1%
Perl
4.2%
Shell
1.8%
HTML
1.7%
Makefile
1.2%
Other
0.9%