mirror of
https://github.com/SCST-project/scst.git
synced 2026-08-19 05:36:22 +00:00
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
Target driver for LSI/MPT XXX cards =================================== Version X.X.X, XX XXX 200X -------------------------- This driver was originally developed by Hu Gang and then is developed by Erik Habbinga <erikhabbinga@inphase-tech.com>. It is on the early stage of development. The current maintainer of this driver is Erik. Please send him all question related to it (CC: scst-devel@lists.sourceforge.net). This driver tested only on Linux kernel versions 2.6.15.x. Building from the Linux kernel tree ----------------------------------- To build from the kernel tree, you should: 1. Link drivers/message/fusion/mpt_scst to $(SCST_DIR)/mpt 2. Patch drivers/message/fusion/Makefile and drivers/message/fusion/Kconfig by diffs from $(SCST_DIR)/mpt/in-tree 3. Correct in drivers/message/fusion/Makefile SCST_INC_DIR variable so it points to correct directory with SCST include files.