Closed lorc closed 3 years ago
@jenswi-linaro thanks for review. I restructured function, now it indeed looks cleaner.
I suspect that you haven't pushed the result...
Yes, sorry, I have pushed wrong branch :(
Should be okay now.
I decided that is better to leave optee_config_shm_memremap
to initialize only static SHM and to add function optee_config_dyn_shm()
. optee_probe()
can now try to initialize dynamic SHM first (if available) and then fall back to static SHM if there was a problem. I think it is much better in this way.
Updated. Also sent updated patch to ML. Do you want to merge this PR into linaro-swg tree? If not - I can close it now.
Closing as already merged
On virtualized systems it is possible that OP-TEE will provide only dynamic shared memory support. So it is fine to boot without static SHM enabled if dymanic one is supported.
Signed-off-by: Volodymyr Babchuk vlad.babchuk@gmail.com