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

[sw] Simplify lifecycle checks in immutable rom ext #26260

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

sasdf
Copy link
Contributor

@sasdf sasdf commented Feb 12, 2025

The commit simplifies the existing check in immutable ROM_EXT, which determines whether to enable the RvDM ePMP region based on the lifecycle state (prod / non-prod). The simplified check only tests for PROD and PROD-END states to reduce space cost by eliminating TEST-UNLOCK states checks.

One potential downside is that invalid LCS states will be treated as non-prod, leading to the RvDM region being enabled. However, this is mitigated by the fact that debugging requires JTAG, which verifies LCS in hardware. Additionally, invalid LCS will be detected later in the mutable ROM_EXT stage when reading the lifecycle.

@sasdf sasdf force-pushed the mgI33ea6148 branch 3 times, most recently from 2b7322f to 4bd5eab Compare February 12, 2025 03:50
@sasdf sasdf requested a review from timothytrippel February 12, 2025 05:37
@sasdf sasdf marked this pull request as ready for review February 12, 2025 05:37
@sasdf sasdf requested a review from a team as a code owner February 12, 2025 05:37
The commit simplifies the existing check in immutable ROM_EXT, which
determines whether to enable the RvDM ePMP region based on the lifecycle
state (prod / non-prod). The simplified check only tests for PROD and
PROD-END states to reduce space cost by eliminating TEST-UNLOCK states checks.

One potential downside is that invalid LCS states will be treated as non-prod,
leading to the RvDM region being enabled. However, this is mitigated by the
fact that debugging requires JTAG, which verifies LCS in hardware.
Additionally, invalid LCS will be detected later in the mutable ROM_EXT stage
when reading the lifecycle.

Change-Id: I33ea6148f7e36f7c1bc87b5a150ae783c545ffc2
Signed-off-by: Yi-Hsuan Deng <[email protected]>
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