Comments (9)
Yes, the heap memory is carved out from that range.
from optee_os.
TZDRAM_SIZE
covers both TEE_RAM and TA_RAM (in the most common case where CFG_WITH_PAGER=n
).
CFG_CORE_HEAP_SIZE
indeed that relates to core heap (malloc()
and friends) in TEE_RAM only.
TA RAM is set by function core_mmu_get_ta_ram()
: it is either hard coded or computed as the unused area of TZDRAM.
- hard coded: defined by
TA_RAM_START
/TA_RAM_SIZE
in platforms' platform_config.h (few platforms) - computed from
TZDRAM_SIZE - TEE_RAM_VA_SIZE
(minusTEE_SDP_TEST_MEM_SIZE
, likely 0 on most platforms) whereTEE_RAM_VA_SIZE
is set fromCFG_TEE_RAM_VA_SIZE
if defined or fallback toCORE_MMU_PGDIR_SIZE
. In this case, the biggerCFG_CORE_HEAP_SIZE
is, the lower TA_RAM size is. Increasing by few dozen of kBytes should be straight forward. Increasing by many MBytes may need to increase alsoTZDRAM_SIZE
.
from optee_os.
You told me that CFG_CORE_HEAP_SIZE is only involved in TEE_RAM, but I don't understand the sentence below.
"the bigger CFG_CORE_HEAP_SIZE is, the lower TA_RAM size is."
Is this only if CFG_TEE_RAM_VA_SIZE is set?
from optee_os.
My mistake. Indeed TEE_RAM size is set from CFG_TEE_RAM_VA_SIZE
(I agree the name is confusing).
Changing CFG_CORE_HEAP_SIZE
will not modify CFG_TEE_RAM_VA_SIZE
, hence not modify TA_RAM size.
from optee_os.
@etienne-lms
Thank you for the correction.
If CFG_WITH_PAGER=n and CFG_TEE_RAM_VA_SIZE is not set, I would like to know how TEE_RAM_VA_SIZE is set.
from optee_os.
TEE_RAM_VA_SIZE
defaults to CORE_MMU_PGDIR_SIZE
that is 2MBytes on Armv8-A.
from optee_os.
@etienne-lms
To increase the maximum RSA operation, we are going to modify CORE_HEAP_SIZE from 64kB to about 144kB.
Will there be any major problems if I continue to use the default TEE_RAM of 2MB?
from optee_os.
I don't think you will face issues.
from optee_os.
@etienne-lms
Thank you very much for your help.
from optee_os.
Related Issues (20)
- Notify normal world TA's from static TA HOT 3
- Secure Write Protection and writing authenticated device configuration to RPMB HOT 3
- How to allocate 60MB of memory to TA HOT 5
- Inquiry on how to use subkey. HOT 7
- NW Kernel Panic or Secondary CPUs not booting up due to SMC call HOT 1
- Loading Large TA - TEEC_Opensession fails with code 0xffff000c HOT 11
- PKCS11 Object Caching in Optee ? HOT 3
- PKCS#11 TA: Support for additional hardware token - SE05x
- Segmentation fault in PKCS11 TA HOT 3
- Access to SPI NOR and eMMC block layer HOT 2
- How to modify PAGESIZE HOT 3
- Using non-FF-A OP-TEE from Linux with FF-A support HOT 4
- QEMUv7: core stack overflow with Mbed TLS HOT 7
- A question about configuration for optee crypto HOT 1
- Right way to use ecp HOT 2
- A question about test cases for PKCS#11"
- Using malloc() to Allocate Large Memory in PTA fail with code 0xffff000c HOT 2
- QEMU: syscall ftrace does not work - RCU
- transfering string to secure world and return another string from secure world to rich world HOT 6
- System stalls during boot if CFG_PAGED_USER_TA=y and CFG_TEE_CORE_LOG_LEVEL=0 HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from optee_os.