From a11f5a881d7f891ac4c12c45b76895d4d48f93e8 Mon Sep 17 00:00:00 2001 From: Jerome Forissier Date: Sat, 1 Oct 2016 14:28:02 -0700 Subject: [PATCH] arm64: dt: Add no-map to the reserved-memory node for OP-TEE **not for mailine** All the platforms that reserve memory for OP-TEE statically via the DT (i.e., not those that reserve it via UEFI or that patch the DT dynamically thanks to OP-TEE's CFG_DT option) have to mark it 'no-map' so that only the TEE driver may map it. Fixes: https://github.com/OP-TEE/optee_os/issues/1034 Signed-off-by: Jerome Forissier Reviewed-by: Joakim Bech --- arch/arm64/boot/dts/arm/foundation-v8.dts | 1 + arch/arm64/boot/dts/arm/juno-base.dtsi | 1 + 2 files changed, 2 insertions(+) diff --git a/arch/arm64/boot/dts/arm/foundation-v8.dts b/arch/arm64/boot/dts/arm/foundation-v8.dts index 56f17d161d8a2a..903ef61dc19bdf 100644 --- a/arch/arm64/boot/dts/arm/foundation-v8.dts +++ b/arch/arm64/boot/dts/arm/foundation-v8.dts @@ -82,6 +82,7 @@ optee@0x83000000 { reg = <0x00000000 0x83000000 0 0x01000000>; + no-map; }; }; diff --git a/arch/arm64/boot/dts/arm/juno-base.dtsi b/arch/arm64/boot/dts/arm/juno-base.dtsi index 25525aee4394ef..6ec4f3100356b4 100644 --- a/arch/arm64/boot/dts/arm/juno-base.dtsi +++ b/arch/arm64/boot/dts/arm/juno-base.dtsi @@ -191,6 +191,7 @@ /* Shared memory between secure and non-secure world */ optee@0xfee00000 { reg = <0x00000000 0xfee00000 0 0x00200000>; + no-map; }; };