From 1d3fa1bd3817b6cdcfdf9fb502768f791c5a7c5a Mon Sep 17 00:00:00 2001 From: Feng Tian Date: Thu, 7 Jan 2016 07:03:54 +0000 Subject: [PATCH] MdeModulePkg/ScsiDisk: Increase the value of SCSI_DISK_TIMEOUT to 30s As ScsiDisk and ScsiBus driver are used to manage SCSI or ATAPI devices, the timeout value is updated to 30s to follow ATA/ATAPI spec in which the device may take up to 30s to respond command. The change is used to solve device compatibility issue found with a TEAC DV-W28S-WZ3 slim DVD plus a SONY AccuCORE DVD-R media in which the DVD spends 8s to response READ_CAPACITY cmd after resetting the host machine. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Feng Tian Reviewed-by: Star Zeng git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@19612 6f19259b-4bc3-4df7-8a09-765794883524 --- MdeModulePkg/Bus/Scsi/ScsiDiskDxe/ScsiDisk.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/MdeModulePkg/Bus/Scsi/ScsiDiskDxe/ScsiDisk.h b/MdeModulePkg/Bus/Scsi/ScsiDiskDxe/ScsiDisk.h index 2406df51b8..45e6ae31ce 100644 --- a/MdeModulePkg/Bus/Scsi/ScsiDiskDxe/ScsiDisk.h +++ b/MdeModulePkg/Bus/Scsi/ScsiDiskDxe/ScsiDisk.h @@ -157,7 +157,11 @@ extern EFI_COMPONENT_NAME2_PROTOCOL gScsiDiskComponentName2; // // SCSI Disk Timeout Experience Value // -#define SCSI_DISK_TIMEOUT EFI_TIMER_PERIOD_SECONDS (3) +// As ScsiDisk and ScsiBus driver are used to manage SCSI or ATAPI devices, the timout +// value is updated to 30s to follow ATA/ATAPI spec in which the device may take up to 30s +// to respond command. +// +#define SCSI_DISK_TIMEOUT EFI_TIMER_PERIOD_SECONDS (30) /** Test to see if this driver supports ControllerHandle. -- 2.39.2