On 14 August 2017 at 13:39, Joakim Bech joakim.bech@linaro.org wrote:
Hi Alex and Etienne,
On 26 July 2017 at 10:18, Alex Shi alex.shi@linaro.org wrote:
Hi All,
The ION branch is git://git.linaro.org/kernel/linux-linaro-stable.git v4.9/topic/ion, it merged with lsk 4.9, thus OPTEE feature enabled in this branch too.
Oh, a bit surprised, but thanks!
Anyone could help me to give a test?
@Etienne, would you mind giving it a try? I.e, build with that branch and run our SDP tests?
Hi,
I have check the updated "ion unmapped heap" patches rebased on v4.9/topic/ion branch. Works nice but requires some updates.
Few changes in the kernel source:
* Patch "tee" driver (registering OPTEE shared memory through dmabuf FD)
https://github.com/etienne-lms/linux/commit/f2fbd9e7d65633a9bbd2406073b2092d...
* Patch "ion" driver to implement the unmapped heap (2 step patch proposed)
https://github.com/etienne-lms/linux/commit/6f3606ee40b2a24e56b2d9516cae67f4... + https://github.com/etienne-lms/linux/commit/a87b3b51982d6e70ccc73f650d81bb8d...
Enable ION unmapped heap in kernel config (and ION of course) CONFIG_ION=y CONFIG_ION_UNMAPPED_HEAP=y
Platform needs to create (in the linux kernel) the ION 'unmapped heap' for target SDP memory area. This can be done either through some platform specific sequence or through linux configuration: CONFIG_ION_DUMMY_UNMAPPED_HEAP_BASE=<SDP-test-memory-phys-base> CONFIG_ION_DUMMY_UNMAPPED_HEAP_SIZE=<SDP-test-memory-byte-size>
Based on latest OP-TEE (2.5.0), optee_test allows to test the SDP through ION unmapped heap support. Please patch optee_test with proposal below:
https://github.com/etienne-lms/optee_test/commit/bce6c3dba3afb72120628e097a7...
(and build the OP-TEE with *CFG_SECURE_DATA_PATH=y*)
Regards, etienne
Thanks! Alex
Regards, Joakim