Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Chao Zhang <chao.b.zhang@intel.com>
Reviewed-by: Dong Guo <guo.dong@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16320
6f19259b-4bc3-4df7-8a09-
765794883524
12 files changed:
/** @file\r
Implement defer image load services for user identification in UEFI2.2.\r
\r
/** @file\r
Implement defer image load services for user identification in UEFI2.2.\r
\r
-Copyright (c) 2009 - 2013, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2009 - 2014, Intel Corporation. All rights reserved.<BR>\r
This program and the accompanying materials \r
are licensed and made available under the terms and conditions of the BSD License \r
which accompanies this distribution. The full text of the license may be found at \r
This program and the accompanying materials \r
are licensed and made available under the terms and conditions of the BSD License \r
which accompanies this distribution. The full text of the license may be found at \r
return EFI_SUCCESS;\r
}\r
\r
return EFI_SUCCESS;\r
}\r
\r
- DEBUG ((EFI_D_ERROR, "[Security] No user identified, the image is deferred to load!\n"));\r
+ DEBUG ((EFI_D_INFO, "[Security] No user identified, the image is deferred to load!\n"));\r
PutDefferedImageInfo (File, FileBuffer, FileSize);\r
\r
//\r
PutDefferedImageInfo (File, FileBuffer, FileSize);\r
\r
//\r
/** @file\r
Measure TrEE required variable.\r
\r
/** @file\r
Measure TrEE required variable.\r
\r
-Copyright (c) 2013, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2013 - 2014, Intel Corporation. All rights reserved.<BR>\r
This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
which accompanies this distribution. The full text of the license may be found at\r
This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
which accompanies this distribution. The full text of the license may be found at\r
- DEBUG ((EFI_D_ERROR, "MeasureBootPolicyVariable - %r\n", Status));\r
+ DEBUG ((EFI_D_INFO, "MeasureBootPolicyVariable - %r\n", Status));\r
\r
if (!EFI_ERROR (Status)) {\r
AddDataMeasured (VariableName, VendorGuid, Data, DataSize);\r
\r
if (!EFI_ERROR (Status)) {\r
AddDataMeasured (VariableName, VendorGuid, Data, DataSize);\r
// Measure GPT disk.\r
//\r
Status = TrEEMeasureGptTable (TreeProtocol, Handle);\r
// Measure GPT disk.\r
//\r
Status = TrEEMeasureGptTable (TreeProtocol, Handle);\r
- DEBUG ((EFI_D_ERROR, "DxeTpm2MeasureBootHandler - TrEEMeasureGptTable - %r\n", Status));\r
+ DEBUG ((EFI_D_INFO, "DxeTpm2MeasureBootHandler - TrEEMeasureGptTable - %r\n", Status));\r
if (!EFI_ERROR (Status)) {\r
//\r
// GPT disk check done.\r
if (!EFI_ERROR (Status)) {\r
//\r
// GPT disk check done.\r
ImageContext.ImageType, \r
DevicePathNode\r
);\r
ImageContext.ImageType, \r
DevicePathNode\r
);\r
- DEBUG ((EFI_D_ERROR, "DxeTpm2MeasureBootHandler - TrEEMeasurePeImage - %r\n", Status));\r
+ DEBUG ((EFI_D_INFO, "DxeTpm2MeasureBootHandler - TrEEMeasurePeImage - %r\n", Status));\r
FreePool (OrigDevicePathNode);\r
}\r
\r
FreePool (OrigDevicePathNode);\r
}\r
\r
- DEBUG ((EFI_D_ERROR, "DxeTpm2MeasureBootHandler - %r\n", Status));\r
+ DEBUG ((EFI_D_INFO, "DxeTpm2MeasureBootHandler - %r\n", Status));\r
CopyMem (LocalAuthSession.hmac.buffer, PlatformAuth->buffer, PlatformAuth->size);\r
}\r
\r
CopyMem (LocalAuthSession.hmac.buffer, PlatformAuth->buffer, PlatformAuth->size);\r
}\r
\r
- DEBUG ((EFI_D_ERROR, "Tpm2ClearControl ... \n"));\r
+ DEBUG ((EFI_D_INFO, "Tpm2ClearControl ... \n"));\r
Status = Tpm2ClearControl (TPM_RH_PLATFORM, AuthSession, NO);\r
Status = Tpm2ClearControl (TPM_RH_PLATFORM, AuthSession, NO);\r
- DEBUG ((EFI_D_ERROR, "Tpm2ClearControl - %r\n", Status));\r
+ DEBUG ((EFI_D_INFO, "Tpm2ClearControl - %r\n", Status));\r
if (EFI_ERROR (Status)) {\r
goto Done;\r
}\r
if (EFI_ERROR (Status)) {\r
goto Done;\r
}\r
- DEBUG ((EFI_D_ERROR, "Tpm2Clear ... \n"));\r
+ DEBUG ((EFI_D_INFO, "Tpm2Clear ... \n"));\r
Status = Tpm2Clear (TPM_RH_PLATFORM, AuthSession);\r
Status = Tpm2Clear (TPM_RH_PLATFORM, AuthSession);\r
- DEBUG ((EFI_D_ERROR, "Tpm2Clear - %r\n", Status));\r
+ DEBUG ((EFI_D_INFO, "Tpm2Clear - %r\n", Status));\r
\r
Done:\r
ZeroMem (&LocalAuthSession.hmac, sizeof(LocalAuthSession.hmac));\r
\r
Done:\r
ZeroMem (&LocalAuthSession.hmac, sizeof(LocalAuthSession.hmac));\r
hash handler registerd, such as SHA1, SHA256.\r
Platform can use PcdTpm2HashMask to mask some hash engines.\r
\r
hash handler registerd, such as SHA1, SHA256.\r
Platform can use PcdTpm2HashMask to mask some hash engines.\r
\r
-Copyright (c) 2013, Intel Corporation. All rights reserved. <BR>\r
+Copyright (c) 2013 - 2014, Intel Corporation. All rights reserved. <BR>\r
This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
which accompanies this distribution. The full text of the license may be found at\r
This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
which accompanies this distribution. The full text of the license may be found at\r
//\r
// In PEI phase, there will be shadow driver dispatched again.\r
//\r
//\r
// In PEI phase, there will be shadow driver dispatched again.\r
//\r
- DEBUG ((EFI_D_ERROR, "RegisterHashInterfaceLib - Override\n"));\r
+ DEBUG ((EFI_D_INFO, "RegisterHashInterfaceLib - Override\n"));\r
CopyMem (&HashInterfaceHob->HashInterface[Index], HashInterface, sizeof(*HashInterface));\r
return EFI_SUCCESS;\r
}\r
CopyMem (&HashInterfaceHob->HashInterface[Index], HashInterface, sizeof(*HashInterface));\r
return EFI_SUCCESS;\r
}\r
//\r
// In PEI phase, there will be shadow driver dispatched again.\r
//\r
//\r
// In PEI phase, there will be shadow driver dispatched again.\r
//\r
- DEBUG ((EFI_D_ERROR, "Tpm2RegisterTpm2DeviceLib - Override\n"));\r
+ DEBUG ((EFI_D_INFO, "Tpm2RegisterTpm2DeviceLib - Override\n"));\r
CopyMem (Tpm2DeviceInterface, Tpm2Device, sizeof(*Tpm2Device));\r
return EFI_SUCCESS;\r
} else {\r
CopyMem (Tpm2DeviceInterface, Tpm2Device, sizeof(*Tpm2Device));\r
return EFI_SUCCESS;\r
} else {\r
DEBUG ((EFI_D_ERROR, "DetectTpmDevice: Dtpm not present\n"));\r
return FALSE;\r
} else {\r
DEBUG ((EFI_D_ERROR, "DetectTpmDevice: Dtpm not present\n"));\r
return FALSE;\r
} else {\r
- DEBUG ((EFI_D_ERROR, "DetectTpmDevice: Dtpm present\n"));\r
+ DEBUG ((EFI_D_INFO, "DetectTpmDevice: Dtpm present\n"));\r
// In S3, we rely on normal boot Detection, because we save to ReadOnly Variable in normal boot.\r
//\r
if (BootMode == BOOT_ON_S3_RESUME) {\r
// In S3, we rely on normal boot Detection, because we save to ReadOnly Variable in normal boot.\r
//\r
if (BootMode == BOOT_ON_S3_RESUME) {\r
- DEBUG ((EFI_D_ERROR, "DetectTpmDevice: S3 mode\n"));\r
+ DEBUG ((EFI_D_INFO, "DetectTpmDevice: S3 mode\n"));\r
\r
Status = PeiServicesLocatePpi (&gEfiPeiReadOnlyVariable2PpiGuid, 0, NULL, (VOID **) &VariablePpi);\r
ASSERT_EFI_ERROR (Status);\r
\r
Status = PeiServicesLocatePpi (&gEfiPeiReadOnlyVariable2PpiGuid, 0, NULL, (VOID **) &VariablePpi);\r
ASSERT_EFI_ERROR (Status);\r
- DEBUG ((EFI_D_ERROR, "DetectTpmDevice:\n"));\r
+ DEBUG ((EFI_D_INFO, "DetectTpmDevice:\n"));\r
if (!IsDtpmPresent ()) {\r
// dTPM not available\r
return TPM_DEVICE_NULL;\r
if (!IsDtpmPresent ()) {\r
// dTPM not available\r
return TPM_DEVICE_NULL;\r
/** @file\r
The module entry point for TrEE configuration module.\r
\r
/** @file\r
The module entry point for TrEE configuration module.\r
\r
-Copyright (c) 2013, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2013 - 2014, Intel Corporation. All rights reserved.<BR>\r
This program and the accompanying materials \r
are licensed and made available under the terms and conditions of the BSD License \r
which accompanies this distribution. The full text of the license may be found at \r
This program and the accompanying materials \r
are licensed and made available under the terms and conditions of the BSD License \r
which accompanies this distribution. The full text of the license may be found at \r
//\r
// Although we have SetupVariable info, we still need detect TPM device manually.\r
//\r
//\r
// Although we have SetupVariable info, we still need detect TPM device manually.\r
//\r
- DEBUG ((EFI_D_ERROR, "TrEEConfiguration.TpmDevice from Setup: %x\n", TrEEConfiguration.TpmDevice));\r
+ DEBUG ((EFI_D_INFO, "TrEEConfiguration.TpmDevice from Setup: %x\n", TrEEConfiguration.TpmDevice));\r
\r
if (PcdGetBool (PcdTpmAutoDetection)) {\r
TpmDevice = DetectTpmDevice (TrEEConfiguration.TpmDevice);\r
\r
if (PcdGetBool (PcdTpmAutoDetection)) {\r
TpmDevice = DetectTpmDevice (TrEEConfiguration.TpmDevice);\r
- DEBUG ((EFI_D_ERROR, "TpmDevice final: %x\n", TpmDevice));\r
+ DEBUG ((EFI_D_INFO, "TpmDevice final: %x\n", TpmDevice));\r
if (TpmDevice != TPM_DEVICE_NULL) {\r
TrEEConfiguration.TpmDevice = TpmDevice;\r
}\r
if (TpmDevice != TPM_DEVICE_NULL) {\r
TrEEConfiguration.TpmDevice = TpmDevice;\r
}\r
if (TpmDevice == mTpmInstanceId[Index].TpmDevice) {\r
Size = sizeof(mTpmInstanceId[Index].TpmInstanceGuid);\r
PcdSetPtr (PcdTpmInstanceGuid, &Size, &mTpmInstanceId[Index].TpmInstanceGuid);\r
if (TpmDevice == mTpmInstanceId[Index].TpmDevice) {\r
Size = sizeof(mTpmInstanceId[Index].TpmInstanceGuid);\r
PcdSetPtr (PcdTpmInstanceGuid, &Size, &mTpmInstanceId[Index].TpmInstanceGuid);\r
- DEBUG ((EFI_D_ERROR, "TpmDevice PCD: %g\n", &mTpmInstanceId[Index].TpmInstanceGuid));\r
+ DEBUG ((EFI_D_INFO, "TpmDevice PCD: %g\n", &mTpmInstanceId[Index].TpmInstanceGuid));\r
IN OUT TREE_BOOT_SERVICE_CAPABILITY *ProtocolCapability\r
)\r
{\r
IN OUT TREE_BOOT_SERVICE_CAPABILITY *ProtocolCapability\r
)\r
{\r
- DEBUG ((EFI_D_ERROR, "TreeGetCapability ...\n"));\r
+ DEBUG ((EFI_D_INFO, "TreeGetCapability ...\n"));\r
\r
if ((This == NULL) || (ProtocolCapability == NULL)) {\r
return EFI_INVALID_PARAMETER;\r
\r
if ((This == NULL) || (ProtocolCapability == NULL)) {\r
return EFI_INVALID_PARAMETER;\r
}\r
\r
CopyMem (ProtocolCapability, &mTcgDxeData.BsCap, mTcgDxeData.BsCap.Size);\r
}\r
\r
CopyMem (ProtocolCapability, &mTcgDxeData.BsCap, mTcgDxeData.BsCap.Size);\r
- DEBUG ((EFI_D_ERROR, "TreeGetCapability - %r\n", EFI_SUCCESS));\r
+ DEBUG ((EFI_D_INFO, "TreeGetCapability - %r\n", EFI_SUCCESS));\r
return EFI_SUCCESS;\r
}\r
\r
return EFI_SUCCESS;\r
}\r
\r
- DEBUG ((EFI_D_ERROR, "TreeGetEventLog ...\n"));\r
+ DEBUG ((EFI_D_INFO, "TreeGetEventLog ...\n"));\r
\r
if (This == NULL) {\r
return EFI_INVALID_PARAMETER;\r
\r
if (This == NULL) {\r
return EFI_INVALID_PARAMETER;\r
\r
if (EventLogLocation != NULL) {\r
*EventLogLocation = mTcgDxeData.EventLogAreaStruct[Index].Lasa;\r
\r
if (EventLogLocation != NULL) {\r
*EventLogLocation = mTcgDxeData.EventLogAreaStruct[Index].Lasa;\r
- DEBUG ((EFI_D_ERROR, "TreeGetEventLog (EventLogLocation - %x)\n", *EventLogLocation));\r
+ DEBUG ((EFI_D_INFO, "TreeGetEventLog (EventLogLocation - %x)\n", *EventLogLocation));\r
}\r
\r
if (EventLogLastEntry != NULL) {\r
}\r
\r
if (EventLogLastEntry != NULL) {\r
} else {\r
*EventLogLastEntry = (EFI_PHYSICAL_ADDRESS)(UINTN)mTcgDxeData.EventLogAreaStruct[Index].LastEvent;\r
}\r
} else {\r
*EventLogLastEntry = (EFI_PHYSICAL_ADDRESS)(UINTN)mTcgDxeData.EventLogAreaStruct[Index].LastEvent;\r
}\r
- DEBUG ((EFI_D_ERROR, "TreeGetEventLog (EventLogLastEntry - %x)\n", *EventLogLastEntry));\r
+ DEBUG ((EFI_D_INFO, "TreeGetEventLog (EventLogLastEntry - %x)\n", *EventLogLastEntry));\r
}\r
\r
if (EventLogTruncated != NULL) {\r
*EventLogTruncated = mTcgDxeData.EventLogAreaStruct[Index].EventLogTruncated;\r
}\r
\r
if (EventLogTruncated != NULL) {\r
*EventLogTruncated = mTcgDxeData.EventLogAreaStruct[Index].EventLogTruncated;\r
- DEBUG ((EFI_D_ERROR, "TreeGetEventLog (EventLogTruncated - %x)\n", *EventLogTruncated));\r
+ DEBUG ((EFI_D_INFO, "TreeGetEventLog (EventLogTruncated - %x)\n", *EventLogTruncated));\r
- DEBUG ((EFI_D_ERROR, "TreeGetEventLog - %r\n", EFI_SUCCESS));\r
+ DEBUG ((EFI_D_INFO, "TreeGetEventLog - %r\n", EFI_SUCCESS));\r
\r
// Dump Event Log for debug purpose\r
if ((EventLogLocation != NULL) && (EventLogLastEntry != NULL)) {\r
\r
// Dump Event Log for debug purpose\r
if ((EventLogLocation != NULL) && (EventLogLastEntry != NULL)) {\r
TCG_PCR_EVENT_HDR NewEventHdr;\r
TPML_DIGEST_VALUES DigestList;\r
\r
TCG_PCR_EVENT_HDR NewEventHdr;\r
TPML_DIGEST_VALUES DigestList;\r
\r
- DEBUG ((EFI_D_ERROR, "TreeHashLogExtendEvent ...\n"));\r
+ DEBUG ((EFI_D_INFO, "TreeHashLogExtendEvent ...\n"));\r
\r
if ((This == NULL) || (DataToHash == 0) || (Event == NULL)) {\r
return EFI_INVALID_PARAMETER;\r
\r
if ((This == NULL) || (DataToHash == 0) || (Event == NULL)) {\r
return EFI_INVALID_PARAMETER;\r
- DEBUG ((EFI_D_ERROR, "TreeHashLogExtendEvent - %r\n", Status));\r
+ DEBUG ((EFI_D_INFO, "TreeHashLogExtendEvent - %r\n", Status));\r
{\r
EFI_STATUS Status;\r
\r
{\r
EFI_STATUS Status;\r
\r
- DEBUG ((EFI_D_ERROR, "TreeSubmitCommand ...\n"));\r
+ DEBUG ((EFI_D_INFO, "TreeSubmitCommand ...\n"));\r
\r
if ((This == NULL) ||\r
(InputParameterBlockSize == 0) || (InputParameterBlock == NULL) ||\r
\r
if ((This == NULL) ||\r
(InputParameterBlockSize == 0) || (InputParameterBlock == NULL) ||\r
&OutputParameterBlockSize,\r
OutputParameterBlock\r
);\r
&OutputParameterBlockSize,\r
OutputParameterBlock\r
);\r
- DEBUG ((EFI_D_ERROR, "TreeSubmitCommand - %r\n", Status));\r
+ DEBUG ((EFI_D_INFO, "TreeSubmitCommand - %r\n", Status));\r
TCG_PCR_EVENT_HDR TcgEvent;\r
UINT32 EventData;\r
\r
TCG_PCR_EVENT_HDR TcgEvent;\r
UINT32 EventData;\r
\r
- DEBUG ((EFI_D_ERROR, "MeasureSeparatorEvent Pcr - %x\n", PCRIndex));\r
+ DEBUG ((EFI_D_INFO, "MeasureSeparatorEvent Pcr - %x\n", PCRIndex));\r
\r
EventData = 0;\r
TcgEvent.PCRIndex = PCRIndex;\r
\r
EventData = 0;\r
TcgEvent.PCRIndex = PCRIndex;\r
UINTN VarNameLength;\r
EFI_VARIABLE_DATA_TREE *VarLog;\r
\r
UINTN VarNameLength;\r
EFI_VARIABLE_DATA_TREE *VarLog;\r
\r
- DEBUG ((EFI_D_ERROR, "TrEEDxe: MeasureVariable (Pcr - %x, EventType - %x, ", (UINTN)PCRIndex, (UINTN)EventType));\r
- DEBUG ((EFI_D_ERROR, "VariableName - %s, VendorGuid - %g)\n", VarName, VendorGuid));\r
+ DEBUG ((EFI_D_INFO, "TrEEDxe: MeasureVariable (Pcr - %x, EventType - %x, ", (UINTN)PCRIndex, (UINTN)EventType));\r
+ DEBUG ((EFI_D_INFO, "VariableName - %s, VendorGuid - %g)\n", VarName, VendorGuid));\r
\r
VarNameLength = StrLen (VarName);\r
TcgEvent.PCRIndex = PCRIndex;\r
\r
VarNameLength = StrLen (VarName);\r
TcgEvent.PCRIndex = PCRIndex;\r
\r
if (PcdGetBool (PcdFirmwareDebuggerInitialized)) {\r
Status = MeasureLaunchOfFirmwareDebugger ();\r
\r
if (PcdGetBool (PcdFirmwareDebuggerInitialized)) {\r
Status = MeasureLaunchOfFirmwareDebugger ();\r
- DEBUG ((EFI_D_ERROR, "MeasureLaunchOfFirmwareDebugger - %r\n", Status));\r
+ DEBUG ((EFI_D_INFO, "MeasureLaunchOfFirmwareDebugger - %r\n", Status));\r
}\r
\r
Status = MeasureAllSecureVariables ();\r
}\r
\r
Status = MeasureAllSecureVariables ();\r
- DEBUG ((EFI_D_ERROR, "MeasureAllSecureVariables - %r\n", Status));\r
+ DEBUG ((EFI_D_INFO, "MeasureAllSecureVariables - %r\n", Status));\r
\r
//\r
// We need measure Separator(7) here, because this event must be between SecureBootPolicy (Configure)\r
\r
//\r
// We need measure Separator(7) here, because this event must be between SecureBootPolicy (Configure)\r
// the Authority measurement happen before ReadToBoot event.\r
//\r
Status = MeasureSeparatorEvent (7);\r
// the Authority measurement happen before ReadToBoot event.\r
//\r
Status = MeasureSeparatorEvent (7);\r
- DEBUG ((EFI_D_ERROR, "MeasureSeparatorEvent - %r\n", Status));\r
+ DEBUG ((EFI_D_INFO, "MeasureSeparatorEvent - %r\n", Status));\r
//\r
// Fill information\r
//\r
//\r
// Fill information\r
//\r
- DEBUG ((EFI_D_ERROR, "TrEE.ProtocolVersion - %02x.%02x\n", mTcgDxeData.BsCap.ProtocolVersion.Major, mTcgDxeData.BsCap.ProtocolVersion.Minor));\r
- DEBUG ((EFI_D_ERROR, "TrEE.StructureVersion - %02x.%02x\n", mTcgDxeData.BsCap.StructureVersion.Major, mTcgDxeData.BsCap.StructureVersion.Minor));\r
+ DEBUG ((EFI_D_INFO, "TrEE.ProtocolVersion - %02x.%02x\n", mTcgDxeData.BsCap.ProtocolVersion.Major, mTcgDxeData.BsCap.ProtocolVersion.Minor));\r
+ DEBUG ((EFI_D_INFO, "TrEE.StructureVersion - %02x.%02x\n", mTcgDxeData.BsCap.StructureVersion.Major, mTcgDxeData.BsCap.StructureVersion.Minor));\r
\r
Status = Tpm2GetCapabilityManufactureID (&mTcgDxeData.BsCap.ManufacturerID);\r
if (EFI_ERROR (Status)) {\r
DEBUG ((EFI_D_ERROR, "Tpm2GetCapabilityManufactureID fail!\n"));\r
} else {\r
\r
Status = Tpm2GetCapabilityManufactureID (&mTcgDxeData.BsCap.ManufacturerID);\r
if (EFI_ERROR (Status)) {\r
DEBUG ((EFI_D_ERROR, "Tpm2GetCapabilityManufactureID fail!\n"));\r
} else {\r
- DEBUG ((EFI_D_ERROR, "Tpm2GetCapabilityManufactureID - %08x\n", mTcgDxeData.BsCap.ManufacturerID));\r
+ DEBUG ((EFI_D_INFO, "Tpm2GetCapabilityManufactureID - %08x\n", mTcgDxeData.BsCap.ManufacturerID));\r
if (EFI_ERROR (Status)) {\r
DEBUG ((EFI_D_ERROR, "Tpm2GetCapabilityFirmwareVersion fail!\n"));\r
} else {\r
if (EFI_ERROR (Status)) {\r
DEBUG ((EFI_D_ERROR, "Tpm2GetCapabilityFirmwareVersion fail!\n"));\r
} else {\r
- DEBUG ((EFI_D_ERROR, "Tpm2GetCapabilityFirmwareVersion - %08x %08x\n", FirmwareVersion1, FirmwareVersion2));\r
+ DEBUG ((EFI_D_INFO, "Tpm2GetCapabilityFirmwareVersion - %08x %08x\n", FirmwareVersion1, FirmwareVersion2));\r
} else {\r
mTcgDxeData.BsCap.MaxCommandSize = (UINT16)MaxCommandSize;\r
mTcgDxeData.BsCap.MaxResponseSize = (UINT16)MaxResponseSize;\r
} else {\r
mTcgDxeData.BsCap.MaxCommandSize = (UINT16)MaxCommandSize;\r
mTcgDxeData.BsCap.MaxResponseSize = (UINT16)MaxResponseSize;\r
- DEBUG ((EFI_D_ERROR, "Tpm2GetCapabilityMaxCommandResponseSize - %08x, %08x\n", MaxCommandSize, MaxResponseSize));\r
+ DEBUG ((EFI_D_INFO, "Tpm2GetCapabilityMaxCommandResponseSize - %08x, %08x\n", MaxCommandSize, MaxResponseSize));\r
}\r
\r
Status = Tpm2GetCapabilityPcrs (&Pcrs);\r
}\r
\r
Status = Tpm2GetCapabilityPcrs (&Pcrs);\r
DEBUG ((EFI_D_ERROR, "Tpm2GetCapabilityPcrs fail!\n"));\r
TpmHashAlgorithmBitmap = TREE_BOOT_HASH_ALG_SHA1;\r
} else {\r
DEBUG ((EFI_D_ERROR, "Tpm2GetCapabilityPcrs fail!\n"));\r
TpmHashAlgorithmBitmap = TREE_BOOT_HASH_ALG_SHA1;\r
} else {\r
- DEBUG ((EFI_D_ERROR, "Tpm2GetCapabilityPcrs Count - %08x\n", Pcrs.count));\r
+ DEBUG ((EFI_D_INFO, "Tpm2GetCapabilityPcrs Count - %08x\n", Pcrs.count));\r
TpmHashAlgorithmBitmap = 0;\r
for (Index = 0; Index < Pcrs.count; Index++) {\r
TpmHashAlgorithmBitmap = 0;\r
for (Index = 0; Index < Pcrs.count; Index++) {\r
- DEBUG ((EFI_D_ERROR, "hash - %x\n", Pcrs.pcrSelections[Index].hash));\r
+ DEBUG ((EFI_D_INFO, "hash - %x\n", Pcrs.pcrSelections[Index].hash));\r
switch (Pcrs.pcrSelections[Index].hash) {\r
case TPM_ALG_SHA1:\r
TpmHashAlgorithmBitmap |= TREE_BOOT_HASH_ALG_SHA1;\r
switch (Pcrs.pcrSelections[Index].hash) {\r
case TPM_ALG_SHA1:\r
TpmHashAlgorithmBitmap |= TREE_BOOT_HASH_ALG_SHA1;\r
- DEBUG ((EFI_D_ERROR, "TPM.HashAlgorithmBitmap - 0x%08x\n", TpmHashAlgorithmBitmap));\r
+ DEBUG ((EFI_D_INFO, "TPM.HashAlgorithmBitmap - 0x%08x\n", TpmHashAlgorithmBitmap));\r
- DEBUG ((EFI_D_ERROR, "TrEE.SupportedEventLogs - 0x%08x\n", mTcgDxeData.BsCap.SupportedEventLogs));\r
+ DEBUG ((EFI_D_INFO, "TrEE.SupportedEventLogs - 0x%08x\n", mTcgDxeData.BsCap.SupportedEventLogs));\r
mTcgDxeData.BsCap.HashAlgorithmBitmap = TpmHashAlgorithmBitmap;\r
mTcgDxeData.BsCap.HashAlgorithmBitmap = TpmHashAlgorithmBitmap;\r
- DEBUG ((EFI_D_ERROR, "TrEE.HashAlgorithmBitmap - 0x%08x\n", mTcgDxeData.BsCap.HashAlgorithmBitmap));\r
+ DEBUG ((EFI_D_INFO, "TrEE.HashAlgorithmBitmap - 0x%08x\n", mTcgDxeData.BsCap.HashAlgorithmBitmap));\r
\r
if (mTcgDxeData.BsCap.TrEEPresentFlag) {\r
//\r
\r
if (mTcgDxeData.BsCap.TrEEPresentFlag) {\r
//\r
// Install TrEEProtocol\r
//\r
Status = InstallTrEE ();\r
// Install TrEEProtocol\r
//\r
Status = InstallTrEE ();\r
- DEBUG ((EFI_D_ERROR, "InstallTrEE - %r\n", Status));\r
+ DEBUG ((EFI_D_INFO, "InstallTrEE - %r\n", Status));\r
/** @file\r
The implementation of Extended SAL variable services.\r
\r
/** @file\r
The implementation of Extended SAL variable services.\r
\r
-Copyright (c) 2009 - 2013, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2009 - 2014, Intel Corporation. All rights reserved.<BR>\r
This program and the accompanying materials \r
are licensed and made available under the terms and conditions of the BSD License \r
which accompanies this distribution. The full text of the license may be found at \r
This program and the accompanying materials \r
are licensed and made available under the terms and conditions of the BSD License \r
which accompanies this distribution. The full text of the license may be found at \r
);\r
} else {\r
Status = EFI_VOLUME_CORRUPTED;\r
);\r
} else {\r
Status = EFI_VOLUME_CORRUPTED;\r
- DEBUG((EFI_D_INFO, "Variable Store header is corrupted\n"));\r
+ DEBUG((EFI_D_ERROR, "Variable Store header is corrupted\n"));\r
/** @file\r
Measure TrEE required variable.\r
\r
/** @file\r
Measure TrEE required variable.\r
\r
-Copyright (c) 2013, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2013 - 2014, Intel Corporation. All rights reserved.<BR>\r
This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
which accompanies this distribution. The full text of the license may be found at\r
This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
which accompanies this distribution. The full text of the license may be found at\r
- DEBUG ((EFI_D_ERROR, "AuthVariableDxe: MeasureVariable (Pcr - %x, EventType - %x, ", (UINTN)7, (UINTN)EV_EFI_VARIABLE_AUTHORITY));\r
- DEBUG ((EFI_D_ERROR, "VariableName - %s, VendorGuid - %g)\n", VarName, VendorGuid));\r
+ DEBUG ((EFI_D_INFO, "AuthVariableDxe: MeasureVariable (Pcr - %x, EventType - %x, ", (UINTN)7, (UINTN)EV_EFI_VARIABLE_AUTHORITY));\r
+ DEBUG ((EFI_D_INFO, "VariableName - %s, VendorGuid - %g)\n", VarName, VendorGuid));\r
\r
Status = TpmMeasureAndLogData (\r
7,\r
\r
Status = TpmMeasureAndLogData (\r
7,\r
VariableData,\r
VariableDataSize\r
);\r
VariableData,\r
VariableDataSize\r
);\r
- DEBUG ((EFI_D_ERROR, "MeasureBootPolicyVariable - %r\n", Status));\r
+ DEBUG ((EFI_D_INFO, "MeasureBootPolicyVariable - %r\n", Status));\r
\r
if (VariableData != NULL) {\r
FreePool (VariableData);\r
\r
if (VariableData != NULL) {\r
FreePool (VariableData);\r
ZeroMem (OldData, KekDataSize);\r
while ((KekDataSize > 0) && (KekDataSize >= CertList->SignatureListSize)) {\r
CertCount = (CertList->SignatureListSize - sizeof (EFI_SIGNATURE_LIST) - CertList->SignatureHeaderSize) / CertList->SignatureSize;\r
ZeroMem (OldData, KekDataSize);\r
while ((KekDataSize > 0) && (KekDataSize >= CertList->SignatureListSize)) {\r
CertCount = (CertList->SignatureListSize - sizeof (EFI_SIGNATURE_LIST) - CertList->SignatureHeaderSize) / CertList->SignatureSize;\r
- DEBUG ((DEBUG_ERROR, " CertCount = %x\n", CertCount));\r
+ DEBUG ((DEBUG_INFO, " CertCount = %x\n", CertCount));\r
if (CertCount != 0) {\r
CopyMem (OldData + Offset, CertList, CertList->SignatureListSize);\r
Offset += CertList->SignatureListSize;\r
if (CertCount != 0) {\r
CopyMem (OldData + Offset, CertList, CertList->SignatureListSize);\r
Offset += CertList->SignatureListSize;\r
ZeroMem (OldData, ItemDataSize);\r
while ((ItemDataSize > 0) && (ItemDataSize >= CertList->SignatureListSize)) {\r
CertCount = (CertList->SignatureListSize - sizeof (EFI_SIGNATURE_LIST) - CertList->SignatureHeaderSize) / CertList->SignatureSize;\r
ZeroMem (OldData, ItemDataSize);\r
while ((ItemDataSize > 0) && (ItemDataSize >= CertList->SignatureListSize)) {\r
CertCount = (CertList->SignatureListSize - sizeof (EFI_SIGNATURE_LIST) - CertList->SignatureHeaderSize) / CertList->SignatureSize;\r
- DEBUG ((DEBUG_ERROR, " CertCount = %x\n", CertCount));\r
+ DEBUG ((DEBUG_INFO, " CertCount = %x\n", CertCount));\r
if (CertCount != 0) {\r
CopyMem (OldData + Offset, (UINT8*)(CertList), CertList->SignatureListSize);\r
Offset += CertList->SignatureListSize;\r
if (CertCount != 0) {\r
CopyMem (OldData + Offset, (UINT8*)(CertList), CertList->SignatureListSize);\r
Offset += CertList->SignatureListSize;\r