mirror of
https://github.com/acidanthera/OpenCorePkg.git
synced 2025-12-08 19:25:01 +00:00
20 lines
984 B
Diff
20 lines
984 B
Diff
From: Goldfish64 <goldfishnet@aol.com>
|
|
Subject: MdeModulePkg/AtaAtapiPassThru: Reduce IDE drive detection timeout
|
|
|
|
This reduces the timeout for a drive response during IDE drive detection in DuetPkg,
|
|
which would otherwise cause an abormally long startup time.
|
|
|
|
diff --git a/MdeModulePkg/Bus/Ata/AtaAtapiPassThru/IdeMode.c b/MdeModulePkg/Bus/Ata/AtaAtapiPassThru/IdeMode.c
|
|
index 75403886e4..8ecbe7036d 100644
|
|
--- a/MdeModulePkg/Bus/Ata/AtaAtapiPassThru/IdeMode.c
|
|
+++ b/MdeModulePkg/Bus/Ata/AtaAtapiPassThru/IdeMode.c
|
|
@@ -2394,7 +2394,7 @@ DetectAndConfigIdeDevice (
|
|
//
|
|
IdeWritePortB (PciIo, IdeRegisters->CmdOrStatus, ATA_CMD_EXEC_DRIVE_DIAG);
|
|
|
|
- Status = WaitForBSYClear (PciIo, IdeRegisters, 350000000);
|
|
+ Status = WaitForBSYClear (PciIo, IdeRegisters, 5000000); // Use instead of 350000000.
|
|
if (EFI_ERROR (Status)) {
|
|
DEBUG ((DEBUG_ERROR, "New detecting method: Send Execute Diagnostic Command: WaitForBSYClear: Status: %d\n", Status));
|
|
continue;
|