public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* SCSI Target Mode issue...... pls help
@ 2005-03-02  7:00 Nauman
  2005-03-02 10:15 ` Vladislav Bolkhovitin
  0 siblings, 1 reply; 2+ messages in thread
From: Nauman @ 2005-03-02  7:00 UTC (permalink / raw)
  To: linux-kernel

hello all the gurus out there, 
i have written simple Target for SCSI device. its in very early stage.
I started to handle simple commands from the INITIATOR like INQUIRY,
READ CAPACITY , REPORT LUN.
Now i am upto READ and WRITE. I have responded READ properly. Problem
is in WRITE command. For instance there is a case when i get multiple
WRITE command from INITIATOR
i queue command as i receive it. CTIO has to be sent to firmware for
each recieved command  . in my case i send CTIO as i recieve the
command. now firmware has to send back the response for each CTIO i
sent. here is whats happening
i get 2 commands for WRITE. send CTIO for cmd1 and cmd2 and what i get
back from firmware is response of second cmd which is cmd2. cmd1's
command time out occurs and it fails to respond.

if any one has done basic handshake and handled READ and WRITE for
TARGET mode then please share ur knowledge......
Best Regards,
-- 
When the going gets tough, The tough gets going...!
Peace ,  
Nauman.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: SCSI Target Mode issue...... pls help
  2005-03-02  7:00 SCSI Target Mode issue...... pls help Nauman
@ 2005-03-02 10:15 ` Vladislav Bolkhovitin
  0 siblings, 0 replies; 2+ messages in thread
From: Vladislav Bolkhovitin @ 2005-03-02 10:15 UTC (permalink / raw)
  To: Nauman; +Cc: linux-kernel

Check SCSI target mid-level (SCST) with Qlogic target driver on 
http://scst.sourceforge.net.

Best regards,
Vlad

Nauman wrote:
> hello all the gurus out there, 
> i have written simple Target for SCSI device. its in very early stage.
> I started to handle simple commands from the INITIATOR like INQUIRY,
> READ CAPACITY , REPORT LUN.
> Now i am upto READ and WRITE. I have responded READ properly. Problem
> is in WRITE command. For instance there is a case when i get multiple
> WRITE command from INITIATOR
> i queue command as i receive it. CTIO has to be sent to firmware for
> each recieved command  . in my case i send CTIO as i recieve the
> command. now firmware has to send back the response for each CTIO i
> sent. here is whats happening
> i get 2 commands for WRITE. send CTIO for cmd1 and cmd2 and what i get
> back from firmware is response of second cmd which is cmd2. cmd1's
> command time out occurs and it fails to respond.
> 
> if any one has done basic handshake and handled READ and WRITE for
> TARGET mode then please share ur knowledge......
> Best Regards,


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-03-02 10:12 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-03-02  7:00 SCSI Target Mode issue...... pls help Nauman
2005-03-02 10:15 ` Vladislav Bolkhovitin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox