0001-Reserve-OP-TEE-memory-from-nwd.patch 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. From 2d305094f8f500362079e9e7637d46129bf980e4 Mon Sep 17 00:00:00 2001
  2. From: Adam Johnston <adam.johnston@arm.com>
  3. Date: Tue, 25 Jul 2023 16:05:51 +0000
  4. Subject: [PATCH] n1sdp: Reserve OP-TEE memory from NWd
  5. The physical memory which is used to run OP-TEE on the N1SDP is known
  6. to the secure world via TOS_FW_CONFIG, but it may not be known to the
  7. normal world.
  8. As a precaution, explicitly reserve this memory via NT_FW_CONFIG to
  9. prevent the normal world from using it. This is not required on most
  10. platforms as the Trusted OS is run from secure RAM.
  11. Upstream-Status: Pending (not yet submitted to upstream)
  12. Signed-off-by: Adam Johnston <adam.johnston@arm.com>
  13. Signed-off-by: Mariam Elshakfy <mariam.elshakfy@arm.com>
  14. ---
  15. plat/arm/board/n1sdp/fdts/n1sdp_nt_fw_config.dts | 12 ++++++++++++
  16. 1 file changed, 12 insertions(+)
  17. diff --git a/plat/arm/board/n1sdp/fdts/n1sdp_nt_fw_config.dts b/plat/arm/board/n1sdp/fdts/n1sdp_nt_fw_config.dts
  18. index da5e04ddb6..b7e2d4e86f 100644
  19. --- a/plat/arm/board/n1sdp/fdts/n1sdp_nt_fw_config.dts
  20. +++ b/plat/arm/board/n1sdp/fdts/n1sdp_nt_fw_config.dts
  21. @@ -20,4 +20,16 @@
  22. local-ddr-size = <0x0>;
  23. remote-ddr-size = <0x0>;
  24. };
  25. +
  26. + reserved-memory {
  27. + #address-cells = <2>;
  28. + #size-cells = <2>;
  29. + ranges;
  30. +
  31. + optee@0xDE000000 {
  32. + compatible = "removed-dma-pool";
  33. + reg = <0x0 0xDE000000 0x0 0x02000000>;
  34. + no-map;
  35. + };
  36. + };
  37. };
  38. \ No newline at end of file