Skip to content

patina_debugger: Do not initialize the transport by default#1550

Merged
cfernald merged 3 commits into
OpenDevicePartnership:mainfrom
cfernald:dbg_transport_init
Jun 3, 2026
Merged

patina_debugger: Do not initialize the transport by default#1550
cfernald merged 3 commits into
OpenDevicePartnership:mainfrom
cfernald:dbg_transport_init

Conversation

@cfernald

@cfernald cfernald commented Jun 2, 2026

Copy link
Copy Markdown
Contributor

Description

This change removes the default behavior to initialize the debugger transport serial port. Most systems will use a shared transport, and so the re-initialization is at best unnecessary. In some scenarios the Patina serial transport initialization may stomp on the existing configuration. This has caused confusion on multiple platforms during enablement. It is best to just skip unless requested. This commit inverts the default, deprecates without_transport_init, and introduces with_transport_init for the rare platforms that require this.

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

How This Was Tested

Tested that Q35 & SBSA debuggers still function

Integration Instructions

Platforms using without_transport_init() may safely drop that function call. There are no known platforms that require transport initialization, but if so those should now call with_transport_init() as needed.

This change removes the default behavior to initialize the debugger transport
serial port. Most systems will use a shared transport, and so the re-initialization
is at best unnecessary. In some scenarios the Patina serial transport
initialization may stomp on the existing configuration. It is best to
just skip unless requested. This commit inverts the default, deprecates
`without_transport_init`, and introduces `with_transport_init` for
the rare platforms that require this.
@cfernald cfernald requested review from Javagedes, makubacki and os-d June 2, 2026 23:22
@patina-automation

patina-automation Bot commented Jun 2, 2026

Copy link
Copy Markdown
Contributor

✅ QEMU Validation Passed

All QEMU validation jobs completed successfully.

Note: Q35 is only built on Windows hosts (QEMU boot is disabled due to a QEMU vfat issue).

Workflow run: https://github.com/OpenDevicePartnership/patina/actions/runs/26915246980

Boot Time to EFI Shell

Platform Elapsed
Q35 (Linux Host) 26.2s
SBSA (Linux Host) 33.9s

Dependencies

Repository Ref
patina 3fa3a4c
patina-dxe-core-qemu 096602e
patina-fw-patcher 36359c7
patina-qemu firmware v3.0.0
patina-qemu build script b9cb783

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

@codecov

codecov Bot commented Jun 2, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@makubacki makubacki added the type:design-change A new proposal or modification to a feature design label Jun 3, 2026

@makubacki makubacki left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I added the design change label to at least rev the minor version for visibility to the deprecation change in the release notes. There should be integration guidance in the PR description as well though.

Comment thread core/patina_debugger/src/debugger.rs
Comment thread core/patina_debugger/src/debugger.rs Outdated
Comment thread core/patina_debugger/src/debugger.rs Outdated
Comment thread core/patina_debugger/src/debugger.rs Outdated
@cfernald cfernald enabled auto-merge (squash) June 3, 2026 21:39
@cfernald cfernald merged commit 78385db into OpenDevicePartnership:main Jun 3, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type:design-change A new proposal or modification to a feature design

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants