Skip to content

AdvLoggerPkg: Default PcdAdvancedLoggerHdwPortOsRuntimeDisable to TRUE - #918

Merged
os-d merged 1 commit into
microsoft:release/202511from
os-d:pcdflip
Jul 13, 2026
Merged

AdvLoggerPkg: Default PcdAdvancedLoggerHdwPortOsRuntimeDisable to TRUE#918
os-d merged 1 commit into
microsoft:release/202511from
os-d:pcdflip

Conversation

@os-d

@os-d os-d commented Jul 13, 2026

Copy link
Copy Markdown
Contributor

Description

1d1b4db changed the behavior of runtime AdvLogger prints to always print to the serial port. This breaks platforms who give up control of the serial port to an OS after ExitBootServices.

cea5d2a followed on to fix this behavior by introducing
PcdAdvancedLoggerHdwPortOsRuntimeDisable to allow returning to the original behavior and disabling the hardware port logging during runtime.

However, this commit set the PCD default to FALSE, which left the breaking change behavior in place, which quietly gets picked up by platforms.

This commit flips the PCD default to return to the original behavior and not log to the hardware port at runtime by default. Platforms may set this PCD to FALSE if it is safe to do so on their implementation.

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

How This Was Tested

Tested on a platform where it is not safe to write to the serial port at runtime. It crashed before this change and boots after it.

Integration Instructions

Platforms will continue to work as they did before 1d1b4db. Platforms who wish to have serial logging at runtime can set PcdAdvancedLoggerHdwPortOsRuntimeDisable|TRUE in their DSC.

microsoft@1d1b4db
changed the behavior of runtime AdvLogger prints to always print to the
serial port. This breaks platforms who give up control of the serial
port to an OS after ExitBootServices.

microsoft@cea5d2a
followed on to fix this behavior by introducing
PcdAdvancedLoggerHdwPortOsRuntimeDisable to allow returning to the
original behavior and disabling the hardware port logging during
runtime.

However, this commit set the PCD default to FALSE, which left the
breaking change behavior in place, which quietly gets picked up
by platforms.

This commit flips the PCD default to return to the original behavior
and not log to the hardware port at runtime by default. Platforms
may set this PCD to FALSE if it is safe to do so on their
implementation.

Signed-off-by: Oliver Smith-Denny <osde@microsoft.com>
@os-d
os-d requested review from apop5, kuqin12 and makubacki July 13, 2026 20:51
@os-d os-d added the type:bug Something isn't working label Jul 13, 2026
@os-d
os-d enabled auto-merge (rebase) July 13, 2026 20:51
@mu-automation

mu-automation Bot commented Jul 13, 2026

Copy link
Copy Markdown
Contributor

✅ QEMU Validation Passed

Source Dependencies

Repository Commit
mu_plus 8d107b9
mu_tiano_platforms 95b8d00

Results

Platform Target Build Boot Overall Boot Time Build Logs Boot Logs
Q35 DEBUG ✅ success ✅ success 0m 20s Build Logs Boot Logs
ArmVirt DEBUG ✅ success ✅ success 0m 14s Build Logs Boot Logs

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

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

@codecov-commenter

codecov-commenter commented Jul 13, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
⚠️ Please upload report for BASE (release/202511@fcb7c70). Learn more about missing BASE report.

Additional details and impacted files
@@               Coverage Diff                @@
##             release/202511    #918   +/-   ##
================================================
  Coverage                  ?   3.02%           
================================================
  Files                     ?      37           
  Lines                     ?    4327           
  Branches                  ?      73           
================================================
  Hits                      ?     131           
  Misses                    ?    4190           
  Partials                  ?       6           
Flag Coverage Δ
AdvLoggerPkg 3.02% <ø> (?)

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

☔ View full report in Codecov by Harness.
📢 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.

@os-d

os-d commented Jul 13, 2026

Copy link
Copy Markdown
Contributor Author

/azp run Mu Plus PR EDK2

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 1 pipeline(s).

@os-d
os-d merged commit cad95a5 into microsoft:release/202511 Jul 13, 2026
42 checks passed
@os-d
os-d deleted the pcdflip branch July 13, 2026 21:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type:bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants