mirror of https://github.com/acidanthera/audk.git
IntelSiliconPkg IntelVTdDxe: Do not SetupVtd again
Cc: Jiewen Yao <jiewen.yao@intel.com> Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Star Zeng <star.zeng@intel.com> Tested-by: Jiewen Yao <jiewen.yao@intel.com> Reviewed-by: Jiewen Yao <jiewen.yao@intel.com>
This commit is contained in:
parent
2d3a626e3e
commit
7729e3c448
|
@ -412,6 +412,9 @@ AcpiNotificationFunc (
|
|||
|
||||
Status = GetDmarAcpiTable ();
|
||||
if (EFI_ERROR (Status)) {
|
||||
if (Status == EFI_ALREADY_STARTED) {
|
||||
gBS->CloseEvent (Event);
|
||||
}
|
||||
return;
|
||||
}
|
||||
SetupVtd ();
|
||||
|
|
|
@ -303,6 +303,7 @@ FindVtdIndexByPciDevice (
|
|||
Get the DMAR ACPI table.
|
||||
|
||||
@retval EFI_SUCCESS The DMAR ACPI table is got.
|
||||
@retval EFI_ALREADY_STARTED The DMAR ACPI table has been got previously.
|
||||
@retval EFI_NOT_FOUND The DMAR ACPI table is not found.
|
||||
**/
|
||||
EFI_STATUS
|
||||
|
|
|
@ -979,6 +979,7 @@ FindAcpiPtr (
|
|||
Get the DMAR ACPI table.
|
||||
|
||||
@retval EFI_SUCCESS The DMAR ACPI table is got.
|
||||
@retval EFI_ALREADY_STARTED The DMAR ACPI table has been got previously.
|
||||
@retval EFI_NOT_FOUND The DMAR ACPI table is not found.
|
||||
**/
|
||||
EFI_STATUS
|
||||
|
@ -990,7 +991,7 @@ GetDmarAcpiTable (
|
|||
EFI_STATUS Status;
|
||||
|
||||
if (mAcpiDmarTable != NULL) {
|
||||
return EFI_SUCCESS;
|
||||
return EFI_ALREADY_STARTED;
|
||||
}
|
||||
|
||||
AcpiTable = NULL;
|
||||
|
|
Loading…
Reference in New Issue