Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[rom_ext_e2e] More ownership transfer tests #24479

Merged
merged 1 commit into from
Sep 4, 2024

Conversation

cfrantz
Copy link
Contributor

@cfrantz cfrantz commented Aug 30, 2024

The tests added by this change are all simple variations on
the ownership transfer test added in #24419. They involve verifying the
different modes and error conditions (e.g. using the wrong key).

Adds the following tests:

Note: This PR# depends on #24419; you need only review the last commit.

@cfrantz cfrantz requested a review from a team as a code owner August 30, 2024 21:32
@cfrantz cfrantz changed the title Owner init tests2[rom_ext_e2e] More ownership transfer tests [rom_ext_e2e] More ownership transfer tests Aug 30, 2024
@cfrantz cfrantz removed the request for review from a team August 30, 2024 21:33
The tests added by this change are all simple variations on
the ownership transfer test added in lowRISC#24419.  They involve verifying the
different modes and error conditions (e.g. using the wrong key).

Adds the following tests:
- `bad_unlock_test`; Fixes lowRISC#24466
- `bad_activate_test`; Fixes lowRISC#24467
- `bad_owner_block_test`; Fixes lowRISC#24468
- `bad_app_key_test`; Fixes lowRISC#24469
- `transfer_endorsed_test`; Fixes lowRISC#24470
- `bad_endorsee_test`; Fixes lowRISC#24471
- `locked_update_test`; Fixes lowRISC#24472
- `bad_locked_update_test` & `bad_locked_update_no_exec_test`; Fixes lowRISC#24473

Signed-off-by: Chris Frantz <cfrantz@google.com>
Copy link
Contributor

@moidx moidx left a comment

Choose a reason for hiding this comment

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

LGTM.

name,
srcs = ["//sw/device/silicon_creator/rom_ext/e2e/verified_boot:boot_test"],
exec_env = {
"//hw/top_earlgrey:fpga_cw310_rom_ext": None,
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: It would also be nice to also support the cw340 target.

//hw/top_earlgrey:fpga_cw340_rom_ext

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Created #24504.

@cfrantz cfrantz merged commit 137c3e9 into lowRISC:earlgrey_es_sival Sep 4, 2024
25 checks passed
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.

2 participants