]> git.proxmox.com Git - mirror_edk2.git/commit
MdeModulePkg ScsiDiskDxe: Add retry scheme for async SCSI I/O command
authorHao Wu <hao.a.wu@intel.com>
Tue, 22 Dec 2015 13:57:14 +0000 (13:57 +0000)
committerhwu1225 <hwu1225@Edk2>
Tue, 22 Dec 2015 13:57:14 +0000 (13:57 +0000)
commitd7617bad96979cb1a5ecfbb56a05b97838bbbbb7
treec647e2410bf527cc259d0bfbbb1a440fb00e643c
parent032800eccab02bd4fa7dd2afe529ad8b9a712c41
MdeModulePkg ScsiDiskDxe: Add retry scheme for async SCSI I/O command

Some SCSI devices will return EFI_DEVICE_ERROR or EFI_TIMEOUT when the
data length of a SCSI I/O command is too large.

This commit will repeatedly retry sending the SCSI command with a data
length half of its previous value.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Hao Wu <hao.a.wu@intel.com>
Reviewed-by: Feng Tian <feng.tian@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@19451 6f19259b-4bc3-4df7-8a09-765794883524
MdeModulePkg/Bus/Scsi/ScsiDiskDxe/ScsiDisk.c