optee: add property no-map to secure reserved memory
authorEtienne Carriere <etienne.carriere@st.com>
Thu, 10 Sep 2020 08:50:01 +0000 (10:50 +0200)
committerSimon Glass <sjg@chromium.org>
Tue, 22 Sep 2020 18:54:13 +0000 (12:54 -0600)
commit3e15c315f97401f394ae83ed17fbef72b765222a
tree16e9439baf66cfffbd711526382c1507ee0f4568
parent6613ed1e0708263baea3395cbf39f68fffa33358
optee: add property no-map to secure reserved memory

OP-TEE reserved memory node must set property "no-map" to prevent
Linux kernel from mapping secure memory unless what non-secure world
speculative accesses of the CPU can violate the memory firmware
configuration.

Fixes: 6ccb05eae01b ("image: fdt: copy possible optee nodes to a loaded devicetree")
Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
Signed-off-by: Patrice Chotard <patrice.chotard@st.com>
lib/optee/optee.c