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

Bump up FMC_SIZE - FMC overlfowing in 12 bytes during nightly release tests. #1937

Closed
wants to merge 1 commit into from

Conversation

rusty1968
Copy link
Contributor

No description provided.

Copy link
Contributor

@nquarton nquarton left a comment

Choose a reason for hiding this comment

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

This does resolve the issue when I test locally. I will add building for hw-1.0 to the PR testing soon. I can't say what the impact of the fmc/build.sh change is though.

@@ -38,7 +38,7 @@ pub use fuse::{FuseLogEntry, FuseLogEntryId};
pub use pcr::{PcrLogEntry, PcrLogEntryId, RT_FW_CURRENT_PCR, RT_FW_JOURNEY_PCR};

pub const FMC_ORG: u32 = 0x40000000;
pub const FMC_SIZE: u32 = 21 * 1024;
Copy link
Collaborator

Choose a reason for hiding this comment

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

This results in a somewhat odd memory layout where the max size of FMC + RT is 117 KiB + 256 bytes. I think I would prefer to keep that at a 1K boundary if possible.

I think the reason we don't use the full 128K of ICCM is that FMC + RT + Manifest must be <= 128KiB to fit in the mailbox. Is the manifest size > 10KiB?

Copy link
Collaborator

Choose a reason for hiding this comment

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

Also I think we could probably save 12 bytes in some other way fairly easily rather than changing the max size of FMC.

Copy link
Contributor Author

@rusty1968 rusty1968 Feb 4, 2025

Choose a reason for hiding this comment

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

Hi, Jordan - I did trim strings last time and got feedback to leave them as is, I got away with trimming a few bytes by removing spaces . If we have the constraint of combined mutable size <= 118k , I will express that in the code as a compile assert. I guess we can trim a few bytes but we have to pull in the condiiton that triggered the fault in and Nick will push this shortly.

@rusty1968 rusty1968 closed this Feb 4, 2025
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