Skip to content

Comments

Backport 27453 ([rom_ext] Boot services refactor and unit tests)#29322

Merged
pamaury merged 8 commits intolowRISC:masterfrom
pamaury:backport_27453
Feb 21, 2026
Merged

Backport 27453 ([rom_ext] Boot services refactor and unit tests)#29322
pamaury merged 8 commits intolowRISC:masterfrom
pamaury:backport_27453

Conversation

@pamaury
Copy link
Contributor

@pamaury pamaury commented Feb 16, 2026

Backport #27453, depends on #29321, only review last 8 commits.

ShadowBearVR and others added 8 commits February 19, 2026 20:32
In preparation for fuzzing efforts, all boot services related
code in rom_ext has been refactored into a seperate library.
This will allow unit tests, and fuzz tests, to run this code
directly on the host by removing device dependencies. The
majority of code changes in this commit are due to moving code
from one file to another.

Signed-off-by: Collin MacDonald <cmacd@google.com>
(cherry picked from commit 00f8e09)
This change converts the owner_verify library into a dual library, with
support for running both on device and host targets. Additionally, this
change adds the required mocks to allow hosts to run owner_verify.

Signed-off-by: Collin MacDonald <cmacd@google.com>
(cherry picked from commit 1bea491)
This change expands the existing Manifest mock to include support
for three additional methods: manifest_ext_get_spx_key,
manifest_ext_get_spx_signature, and manifest_ext_get_isfb. Future
unit tests will use each of these methods.

Signed-off-by: Collin MacDonald <cmacd@google.com>
(cherry picked from commit f33ad61)
When running on a host target, the rescue type is undefined, as it
is currently only defined on a per device basis. This change adds
a NULL rescue type to be used by future unit tests.

Signed-off-by: Collin MacDonald <cmacd@google.com>
(cherry picked from commit 2f612aa)
This change adds conditional compilation flags to dbg_print related
functions to better support on host unit tests. Additionally, to support
existing dbg_print unit tests, a unit test specific flag was added.

Signed-off-by: Collin MacDonald <cmacd@google.com>
(cherry picked from commit 4e66840)
This change adds 7 initial tests for boot services with basic
parameters for each. These tests serve as a starting point for
more complex unit tests and fuzzing tests related to boot
services.

Signed-off-by: Collin MacDonald <cmacd@google.com>
(cherry picked from commit 4228a37)
This change fills out the BootSvcEnterRescue,
BootSvcOwnershipUnlock, and BootSvcOwnershipActivate unit tests
with the required inputs to pass.

Signed-off-by: Ellis Sarza-Nguyen <sarzanguyen@google.com>
(cherry picked from commit 116c226)
Adds additional equality checks, formats all unit tests, and ensures
similar checks are present in all 7 boot service handler related unit
tests.

Signed-off-by: Collin MacDonald <cmacd@google.com>
(cherry picked from commit 36e8bf1)
@pamaury
Copy link
Contributor Author

pamaury commented Feb 21, 2026

Ci failures are unrelated

@pamaury pamaury added this pull request to the merge queue Feb 21, 2026
Merged via the queue into lowRISC:master with commit f9218b0 Feb 21, 2026
45 of 46 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants