-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
question about set_user_va_idx #7194
Comments
If you read the comment above the function you'll see that the TA memory space has to be below 4GB. The number will be 4 as long as we have that restriction. |
Thank you for your apply. I have another question. If I add CFG_LPAE_ADDR_SPACE_BITS from 32 to 36, Do I need to add the MAX_XLAT_TABLES? |
Not necessarily. It depends on how the memory is mapped, for instance, how scattered it is. If you increase |
Thank you for your apply. |
I also have a problem:
below is memory map info with register_phys_mem_pgdir when system poweron:
After system power on, I call core_mmu_add_mapping in my pta, I want map 1G memory.
The data_ptr is NULL. I print the in_ptr and data_len: I see the core_mmu_add_mapping. This code return NULL.
I print related info: My question is:
Thank you |
I can't tell what is wrong directly, I think you need to debug |
Can I have a question about what is the maximum size for which core_mmu_add_mapping() works? core_mmu_add_mapping can map more than 1G( or 2G ) size memory? |
It is limited by
|
|
This issue has been marked as a stale issue because it has been open (more than) 30 days with no activity. Remove the stale label or add a comment, otherwise this issue will automatically be closed in 5 days. Note, that you can always re-open a closed issue at any time. |
Hi, experts
I have a question about set_user_va_idx in core_mmu_lpae.c
My question is, is the constraint 4 in the for loop the number of level_1 page tables? Should this value be NUM_BASE_LEVEL_ENTRIES?
If I change CFG_LPAE_ADDR_SPACE_BITS, so the NUM_BASE_LEVEL_ENTRIES also will be changed. Should the number of level_1 page tables also be changed to NUM_SASE_LEVEL_ENTRIES? Value of level_1 page tables may not be 4?
The text was updated successfully, but these errors were encountered: