]> git.ipfire.org Git - thirdparty/ipxe.git/commit
[scsi] Wait for a successful TEST UNIT READY command
authorMichael Brown <mcb30@ipxe.org>
Sat, 16 Oct 2010 12:53:38 +0000 (13:53 +0100)
committerMichael Brown <mcb30@ipxe.org>
Tue, 19 Oct 2010 18:10:02 +0000 (19:10 +0100)
commit57bab0ae4a1fd4241017a4a4a90d933c91d7fda8
treecc173ecfb34e5ecefd800bb39a5259b9f8e178bb
parentb0e434280e03f83a611b8f710513b13dc0da00cf
[scsi] Wait for a successful TEST UNIT READY command

Some SCSI targets (observed with an EMC CLARiiON Fibre Channel target)
will not respond to commands correctly until a TEST UNIT READY has
been issued.  In particular, a READ CAPACITY (10) command will return
with a success status, but no capacity data.

Fix by issuing a TEST UNIT READY command automatically, and delaying
further SCSI commands until the TEST UNIT READY has succeeded.

Reported-by: Hadar Hen Zion <hadarh@mellanox.co.il>
Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/drivers/block/scsi.c
src/include/ipxe/scsi.h