MdeModulePkg: ATA performance tuning.
1. Boost IDE mode boot when slave device is absent. 2. Use D2H FIS to check if the PIO OUT/DMA IN/DMA OUT transfer is finished or error happened. ATA PIO IN has special check as it may just receive PIO SETUP FIS for success case. 3. Add command status register check for IDE DMA transfer. 4. ScsiDiskReadCapacity() in ScsiDisk should return EFI_SUCCESS if SENSE Data request is success. Signed-off-by: erictian Reviewed-by: rsun3 Reviewed-by: xdu2 Reviewed-by: mdkinney git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12658 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
@@ -1265,7 +1265,7 @@ DetectMediaParsingSenseKeys (
|
||||
@param NumberOfSenseKeys The number of sense key
|
||||
|
||||
@retval EFI_DEVICE_ERROR Indicates that error occurs
|
||||
@retval EFI_SUCCESS Successfully to read capacity
|
||||
@retval EFI_SUCCESS Successfully to read capacity or sense data is received.
|
||||
|
||||
**/
|
||||
EFI_STATUS
|
||||
@@ -1402,8 +1402,7 @@ ScsiDiskReadCapacity (
|
||||
TRUE
|
||||
);
|
||||
if (!EFI_ERROR (Status)) {
|
||||
*NeedRetry = TRUE;
|
||||
return EFI_DEVICE_ERROR;
|
||||
return EFI_SUCCESS;
|
||||
}
|
||||
|
||||
if (!*NeedRetry) {
|
||||
|
Reference in New Issue
Block a user