Skip to content

Conversation

apop5
Copy link
Collaborator

@apop5 apop5 commented Mar 14, 2025

Description

StandaloneMmPkg: Disable assert when gMmCommBufferHobGuid not found.

For AARCH64 using StandaloneMmPkg, gMmCommBufferHobGuid will not exist. Aarch64 makes use of their own Root MmiHandler that will get the communication buffer out of a separate buffer, and will call MmiMange directly with the information.

For x64, where gMmCommBufferHobGuid is expected to be supplied in the hob list passed to StandaloneCore, if the hob does not exist, print out a debug message describing the failure scenario.

Its important to note that a mising gMmCommBufferHobGuid will mean non-root MmiHandlers will not be dispatched in the x64 scenario, but that root MmiHandlers will still be dispatched.

  • Impacts functionality?
  • Impacts security?
  • Breaking change?
  • Includes tests?
  • Includes documentation?
  • Backport to release branch?

How This Was Tested

Booted SBSA without fix, and system would hang at assert gMmCommBufferHobGuid was not found.
After fix, system was able to boot to Uefi shell and Windows.

Integration Instructions

N/A

@apop5 apop5 requested review from kuqin12, makubacki and os-d March 14, 2025 17:45
@github-actions github-actions bot added the impact:non-functional Does not have a functional impact label Mar 14, 2025
@makubacki
Copy link
Member

Can you please include the "(cherry picked from commit ...)" message at the end of the commit? The one that comes from the -x argument.

@apop5 apop5 force-pushed the personal/apop5/cherrypickstmmfixaarch64 branch from b098219 to aaaba23 Compare March 17, 2025 21:45
…d not found.

For AARCH64 using StandaloneMmPkg, gMmCommBufferHobGuid will not exist.
Aarch64 makes use of their own Root MmiHandler that will get the
communication buffer out of a separate buffer, and will call
MmiMange directly with the information.

For x64, where gMmCommBufferHobGuid is expected to be supplied
in the hob list passed to StandaloneCore, if the hob does not
exist, print out a debug message describing the failure scenario.

Its important to note that a mising gMmCommBufferHobGuid will
mean non-root MmiHandlers will not be dispatched in the x64
scenario, but that root MmiHandlers will still be dispatched.

Signed-off-by: Aaron Pop <aaronpop@microsoft.com>
Co-authored-by: Aaron Pop <aaronpop@microsoft.com>
(cherry picked from commit 015c4a3)
@apop5 apop5 force-pushed the personal/apop5/cherrypickstmmfixaarch64 branch from 6df79f7 to 318eba1 Compare March 21, 2025 23:34
@apop5 apop5 merged commit 4efe7fb into microsoft:dev/202502 Mar 22, 2025
32 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

impact:non-functional Does not have a functional impact

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants