Skip to content

AdvancedLoggerPkg/MmCoreArm: Initialize LoggerInfo if not already set by earlier firmware phase#886

Merged
apop5 merged 8 commits into
microsoft:release/202511from
sureshkumarpMSFT:release/202511
May 10, 2026
Merged

AdvancedLoggerPkg/MmCoreArm: Initialize LoggerInfo if not already set by earlier firmware phase#886
apop5 merged 8 commits into
microsoft:release/202511from
sureshkumarpMSFT:release/202511

Conversation

@sureshkumarpMSFT
Copy link
Copy Markdown
Contributor

@sureshkumarpMSFT sureshkumarpMSFT commented May 7, 2026

Description

In the MmCoreArm instance of AdvancedLoggerLib, AdvancedLoggerGetLoggerInfo() previously assumed that an earlier firmware phase (e.g. BL31 prior to StandaloneMM) had already initialized the ADVANCED_LOGGER_INFO header at PcdAdvancedLoggerBase. On ARM boot flows where StandaloneMM is the first phase to touch this buffer, the signature check in subsequent logger calls fails and no log records are written.

This change adds a one-time, in-place initialization of the ADVANCED_LOGGER_INFO header inside AdvancedLoggerGetLoggerInfo() when the signature is not already valid:

  • Impacts functionality?
  • Impacts security?
  • Breaking change?
  • Includes tests?
  • Includes documentation?

How This Was Tested

Verified on an ARM platform where no pre-StandaloneMM entity initializes the AdvancedLogger buffer

Integration Instructions

N/A

…D_LOGGER_INFO header in AdvancedLoggerGetLoggerInfo when no earlier firmware phase has done so

Signed-off-by: Sureshkumar Ponnusamy <sponnusamy@microsoft.com>
@mu-automation
Copy link
Copy Markdown
Contributor

mu-automation Bot commented May 7, 2026

✅ QEMU Validation Passed

Source Dependencies

Repository Commit
mu_plus fce8ea1
mu_tiano_platforms b7fc269

Results

Platform Target Build Boot Overall Boot Time Build Logs Boot Logs
Q35 DEBUG ✅ success ✅ success 0m 19s Build Logs Boot Logs
SBSA DEBUG ✅ success ✅ success 0m 27s Build Logs Boot Logs

Workflow run: https://github.com/microsoft/mu_plus/actions/runs/25602544396

This comment was automatically generated by the Mu QEMU PR Validation workflow.

@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented May 7, 2026

Codecov Report

❌ Patch coverage is 0% with 41 lines in your changes missing coverage. Please review.
⚠️ Please upload report for BASE (release/202511@4b08ed0). Learn more about missing BASE report.

Files with missing lines Patch % Lines
...ry/AdvancedLoggerLib/MmCoreArm/AdvancedLoggerLib.c 0.00% 35 Missing ⚠️
...y/AdvancedLoggerLib/PeilessArm/AdvancedLoggerLib.c 0.00% 4 Missing ⚠️
...brary/DebugAgent/Sec/AdvancedLoggerSecDebugAgent.c 0.00% 2 Missing ⚠️
Additional details and impacted files
@@               Coverage Diff                @@
##             release/202511    #886   +/-   ##
================================================
  Coverage                  ?   3.07%           
================================================
  Files                     ?      36           
  Lines                     ?    4266           
  Branches                  ?      73           
================================================
  Hits                      ?     131           
  Misses                    ?    4129           
  Partials                  ?       6           
Flag Coverage Δ
AdvLoggerPkg 3.07% <0.00%> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@sureshkumarpMSFT sureshkumarpMSFT changed the title AdvancedLoggerPkg/MmCoreArm : Initialize the Loggerinfo if no no earlier firmware phase has done so AdvancedLoggerPkg/MmCoreArm : Initialize the Loggerinfo if no earlier firmware phase has done so May 8, 2026
@sureshkumarpMSFT sureshkumarpMSFT changed the title AdvancedLoggerPkg/MmCoreArm : Initialize the Loggerinfo if no earlier firmware phase has done so AdvancedLoggerPkg/MmCoreArm: Initialize LoggerInfo if not already set by earlier firmware phase May 8, 2026
@apop5 apop5 requested review from kuqin12, makubacki and os-d May 8, 2026 16:35
Comment thread AdvLoggerPkg/Library/AdvancedLoggerLib/MmCoreArm/AdvancedLoggerLib.c Outdated
Comment thread AdvLoggerPkg/Library/AdvancedLoggerLib/MmCoreArm/AdvancedLoggerLib.c Outdated
sureshkumarpMSFT and others added 5 commits May 8, 2026 15:04
…rLib.c

Co-authored-by: Oliver Smith-Denny <osde@microsoft.com>
…rLib.c

Co-authored-by: Oliver Smith-Denny <osde@microsoft.com>
…rLib.c

Co-authored-by: Michael Kubacki <michael.kubacki@microsoft.com>
Signed-off-by: Sureshkumar Ponnusamy <sponnusamy@microsoft.com>
Signed-off-by: Sureshkumar Ponnusamy <sponnusamy@microsoft.com>
@makubacki makubacki added the type:enhancement New feature or pull request label May 9, 2026
Signed-off-by: Sureshkumar Ponnusamy <sponnusamy@microsoft.com>
Signed-off-by: Sureshkumar Ponnusamy <sponnusamy@microsoft.com>
@apop5 apop5 merged commit 186583f into microsoft:release/202511 May 10, 2026
30 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type:enhancement New feature or pull request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants