MdeModulePkg/AtaBus&AtaAtapiPassThru: Update ATA drivers to follow UEFI2.4 new request in which it requests ResetEx() to terminate any in-flight non-blocking IO request with EFI_ABORTED transaction status.
Signed-off-by: Tian, Feng <feng.tian@intel.com> reviewed-by: Ni, Ruiyu <ruiyu.ni@intel.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14761 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
@ -90,7 +90,8 @@ ATA_DEVICE gAtaDeviceTemplate = {
|
||||
NULL, // ControllerNameTable
|
||||
{L'\0', }, // ModelName
|
||||
{NULL, NULL}, // AtaTaskList
|
||||
{NULL, NULL} // AtaSubTaskList
|
||||
{NULL, NULL}, // AtaSubTaskList
|
||||
FALSE // Abort
|
||||
};
|
||||
|
||||
/**
|
||||
@ -172,7 +173,7 @@ ReleaseAtaResources (
|
||||
) {
|
||||
DelEntry = Entry;
|
||||
Entry = Entry->ForwardLink;
|
||||
SubTask = ATA_AYNS_SUB_TASK_FROM_ENTRY (DelEntry);
|
||||
SubTask = ATA_ASYN_SUB_TASK_FROM_ENTRY (DelEntry);
|
||||
|
||||
RemoveEntryList (DelEntry);
|
||||
FreeAtaSubTask (SubTask);
|
||||
@ -187,7 +188,7 @@ ReleaseAtaResources (
|
||||
) {
|
||||
DelEntry = Entry;
|
||||
Entry = Entry->ForwardLink;
|
||||
AtaTask = ATA_AYNS_TASK_FROM_ENTRY (DelEntry);
|
||||
AtaTask = ATA_ASYN_TASK_FROM_ENTRY (DelEntry);
|
||||
|
||||
RemoveEntryList (DelEntry);
|
||||
FreePool (AtaTask);
|
||||
@ -1217,6 +1218,8 @@ AtaBlockIoResetEx (
|
||||
|
||||
AtaDevice = ATA_DEVICE_FROM_BLOCK_IO2 (This);
|
||||
|
||||
AtaTerminateNonBlockingTask (AtaDevice);
|
||||
|
||||
Status = ResetAtaDevice (AtaDevice);
|
||||
|
||||
if (EFI_ERROR (Status)) {
|
||||
|
Reference in New Issue
Block a user