Return-Path: <owner-ips@ece.cmu.edu>
X-Sieve: cmu-sieve 2.0
Return-Path: <owner-ips@ece.cmu.edu>
Received: (from majordom@localhost)
	by ece.cmu.edu (8.11.0/8.10.2) id h1GDigA04446
	for ips-outgoing; Sun, 16 Feb 2003 08:44:42 -0500 (EST)
X-Authentication-Warning: ece.cmu.edu: majordom set sender to owner-ips@ece.cmu.edu using -f
Received: from d12lmsgate-3.de.ibm.com (d12lmsgate-3.de.ibm.com [194.196.100.236])
	by ece.cmu.edu (8.11.0/8.10.2) with ESMTP id h1GDidW04437;
	Sun, 16 Feb 2003 08:44:40 -0500 (EST)
Received: from d12relay02.de.ibm.com (d12relay02.de.ibm.com [9.165.215.23])
	by d12lmsgate-3.de.ibm.com (8.12.3/8.12.3) with ESMTP id h1GDiWZk018006;
	Sun, 16 Feb 2003 14:44:32 +0100
Received: from d10ml001.telaviv.ibm.com (d10ml001.telaviv.ibm.com [9.148.216.55])
	by d12relay02.de.ibm.com (8.12.3/NCO/VER6.5) with ESMTP id h1GDiWJb220534;
	Sun, 16 Feb 2003 14:44:33 +0100
In-Reply-To: <AEC4671C8179D61194DE0002B328BDD20DB7@ATLOPS>
To: Eddy Quicksall <eddyq@ivivity.com>
Cc: "Ips@Ece.Cmu.Edu (ips@ece.cmu.edu)" <ips@ece.cmu.edu>,
   owner-ips@ece.cmu.edu
Subject: RE: iSCSI: underrun with a check condition
MIME-Version: 1.0
X-Mailer: Lotus Notes Release 6.0.1 February 07, 2003
From: "Julian Satran" <Julian_Satran@il.ibm.com>
Message-ID: <OFDB3629A9.22CF4095-ONC2256CCF.00485FB7-C2256CCF.004B7C20@telaviv.ibm.com>
Date: Sun, 16 Feb 2003 15:44:29 +0200
X-MIMETrack: Serialize by Router on D10ML001/10/M/IBM(Release 5.0.9a |January 7, 2002) at
 16/02/2003 15:44:33,
	Serialize complete at 16/02/2003 15:44:33
Content-Type: multipart/alternative; boundary="=_alternative 00497674C2256CCF_="
Sender: owner-ips@ece.cmu.edu
Precedence: bulk

This is a multipart message in MIME format.
--=_alternative 00497674C2256CCF_=
Content-Type: text/plain; charset="US-ASCII"

Eddy,

If a device has a UA condition it will answer with either BUSY or ACA 
Active to the read (not check condition).
All other fields of the iSCSI response are irrelevant in this case - SCSI 
is silent on this but based on just common sense I would guess you don't 
want to set U as it may imply that the target has estimated the size of 
the underrun based on Length, device and CDB information.

Julo



Eddy Quicksall <eddyq@ivivity.com> 
16/02/03 14:34

To
Julian Satran/Haifa/IBM@IBMIL
cc
"Ips@Ece.Cmu.Edu (ips@ece.cmu.edu)" <ips@ece.cmu.edu>, 
owner-ips@ece.cmu.edu
Subject
RE: iSCSI: underrun with a check condition






I'm sorry; I should have been more specific. Let's take a very simple 
case:
 
I->T READ 1 block
T->I Unit Attention (06/29/01)
(or BUSY, etc)
 
Since all of the data was not returned, should the U bit be set? Section 
10.4.1 does not specify.
 
     bit 6 - (U) set for Residual Underflow. In this case, the
       Residual Count indicates the number of bytes that were not
       transferred out of the number of bytes that were expected to
       be transferred. For a bidirectional operation, the Residual
       Count contains the residual for the write operation.
 
