Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Cherry-Pick] StandaloneMmPkg: Disable assert when gMmCommBufferHobGuid not found. #1306

Open
wants to merge 1 commit into
base: dev/202502
Choose a base branch
from

Conversation

apop5
Copy link
Contributor

@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

…id 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 <[email protected]>
Co-authored-by: Aaron Pop <[email protected]>
@apop5 apop5 requested review from makubacki, os-d and kuqin12 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.

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