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

RMM is not working when DRAM size increases #30

Open
SinaAb7 opened this issue Jul 31, 2024 · 1 comment
Open

RMM is not working when DRAM size increases #30

SinaAb7 opened this issue Jul 31, 2024 · 1 comment
Labels
question Further information is requested

Comments

@SinaAb7
Copy link

SinaAb7 commented Jul 31, 2024

Hi all, I am working with Arm reference solution
Arm-reference-solution to boot realm in FVP. What I can see is when I increase DRAM size (from default 4GB to 8GB) of FVP and change DTB passed to the NW hypervisor, RMM stops working and I am not able to create realm VMs anymore. I can already see lines limiting the size of DRAM in RMM build system as well as source code.
1- Why do we need such a limitation is RMM?
2- IF it is possible can you guide me through this matter as I want to run some ML models requiring larger size of DRAM to be supported.

Cheers,
Sina

@soby-mathew
Copy link
Member

Hi @SinaAb7 , RMM does not have dynamic memory allocation and hence it needs to statically size data structures which track DRAM pages.

You can change the RMM_MAX_GRANULES build option in TF-RMM when building. If the size can cover the increased DRAM size, the boot will succeed.

We have some plans to remove this dependancy and it is currently being prototyped.

Also would recommend Shrinkwrap tool to build the software stack as it picks up latest version of TF-RMM and other software components. See this page to build for 3 world config : https://shrinkwrap.docs.arm.com/en/latest/userguide/configstore/cca-3world.html

@soby-mathew soby-mathew added the question Further information is requested label Jul 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants