Branch: refs/heads/master
  Home:   https://github.com/tianocore/edk2
  Commit: 24a80a59dbe02e4101303ff3acb3ae9fcd8ed7cb
      
https://github.com/tianocore/edk2/commit/24a80a59dbe02e4101303ff3acb3ae9fcd8ed7cb
  Author: Ray Ni <[email protected]>
  Date:   2025-06-04 (Wed, 04 Jun 2025)

  Changed paths:
    M StandaloneMmPkg/Core/FwVol.c

  Log Message:
  -----------
  StandaloneMmPkg/Core: Fix FV HOB loop by advancing with GET_NEXT_HOB

Previously, MmDispatchFvs could enter an infinite loop if a Firmware Volume
HOB with zero length was encountered, because GetNextHob() was called with
the same FvHob pointer repeatedly. This patch fixes the issue by passing
GET_NEXT_HOB(FvHob) to GetNextHob(), ensuring the loop advances to the next
HOB and preventing hangs.

Signed-off-by: Ray Ni <[email protected]>


  Commit: 97fc789316e73dd37a0c0fcd4ee9bae2bb35bd8f
      
https://github.com/tianocore/edk2/commit/97fc789316e73dd37a0c0fcd4ee9bae2bb35bd8f
  Author: Ray Ni <[email protected]>
  Date:   2025-06-04 (Wed, 04 Jun 2025)

  Changed paths:
    M StandaloneMmPkg/Core/FwVol.c

  Log Message:
  -----------
  StandaloneMmPkg/Core: Improve debug messages

Refine debug output for better troubleshooting:
 1. Consolidate FV address and size into one log message
 2. Add function name to error messages for better traceability
 3. Use AllocateCopyPool() instead of separate AllocatePool() and CopyMem()

Signed-off-by: Ray Ni <[email protected]>


  Commit: 51733a72ca99bd4cd183be242bc234fbfa668ff4
      
https://github.com/tianocore/edk2/commit/51733a72ca99bd4cd183be242bc234fbfa668ff4
  Author: Ray Ni <[email protected]>
  Date:   2025-06-04 (Wed, 04 Jun 2025)

  Changed paths:
    M StandaloneMmPkg/Core/FwVol.c

  Log Message:
  -----------
  StandaloneMmPkg/Core: try best to dispatch FVs

Original logic skips to call MmDispatcher() when number of FV HOBs exceeds
the max supported FVs even for the already-discovered FVs.
Original logic skips to call MmDispatcher() and even skips to process other
FVs when insufficient MM memory for shadowing a FV.

For both cases, replace "return" with "continue" to try best to dispatch
more FVs.

Signed-off-by: Ray Ni <[email protected]>


Compare: https://github.com/tianocore/edk2/compare/d6d2f68e3801...51733a72ca99

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


_______________________________________________
edk2-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-commits

Reply via email to