Branch: refs/heads/master
  Home:   https://github.com/tianocore/edk2
  Commit: dbf45a870b89fb9e307c41c66949288518c24440
      
https://github.com/tianocore/edk2/commit/dbf45a870b89fb9e307c41c66949288518c24440
  Author: Oliver Smith-Denny <o...@microsoft.com>
  Date:   2025-07-14 (Mon, 14 Jul 2025)

  Changed paths:
    M MdePkg/Include/Library/DebugLib.h
    M MdePkg/MdePkg.dec

  Log Message:
  -----------
  MdePkg: Add DEBUG_SECURITY Bit in PcdDebugPrintErrorLevel

Tcg2Dxe and its libraries are currently the noisiest modules in
edk2. For a sample platform printing at INFO level, Tcg2Dxe
printed 4,000 lines out of 5,700 total lines printed.

This commit defines a DEBUG_SECURITY bit to control the debug output
of Tcg2Dxe and other security related components. Most of the output is
not useful except for deep debugging of TPM transactions, so it is
appropriate to only print when the DEBUG_SECURITY bit is present.

Signed-off-by: Oliver Smith-Denny <o...@microsoft.com>


  Commit: 1f2adcbba571faead4795bfbeeb232e82166c901
      
https://github.com/tianocore/edk2/commit/1f2adcbba571faead4795bfbeeb232e82166c901
  Author: Oliver Smith-Denny <o...@microsoft.com>
  Date:   2025-07-14 (Mon, 14 Jul 2025)

  Changed paths:
    M SecurityPkg/Library/DxeTpm2MeasureBootLib/DxeTpm2MeasureBootLib.c
    M SecurityPkg/Library/Tpm2CommandLib/Tpm2Capability.c
    M SecurityPkg/Library/Tpm2CommandLib/Tpm2Integrity.c
    M SecurityPkg/Tcg/Tcg2Dxe/Tcg2Dxe.c

  Log Message:
  -----------
  SecurityPkg: Remove/Downgrade Noisy TCG Prints

The TCG code is very noisy when a TPM is connected. This
commit downgrades some prints to verbose and removes some
others that do not have value (such as function enter and
exit prints).

Signed-off-by: Oliver Smith-Denny <o...@microsoft.com>


  Commit: d5b86303792d44db5b94636b920547340c4fca61
      
https://github.com/tianocore/edk2/commit/d5b86303792d44db5b94636b920547340c4fca61
  Author: Oliver Smith-Denny <o...@microsoft.com>
  Date:   2025-07-14 (Mon, 14 Jul 2025)

  Changed paths:
    M SecurityPkg/Library/Tpm2CommandLib/Tpm2Integrity.c
    M SecurityPkg/Tcg/Tcg2Dxe/Tcg2Dxe.c

  Log Message:
  -----------
  SecurityPkg: Move Noisy Logs to DEBUG_SECURITY

The TPM code is currently very noisy (e.g. in a sample platform,
4,000 of the 5,700 lines printed to the serial port at DEBUG_INFO
level were from the TPM code). For TPM debugging, this is very
critical information, but for most builds it simply spams the logs
and slows down the build.

This commit moves the event log and PCR dumping to log at
DEBUG_SECURITY level.

Signed-off-by: Oliver Smith-Denny <o...@microsoft.com>


  Commit: 460f2705b4cf17198d10a8053ed03c88b4de8d00
      
https://github.com/tianocore/edk2/commit/460f2705b4cf17198d10a8053ed03c88b4de8d00
  Author: Bret Barkelew <brbar...@microsoft.com>
  Date:   2025-07-14 (Mon, 14 Jul 2025)

  Changed paths:
    M SecurityPkg/Library/Tpm2DeviceLibDTpm/Tpm2DeviceLibDTpm.inf
    A SecurityPkg/Library/Tpm2DeviceLibDTpm/Tpm2DeviceLibDTpmDump.c
    M SecurityPkg/Library/Tpm2DeviceLibDTpm/Tpm2DeviceLibDTpmStandaloneMm.inf
    M SecurityPkg/Library/Tpm2DeviceLibDTpm/Tpm2DeviceLibDTpmSvsm.inf
    M SecurityPkg/Library/Tpm2DeviceLibDTpm/Tpm2InstanceLibDTpm.inf
    M SecurityPkg/Library/Tpm2DeviceLibDTpm/Tpm2InstanceLibDTpmSvsm.inf
    M SecurityPkg/Library/Tpm2DeviceLibDTpm/Tpm2Ptp.c
    M SecurityPkg/Library/Tpm2DeviceLibDTpm/Tpm2Ptp.h
    M SecurityPkg/Library/Tpm2DeviceLibDTpm/Tpm2Tis.c

  Log Message:
  -----------
  SecurityPkg: Add Additional TPM Logging at DEBUG_SECURITY

This commit adds additional dumping logic to Tpm2DeviceLibDTpm,
print at DEBUG_SECURITY to aid in TPM debugging.

Signed-off-by: Oliver Smith-Denny <o...@microsoft.com>
Co-authored-by: Bret Barkelew <brbar...@microsoft.com>


Compare: https://github.com/tianocore/edk2/compare/a1b509c1a453...460f2705b4cf

To unsubscribe from these emails, change your notification settings at 
https://github.com/tianocore/edk2/settings/notifications


_______________________________________________
edk2-commits mailing list
edk2-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/edk2-commits

Reply via email to