mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-26 23:24:03 +02:00
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 ();
|
Status = GetDmarAcpiTable ();
|
||||||
if (EFI_ERROR (Status)) {
|
if (EFI_ERROR (Status)) {
|
||||||
|
if (Status == EFI_ALREADY_STARTED) {
|
||||||
|
gBS->CloseEvent (Event);
|
||||||
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
SetupVtd ();
|
SetupVtd ();
|
||||||
|
@ -303,6 +303,7 @@ FindVtdIndexByPciDevice (
|
|||||||
Get the DMAR ACPI table.
|
Get the DMAR ACPI table.
|
||||||
|
|
||||||
@retval EFI_SUCCESS The DMAR ACPI table is got.
|
@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.
|
@retval EFI_NOT_FOUND The DMAR ACPI table is not found.
|
||||||
**/
|
**/
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
|
@ -979,6 +979,7 @@ FindAcpiPtr (
|
|||||||
Get the DMAR ACPI table.
|
Get the DMAR ACPI table.
|
||||||
|
|
||||||
@retval EFI_SUCCESS The DMAR ACPI table is got.
|
@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.
|
@retval EFI_NOT_FOUND The DMAR ACPI table is not found.
|
||||||
**/
|
**/
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
@ -990,7 +991,7 @@ GetDmarAcpiTable (
|
|||||||
EFI_STATUS Status;
|
EFI_STATUS Status;
|
||||||
|
|
||||||
if (mAcpiDmarTable != NULL) {
|
if (mAcpiDmarTable != NULL) {
|
||||||
return EFI_SUCCESS;
|
return EFI_ALREADY_STARTED;
|
||||||
}
|
}
|
||||||
|
|
||||||
AcpiTable = NULL;
|
AcpiTable = NULL;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user