Skip to content

dev-qemu: add sp-serial feature for the SP link#5

Open
dymk wants to merge 1 commit into
mainfrom
dymk/f1.1-on-modernized-ec
Open

dev-qemu: add sp-serial feature for the SP link#5
dymk wants to merge 1 commit into
mainfrom
dymk/f1.1-on-modernized-ec

Conversation

@dymk

@dymk dymk commented Jun 29, 2026

Copy link
Copy Markdown
Owner

What

Add an off-by-default sp-serial feature to dev-qemu that selects uart-service's MctpSerialMedium (DSP0253 framing) instead of the default SmbusEspiMedium, for the two-QEMU SP ↔ EC serial link. Pure compile-time selector — both medium constructors already live in uart-service; dev-qemu holds no wire addressing.

Why

The default build keeps SmbusEspi (the framing ec-test-cli speaks), so the single-QEMU integration-test stays green. The sp-serial feature selects the serial medium the Secure Partition speaks over the two-QEMU link; the qemu-sbsa harness builds --features sp-serial.

Context

Builds on OpenDevicePartnership#33 (EC modernized to embedded-services main): default_mctp_serial now resolves directly from upstream embedded-services main — no fork [patch].

Verification

  • Both configs build clean (release/LTO): default (SmbusEspi) and --features sp-serial (DSP0253).
  • fmt --check + clippy clean.
  • Two-QEMU SP ↔ EC e2e (odp-platform-qemu-sbsa test-sp-ec-link): the full UEFI ↔ FFA ↔ SP ↔ DSP0253-serial ↔ EC thermal GetTmp round-trip passes (ffa_version / ffa_id_get / partition_discovery / thermal_get_temperature all green). The sp-serial code path is unchanged by the rebase onto merged main.

Assisted-by: GitHub Copilot:claude-opus-4.8

Add an off-by-default `sp-serial` feature to dev-qemu that selects
uart-service's MctpSerialMedium (DSP0253) instead of the default
SmbusEspiMedium, for the two-QEMU SP <-> EC serial link. The default
build keeps SmbusEspi so the ec-test-cli integration-test stays green;
the harness builds --features sp-serial.

This is F1.1 re-pinned onto the modernized EC: default_mctp_serial now
resolves directly from upstream embedded-services main (6d7dbbf, the
merged #906 ctor) with no fork [patch] override.

Assisted-by: GitHub Copilot:claude-opus-4.8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant