mirror of https://github.com/acidanthera/audk.git
MdeModulePkg/AtaAtapiPassThru: Revert patch to disable Bus Master
This patch caused Windows 10 S4 resume failure.
Considering the similar changes are reverted from PciBus driver,
revert the patch from AtaAtapiPassThru as well.
Revert "MdeModulePkg/AtaAtapiPassThru: disable only BM-DMA at
ExitBootServices()"
This reverts commit 76fd5a660d
.
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Jiewen Yao <jiewen.yao@intel.com>
Reviewed-by: Star Zeng <star.zeng@intel.com>
This commit is contained in:
parent
dc32e820f0
commit
0641808ece
|
@ -480,7 +480,8 @@ InitializeAtaAtapiPassThru (
|
|||
}
|
||||
|
||||
/**
|
||||
Disable Bus Master DMA on the device when exiting the boot services.
|
||||
Disable the device (especially Bus Master DMA) when exiting the boot
|
||||
services.
|
||||
|
||||
@param[in] Event Event for which this notification function is being
|
||||
called.
|
||||
|
@ -505,7 +506,7 @@ AtaPassThruExitBootServices (
|
|||
PciIo->Attributes (
|
||||
PciIo,
|
||||
EfiPciIoAttributeOperationDisable,
|
||||
Instance->EnabledPciAttributes & EFI_PCI_IO_ATTRIBUTE_BUS_MASTER,
|
||||
Instance->EnabledPciAttributes,
|
||||
NULL
|
||||
);
|
||||
}
|
||||
|
|
|
@ -123,7 +123,8 @@ typedef struct {
|
|||
LIST_ENTRY NonBlockingTaskList;
|
||||
|
||||
//
|
||||
// For disabling Bus Master DMA on the device at ExitBootServices().
|
||||
// For disabling the device (especially Bus Master DMA) at
|
||||
// ExitBootServices().
|
||||
//
|
||||
EFI_EVENT ExitBootEvent;
|
||||
} ATA_ATAPI_PASS_THRU_INSTANCE;
|
||||
|
|
Loading…
Reference in New Issue