Eddy
 
-----Original Message-----
From: Julian Satran [mailto:Julian_Satran@il.ibm.com] 
Sent: Sunday, February 16, 2003 2:32 AM
To: Eddy Quicksall
Cc: Ips@Ece.Cmu.Edu (ips@ece.cmu.edu); owner-ips@ece.cmu.edu
Subject: Re: iSCSI: underrun with a check condition
 

For some devices and settings the underrun may the cause of the check 
condition so it certainly should be set whenever appropriate. 


Julo 


Eddy Quicksall <eddyq@ivivity.com> 
Sent by: owner-ips@ece.cmu.edu 
15/02/03 04:57 


To
"Ips@Ece.Cmu.Edu (ips@ece.cmu.edu)" <ips@ece.cmu.edu> 
cc
 
Subject
iSCSI: underrun with a check condition
 


 
 




Should the target set the U bit when it gives a check condition to a 
data-in command? 
 
 
Eddy 
mailto: Eddy_Quicksall@iVivity.com 
 

--=_alternative 00497674C2256CCF_=
Content-Type: text/html; charset="US-ASCII"


<br><font size=2 face="sans-serif">Eddy,</font>
<br>
<br><font size=2 face="sans-serif">If a device has a UA condition it will
answer with either BUSY or ACA Active to the read (not check condition).</font>
<br><font size=2 face="sans-serif">All other fields of the iSCSI response
are irrelevant in this case - SCSI is silent on this but based on just
common sense I would guess you don't want to set U as it may imply that
the target has estimated the size of the underrun based on Length, device
and CDB information.</font>
<br>
<br><font size=2 face="sans-serif">Julo</font>
<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td width=40%><font size=1 face="sans-serif"><b>Eddy Quicksall &lt;eddyq@ivivity.com&gt;</b>
</font>
<p><font size=1 face="sans-serif">16/02/03 14:34</font>
<td width=59%>
<table width=100%>
<tr>
<td>
<div align=right><font size=1 face="sans-serif">To</font></div>
<td valign=top><font size=1 face="sans-serif">Julian Satran/Haifa/IBM@IBMIL</font>
<tr>
<td>
<div align=right><font size=1 face="sans-serif">cc</font></div>
<td valign=top><font size=1 face="sans-serif">&quot;Ips@Ece.Cmu.Edu (ips@ece.cmu.edu)&quot;
&lt;ips@ece.cmu.edu&gt;, owner-ips@ece.cmu.edu</font>
<tr>
<td>
<div align=right><font size=1 face="sans-serif">Subject</font></div>
<td valign=top><font size=1 face="sans-serif">RE: iSCSI: underrun with
a check condition</font></table>
<br>
<table>
<tr valign=top>
<td>
<td></table>
<br></table>
<br>
<br>
<br><font size=2 color=#000080 face="Arial">I'm sorry; I should have been
more specific. Let's take a very simple case:</font>
<p><font size=2 color=#000080 face="Arial">&nbsp;</font>
<p><font size=2 color=#000080 face="Arial">I-&gt;T READ 1 block</font>
<p><font size=2 color=#000080 face="Arial">T-&gt;I Unit Attention (06/29/01)</font>
<p><font size=2 color=#000080 face="Arial">(or BUSY, etc)</font>
<p><font size=2 color=#000080 face="Arial">&nbsp;</font>
<p><font size=2 color=#000080 face="Arial">Since all of the data was not
returned, should the U bit be set? Section 10.4.1 does not specify.</font>
<p><font size=2 color=#000080 face="Arial">&nbsp;</font>
<p><font size=2 face="Courier New">&nbsp; &nbsp; &nbsp;bit 6 - (U) set
for Residual Underflow. In this case, the</font>
<p><font size=2 face="Courier New">&nbsp; &nbsp; &nbsp; &nbsp;Residual
Count indicates the number of bytes that were not</font>
<p><font size=2 face="Courier New">&nbsp; &nbsp; &nbsp; &nbsp;transferred
out of the number of bytes that were expected to</font>
<p><font size=2 face="Courier New">&nbsp; &nbsp; &nbsp; &nbsp;be transferred.
For a bidirectional operation, the Residual</font>
<p><font size=2 face="Courier New">&nbsp; &nbsp; &nbsp; &nbsp;Count contains
the residual for the write operation.</font>
<p><font size=2 color=#000080 face="Arial">&nbsp;</font>
<p><font size=2 color=#000080 face="Arial">Eddy</font>
<p><font size=2 color=#000080 face="Arial">&nbsp;</font>
<p><font size=2 face="Tahoma">-----Original Message-----<b><br>
From:</b> Julian Satran [mailto:Julian_Satran@il.ibm.com] <b><br>
Sent:</b> Sunday, February 16, 2003 2:32 AM<b><br>
To:</b> Eddy Quicksall<b><br>
Cc:</b> Ips@Ece.Cmu.Edu (ips@ece.cmu.edu); owner-ips@ece.cmu.edu<b><br>
Subject:</b> Re: iSCSI: underrun with a check condition</font>
<p><font size=3 face="Times New Roman">&nbsp;</font>
<p><font size=2 face="sans-serif"><br>
For some devices and settings the underrun may the cause of the check condition
so it certainly should be set whenever appropriate.</font><font size=3 face="Times New Roman">
<br>
<br>
</font><font size=2 face="sans-serif"><br>
Julo</font><font size=3 face="Times New Roman"> <br>
</font>
<p>
<table width=100%>
<tr valign=top>
<td width=38%><font size=1 face="sans-serif"><b>Eddy Quicksall &lt;eddyq@ivivity.com&gt;</b>
<br>
Sent by: owner-ips@ece.cmu.edu</font><font size=3 face="Times New Roman">
</font>
<p><font size=1 face="sans-serif">15/02/03 04:57</font><font size=3 face="Times New Roman">
</font>
<td width=61%>
<br>
<table width=100%>
<tr>
<td width=12%>
<div align=right><font size=1 face="sans-serif">To</font></div>
<td width=87% valign=top><font size=1 face="sans-serif">&quot;Ips@Ece.Cmu.Edu
(ips@ece.cmu.edu)&quot; &lt;ips@ece.cmu.edu&gt;</font><font size=3 face="Times New Roman">
</font>
<tr>
<td>
<div align=right><font size=1 face="sans-serif">cc</font></div>
<td valign=top><font size=3 face="Times New Roman">&nbsp;</font>
<tr>
<td>
<div align=right><font size=1 face="sans-serif">Subject</font></div>
<td valign=top><font size=1 face="sans-serif">iSCSI: underrun with a check
condition</font></table>
<p><font size=3 face="Times New Roman">&nbsp;</font>
<p>
<br>
<table width=100%>
<tr valign=top>
<td width=50%><font size=3 face="Times New Roman">&nbsp;</font>
<td width=49%><font size=3 face="Times New Roman">&nbsp;</font></table>
<br></table>
<p><font size=3 face="Times New Roman"><br>
<br>
</font><font size=2 face="Arial"><br>
Should the target set the U bit when it gives a check condition to a data-in
command?</font><font size=3 face="Times New Roman"> </font>
<p><font size=3 face="Times New Roman">&nbsp; </font>
<p><font size=3 face="Times New Roman">&nbsp; </font>
<p><font size=2 face="Arial">Eddy</font><font size=3 face="Times New Roman">
</font>
<p><font size=2 face="Arial">mailto: Eddy_Quicksall@iVivity.com</font><font size=3 face="Times New Roman">
</font>
<p><font size=3 face="Times New Roman">&nbsp; </font>
<p>
--=_alternative 00497674C2256CCF_=--
