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

Cherry-pick to earlgrey_1.0.0: Immutable rom ext related changes #26144

Open
wants to merge 2 commits into
base: earlgrey_1.0.0
Choose a base branch
from

Conversation

sasdf
Copy link
Contributor

@sasdf sasdf commented Feb 6, 2025

This PR manually cherrypick the preparatory refactoring commits about immutable rom ext to earlgrey_1.0.0 branch.

Includes

There is only extra syntactical fixup (i.e. wrong indent) compared to the original commit in master.

@sasdf sasdf marked this pull request as ready for review February 6, 2025 10:31
@sasdf sasdf requested a review from a team as a code owner February 6, 2025 10:31
@moidx moidx removed the request for review from a team February 6, 2025 17:34
Copy link
Contributor

@cfrantz cfrantz left a comment

Choose a reason for hiding this comment

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

LGTM, but I'm going to block this PR until we confirm there are no more changes for A2.

@timothytrippel
Copy link
Contributor

This should be mergable now; @cfrantz could you re-review to unblock?

Immutable rom_ext also needs the epmp lib for reconfiguration.
Since the library code is general and not specific to rom_ext, let's move it
to driver lib.

Signed-off-by: Yi-Hsuan Deng <[email protected]>
(cherry picked from commit ee7fa49)
To minimize the divergence between SKUs that with and without immutable rom_ext
feature enabled in ROM, we propose always linking the section to rom_ext, and
call it first if it isn’t called by ROM.

With this change, the boot flows will be always (almost) the same, while the
OTP flag `IMMUTABLE_ROM_EXT_EN` basically only controls whether the
immutability is enforced by ROM.

SKUs without the immutability enforced enable should still link with the
trunk/master imm_rom_ext section, but without the EN bit set in their OTP
configuration.

Signed-off-by: Yi-Hsuan Deng <[email protected]>
(cherry picked from commit db977a5)
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.

3 participants