]> git.baikalelectronics.ru Git - arm-tf.git/commitdiff
plat/arm: Increase size of firmware configuration area
authorManish V Badarkhe <Manish.Badarkhe@arm.com>
Tue, 9 Jun 2020 10:31:17 +0000 (11:31 +0100)
committerManish V Badarkhe <Manish.Badarkhe@arm.com>
Thu, 25 Jun 2020 12:50:37 +0000 (13:50 +0100)
Increased the size of firmware configuration area to accommodate
all configs.

Updated maximum size of following bootloaders due to increase
in firmware configs size and addition of the code in the BL2.

1. Increased maximum size of BL2 for Juno platform in no
   optimisation case.
2. Reduced maximum size of BL31 for fvp and Juno platform.
3. Reduced maximum size of BL32 for Juno platform.

Change-Id: Ifba0564df0d1fe86175bed9fae87fdcf013b1831
Signed-off-by: Manish V Badarkhe <Manish.Badarkhe@arm.com>
include/plat/arm/common/arm_def.h
plat/arm/board/fvp/include/platform_def.h
plat/arm/board/juno/include/platform_def.h

index a6b6b2eab71f1fdb6b17ae4491f4b480f8582984..5c11e5fe1aba92c7e70d6d258deb2338730d104f 100644 (file)
  * and limit. Leave enough space of BL2 meminfo.
  */
 #define ARM_FW_CONFIG_BASE             (ARM_BL_RAM_BASE + sizeof(meminfo_t))
-#define ARM_FW_CONFIG_LIMIT            (ARM_BL_RAM_BASE + (PAGE_SIZE / 2U))
+#define ARM_FW_CONFIG_LIMIT            (ARM_BL_RAM_BASE + PAGE_SIZE)
 
 /*
  * Boot parameters passed from BL2 to BL31/BL32 are stored here
  * Define limit of firmware configuration memory:
  * ARM_FW_CONFIG + ARM_BL2_MEM_DESC memory
  */
-#define ARM_FW_CONFIGS_LIMIT           (ARM_BL_RAM_BASE + PAGE_SIZE)
+#define ARM_FW_CONFIGS_LIMIT           (ARM_BL_RAM_BASE + (PAGE_SIZE * 2))
 
 /*******************************************************************************
  * BL1 specific defines.
index 62ede9ab82b37bab692ffeb143d93629b6ca56af..7222c5519022887e676cbeeeb68ca0ababe40701 100644 (file)
  * calculated using the current BL31 PROGBITS debug size plus the sizes of
  * BL2 and BL1-RW
  */
-#define PLAT_ARM_MAX_BL31_SIZE         UL(0x3E000)
+#define PLAT_ARM_MAX_BL31_SIZE         UL(0x3D000)
 #endif /* RESET_TO_BL31 */
 
 #ifndef __aarch64__
index cd961554a7fc80035edd1280807bbdfd2f60be8c..91c3ae7e0c8a528de8c7adfa4035afdc08898f6c 100644 (file)
 # define PLAT_ARM_MAX_BL2_SIZE (UL(0x1D000) - JUNO_BL2_ROMLIB_OPTIMIZATION)
 #endif
 #else
-# define PLAT_ARM_MAX_BL2_SIZE (UL(0x11000) - JUNO_BL2_ROMLIB_OPTIMIZATION)
+# define PLAT_ARM_MAX_BL2_SIZE (UL(0x13000) - JUNO_BL2_ROMLIB_OPTIMIZATION)
 #endif
 
 /*
  * BL2 and BL1-RW.  SCP_BL2 image is loaded into the space BL31 -> BL2_BASE.
  * Hence the BL31 PROGBITS size should be >= PLAT_CSS_MAX_SCP_BL2_SIZE.
  */
-#define PLAT_ARM_MAX_BL31_SIZE         UL(0x3E000)
+#define PLAT_ARM_MAX_BL31_SIZE         UL(0x3D000)
 
 #if JUNO_AARCH32_EL3_RUNTIME
 /*
  * BL2 and BL1-RW.  SCP_BL2 image is loaded into the space BL32 -> BL2_BASE.
  * Hence the BL32 PROGBITS size should be >= PLAT_CSS_MAX_SCP_BL2_SIZE.
  */
-#define PLAT_ARM_MAX_BL32_SIZE         UL(0x3E000)
+#define PLAT_ARM_MAX_BL32_SIZE         UL(0x3D000)
 #endif
 
 /*