mirror of https://github.com/acidanthera/audk.git
MdeModulePkg/FPDT: Add error message for unsupported case
We have updated performance infrastructure in previous commits: between73fef64f14
and115eae650b
Update FPDT drivers to collect the performance data reported by gEdkiiFpdtExtendedFirmwarePerformanceGuid. The old implementation which collected performance data through gEfiFirmwarePerformanceGuid is not supported now. We should add error message to remind user for this unsupported case in case anyone use it by mistake. Cc: Liming Gao <liming.gao@intel.com> Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Dandan Bi <dandan.bi@intel.com> Reviewed-by: Liming Gao <liming.gao@intel.com>
This commit is contained in:
parent
665bfd41ac
commit
d4ee449d1d
|
@ -554,6 +554,9 @@ FpdtStatusCodeListenerDxe (
|
|||
// Get the Boot performance table and then install it to ACPI table.
|
||||
//
|
||||
CopyMem (&mReceivedAcpiBootPerformanceTable, Data + 1, Data->Size);
|
||||
} else if (Data != NULL && CompareGuid (&Data->Type, &gEfiFirmwarePerformanceGuid)) {
|
||||
DEBUG ((DEBUG_ERROR, "FpdtStatusCodeListenerDxe: Performance data reported through gEfiFirmwarePerformanceGuid will not be collected by FirmwarePerformanceDataTableDxe\n"));
|
||||
Status = EFI_UNSUPPORTED;
|
||||
} else {
|
||||
//
|
||||
// Ignore else progress code.
|
||||
|
|
|
@ -106,6 +106,11 @@ FpdtStatusCodeListenerSmm (
|
|||
return EFI_SUCCESS;
|
||||
}
|
||||
|
||||
if (Data != NULL && CompareGuid (&Data->Type, &gEfiFirmwarePerformanceGuid)) {
|
||||
DEBUG ((DEBUG_ERROR, "FpdtStatusCodeListenerSmm: Performance data reported through gEfiFirmwarePerformanceGuid will not be collected by FirmwarePerformanceDataTableSmm\n"));
|
||||
return EFI_UNSUPPORTED;
|
||||
}
|
||||
|
||||
if ((Value != PcdGet32 (PcdProgressCodeS3SuspendStart)) &&
|
||||
(Value != PcdGet32 (PcdProgressCodeS3SuspendEnd))) {
|
||||
return EFI_UNSUPPORTED;
|
||||
|
|
Loading…
Reference in New Issue