-
Notifications
You must be signed in to change notification settings - Fork 747
OpenTitan: Prepare to bump to the latest RTL SHA #3205
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
Merged
Merged
Conversation
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
We currently support detecting any number of ePMP regions by writing values and seeing if the new value sticks. This allows us to support multiple platforms, but it doesn't work if the bootloader has already enabled MML. This patch changes the behaviour if MML has been set, so that we ensure we won't accidently lock ourselves out. Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
A previous boot stage has enabled Machine Mode Whitelist Policy (mseccfg.MMWP), which we can't disable. That means that Tock will be denied a memory access if it doesn't match a PMP region This eventually won't matter, as Tock configures it's own regions, but it makes it difficult to setup. To allow us to setup the ePMP regions without locking ourselves out we create two special regions. We create an allow all region as the first and last region. This way no matter what the previous stage did, we should have a working fallback while we modify the rules. If the previous stage has an allow all in the first or last region, we won't get locked out. If the previous stage created a range of regions we also won't get locked out. Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
2 tasks
twilfredo
approved these changes
Sep 9, 2022
bradjc
reviewed
Sep 9, 2022
bradjc
approved these changes
Sep 9, 2022
hudson-ayers
approved these changes
Sep 10, 2022
bors r+ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
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.
Pull Request Overview
This is just the first few commits of #3056, focusing on the ePMP improvements to handle already configured ePMP regions.
See each commit for details
Testing Strategy
Tested as part of #3056
TODO or Help Wanted
Documentation Updated
/docs
, or no updates are required.Formatting
make prepush
.