]> git.baikalelectronics.ru Git - arm-tf.git/commitdiff
feat(fvp): define ns memory in the SPMC manifest
authorJ-Alves <joao.alves@arm.com>
Thu, 16 Mar 2023 15:26:52 +0000 (15:26 +0000)
committerJ-Alves <joao.alves@arm.com>
Wed, 3 May 2023 09:07:12 +0000 (10:07 +0100)
The SPMC (Hafnium) looks for secure and non-secure ranges
in its manifest.
Those relate with ranges that can be used by SPs in their
FF-A manifests.
The NS memory that is not used by SPs will be assigned
to the NWd, for it to share memory with SPs as needed.
Thus, this limits the memory the NWd can share with SPs,
to prevent NWD VMs from sharing memory that belongs
to other critical components.

Signed-off-by: J-Alves <joao.alves@arm.com>
Change-Id: Iad03eb138a57068fbb18c53141bdf6bf9c171b28

plat/arm/board/fvp/fdts/fvp_spmc_manifest.dts
plat/arm/board/tc/fdts/tc_spmc_manifest.dts

index 4543671a997501b62c2227589002485dbba1d409..4f97339f7861e309c37e54f535fde4aeb454e55c 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2020-2022, Arm Limited. All rights reserved.
+ * Copyright (c) 2020-2023, Arm Limited. All rights reserved.
  *
  * SPDX-License-Identifier: BSD-3-Clause
  */
@@ -15,7 +15,7 @@
 / {
        compatible = "arm,ffa-core-manifest-1.0";
        #address-cells = <2>;
-       #size-cells = <1>;
+       #size-cells = <2>;
 
        attribute {
                spmc_id = <0x8000>;
                CPU_1
        };
 
-       memory@6000000 {
+       memory@0 {
                device_type = "memory";
-               reg = <0x0 0x6000000 0x2000000>; /* Trusted DRAM */
+               reg = <0x0 0xfd000000 0x0 0x2000000>,
+                     <0x0 0x7000000 0x0 0x1000000>,
+                     <0x0 0xff000000 0x0 0x1000000>;
+       };
+
+       memory@1 {
+               device_type = "ns-memory";
+               reg = <0x00008800 0x80000000 0x0 0x7f000000>,
+                     <0x0 0x88000000 0x0 0x10000000>;
        };
 
 #if MEASURED_BOOT
index d3a5e1a77acffa1a098a7b06ae7533965ed0201e..b64e0762eeec2367e98153849d5ae36455b4a57a 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2020-2021, Arm Limited. All rights reserved.
+ * Copyright (c) 2020-2023, Arm Limited. All rights reserved.
  *
  * SPDX-License-Identifier: BSD-3-Clause
  */
@@ -8,7 +8,7 @@
 / {
        compatible = "arm,ffa-core-manifest-1.0";
        #address-cells = <2>;
-       #size-cells = <1>;
+       #size-cells = <2>;
 
        attribute {
                spmc_id = <0x8000>;
                };
        };
 
-       /* 32MB of TC_TZC_DRAM1_BASE */
-       memory@fd000000 {
+       memory@0 {
                device_type = "memory";
-               reg = <0x0 0xfd000000 0x2000000>;
+               reg = <0x0 0xfd000000 0x0 0x2000000>,
+                     <0x0 0x7000000 0x0 0x1000000>,
+                     <0x0 0xff000000 0x0 0x1000000>;
+       };
+
+       memory@1 {
+               device_type = "ns-memory";
+               reg = <0x00008800 0x80000000 0x0 0x7f000000>,
+                     <0x0 0x88000000 0x1 0x00000000>;
        };
 };