Repository navigation
[major] Integrate UEFI Services with patina_performance and refactor the component [Rebase & FF] - #1798
Merged
makubacki merged 7 commits intoSep 25, 2026
Conversation
Codecov Report❌ Patch coverage is 📢 Thoughts on this report? Let us know! |
Contributor
ℹ️ QEMU Validation Skipped - Unsupported Target BranchThe Patina QEMU PR validation workflow did not run because the PR targets an unsupported branch. Workflow run: https://github.com/OpenDevicePartnership/patina/actions/runs/36169581472
This comment was automatically generated by the Patina QEMU PR Validation Post workflow. |
os-d
approved these changes
Sep 22, 2026
cfernald
approved these changes
Sep 23, 2026
makubacki
force-pushed
the
patina_uefi_services_major_3
branch
from
September 24, 2026 16:57
177fe75 to
307d1b9
Compare
Splits the protocol-installation responsibility out of the monolithic Performance component into its own MeasurementProtocolPublisher, and replaces the custom ServiceHolder (OnceCell + AtomicBool + manual unsafe impl Sync) with ServiceCell, installing the protocol through ProtocolServicesExt instead of a raw BootServices call. The old Performance component is untouched and keeps working during this incremental migration. It will be removed once the remaining components are split out. Signed-off-by: Michael Kubacki <michael.kubacki@microsoft.com>
Splits performance property publishing out of the monolithic Performance component. Depends only on `ArchTimerFunctionality` and `ConfigurationTableServices` for its own work, plus `PerformanceManager` as a dependency so this table is only published when performance measurement is enabled. Signed-off-by: Michael Kubacki <michael.kubacki@microsoft.com>
Splits FBPT (Firmware Basic Boot Performance Table) publishing out of the monolithic Performance component. Migrates the End-of-DXE event registration, protocol location, page allocation, and configuration table installation from raw `BootServices` calls to granular service calls to `EventServices`, `ProtocolServices`, `MemoryManager`, and `ConfigurationTableServices`. `RuntimeServices` is left as a generic parameter since there is not a dedicated Patina service for Runtime Services at this time. The old `close_event()` once-only guard is replaced with a captured `Cell<bool>`, since the closure-based event API does not hand the callback its own `Event` to close. Signed-off-by: Michael Kubacki <michael.kubacki@microsoft.com>
Splits MM performance record collection out of the monolithic Performance component. `mm_comm_service` is now a required `Service<dyn MmCommunication>` rather than `Option<Service<...>>`, so the dispatcher itself skips this component on platforms with no MM communication region instead of branching on an `Option<Service<...>>` at runtime. Also adds a `core::error::Error` `impl` for `MmPerformanceError` while it is already being moved. Signed-off-by: Michael Kubacki <michael.kubacki@microsoft.com>
The monolithic Performance component has now been split into separate single-purpose components, each with its own responsibilities, so it can be removed. Signed-off-by: Michael Kubacki <michael.kubacki@microsoft.com>
Makes it easier to confirm key events happen in the patina_perforamnce components by being able to track and verify important events in the log. Signed-off-by: Michael Kubacki <michael.kubacki@microsoft.com>
Updates docs in the mdbook and the patina_performance component crate to reflect the recent split of the monolithic patina_performance component into separate components. Signed-off-by: Michael Kubacki <michael.kubacki@microsoft.com>
makubacki
force-pushed
the
patina_uefi_services_major_3
branch
from
September 25, 2026 17:34
307d1b9 to
290d0d5
Compare
Collaborator
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
A series of commits to split patina_performance into more granular components that take dependencies relevant to that task they are performing and integrate UEFI Services in the process.
patina_performance: Migrate protocol.rs to MeasurementProtocolPublisher
Splits the protocol-installation responsibility out of the monolithic
Performance component into its own MeasurementProtocolPublisher, and
replaces the custom ServiceHolder (OnceCell + AtomicBool + manual
unsafe impl Sync) with ServiceCell, installing the protocol
through ProtocolServicesExt instead of a raw BootServices call.
The old Performance component is untouched and keeps working during
this incremental migration. It will be removed once the remaining
components are split out.
patina_performance: Add PropertyPublisher component
Splits performance property publishing out of the monolithic
Performance component. Depends only on
ArchTimerFunctionalityandConfigurationTableServicesfor its own work, plusPerformanceManageras a dependency so this table is only published when performance
measurement is enabled.
patina_performance: Add FbptPublisher component
Splits FBPT (Firmware Basic Boot Performance Table) publishing out of
the monolithic Performance component.
Migrates the End-of-DXE event registration, protocol location, page
allocation, and configuration table installation from raw
BootServicescalls to granular service calls to
EventServices,ProtocolServices,MemoryManager, andConfigurationTableServices.RuntimeServicesis left as a generic parameter since there is nota dedicated Patina service for Runtime Services at this time.
The old
close_event()once-only guard is replaced with a capturedCell<bool>, since the closure-based event API does not hand thecallback its own
Eventto close.patina_performance: Add MmRecordCollector component
Splits MM performance record collection out of the monolithic
Performance component.
mm_comm_serviceis now a requiredService<dyn MmCommunication>rather than
Option<Service<...>>, so the dispatcher itself skipsthis component on platforms with no MM communication region instead
of branching on an
Option<Service<...>>at runtime.Also adds a
core::error::ErrorimplforMmPerformanceErrorwhile it is already being moved.
patina_performance: Remove the monolithic Performance component
The monolithic Performance component has now been split into separate
single-purpose components, each with its own responsibilities, so it
can be removed.
components/patina_performance: Add key log messages
Makes it easier to confirm key events happen in the patina_perforamnce
components by being able to track and verify important events in the
log.
Update docs for the patina_performance component split
Updates docs in the mdbook and the patina_performance component crate
to reflect the recent split of the monolithic patina_performance
component into separate components.
How This Was Tested
cargo make allPERF_TRACE_ENABLE=TRUEand check perf data is availableIntegration Instructions