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

optee_ta: close persistent object once synced #4

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

etienne-lms
Copy link

Changes NVMem.c _plat_WriteBack() operation to open/close the TEE objects related to the 512byte block only when there are accessed in storage. NVMem initialization function now closes the TEE object handles once read or created with initialization data.

This change is useful on devices where OP-TEE run with a small secure memory (few hundreds of kByte). OP-TEE core, at least up to release tag 4.4.0, consumes about 500 bytes per opened object by a TA. Keeping the 32 objects of fTPM TA always open puts a high 20kB pressure on OP-TEE core heap for these devices.

Changes NVMem.c _plat_WriteBack() operation to open/close the TEE
objects related to the 512byte block only when there are accessed
in storage. NVMem initialization function now closes the TEE object
handles once read or created with initialization data.

This change is useful on devices where OP-TEE run with a small secure
memory (few hundreds of kByte). OP-TEE core, at least up to release tag
4.4.0, consumes about 500 bytes per opened object by a TA. Keeping the 32
objects of fTPM TA always open puts a high 20kB pressure on OP-TEE core
heap for these devices.

Signed-off-by: Etienne Carriere <[email protected]>
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.

1 participant