Hi,
We have some use cases to evaluate against Gen TEE interface framework.
1. Does a TEE using the Gen TEE interface, say OPTEE, support sessions
between NS world and a kernel service in SEL1?
--
Qualcomm Innovation Center, Inc.
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum,
a Linux Foundation Collaborative Project
Hi,
I am playing with OP-TEE on ZynqMP and am working on a proof of concept
for programming the FPGA from Linux through a TA in OP-TEE.
The first questions I had where regarding how to access the necessary
HW and I found:
https://github.com/OP-TEE/optee_os/issues/404https://lists.linaro.org/pipermail/tee-dev/2015-August/000160.html
I guess a user-TA memory is completely isolated and hence the pointer to
use a static TA?
I actually got that part working and added a static TA that takes a
temporal memref from the normal world. I.e. the flow is like this:
1. user space app opens bitstream file and does any kind of
pre-processing that may be required
2. user-space application mmaps the bitstream file
3. user-space app populates a TEEC_Operation struct with a
TEEC_TEMP_INPUT argument that holds the mmap address and the size of the
file
4. user-space invokes TA
5. TA does some sanity checking, ...
6. TA looks up the physical address of the bitstream and flushes
the cache
7. TA programs a DMA to transfer the bitstream into the FPGA
This process does actually work, but I'm not sure how much luck is
involved. The bitstream file for the device I'm working with is ca. 10MB
large and for the DMA to work it needs to be present in memory in a
physically contiguous address range (it could probably be programmed in
chunks, but if not necessary I'd avoid going there). That rose the
question: Is the data the TA works with guaranteed to be present in a
physically continuous block? And if not, was there an easy way to
achieve that?
Thanks,
Sören