Skip to contentSkip to conversation

plat-rzn1: increase DDR size to 1GB

PATCH In review Ralph Siemsen 3 participants 4 messages May 12, 2023 – May 15, 2023

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 plat-rzn1: increase DDR size to 1GB

There are now some RZ/N1 devices with 1GB rather than 256MB. The first-stage bootloader does not support passing a DT to OP-TEE, so static values are set at compile time. Increase the DDR size so as to avoid OP-TEE calls failing with TEEC_ERROR_OUT_OF_MEMORY.

---
 core/arch/arm/plat-rzn1/platform_config.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
core/arch/arm/plat-rzn1/platform_config.h +1 -1
index a6340bb33..eb709c62f 100644
@@ -11,7 +11,7 @@
 
 /* DRAM */
 #define DRAM_BASE			0x80000000
-#define DRAM_SIZE			0x10000000
+#define DRAM_SIZE			0x40000000
 
 /* GIC */
 #define GIC_BASE			0x44100000
Signature · 1 line
2.25.1
#1 lore raw

Hi Ralph,

Quoted 11 lines · Ralph Siemsen

There are now some RZ/N1 devices with 1GB rather than 256MB. The first-stage bootloader does not support passing a DT to OP-TEE, so static values are set at compile time. Increase the DDR size so as to avoid OP-TEE calls failing with TEEC_ERROR_OUT_OF_MEMORY.

---
 core/arch/arm/plat-rzn1/platform_config.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Thanks for your patch. OP-TEE OS development happens over Github, so please create a corresponding Github PR here [1].

[1] https://github.com/OP-TEE/optee_os/pulls

-Sumit

Quoted 16 lines
core/arch/arm/plat-rzn1/platform_config.h +1 -2
index a6340bb33..eb709c62f 100644
@@ -11,7 +11,7 @@
 
 /* DRAM */
 #define DRAM_BASE                      0x80000000
-#define DRAM_SIZE                      0x10000000
+#define DRAM_SIZE                      0x40000000
 
 /* GIC */
 #define GIC_BASE                       0x44100000
--

2.25.1

#2 lore raw

Hi Sumit,

Quoted 3 lines · Sumit Garg

Thanks for your patch. OP-TEE OS development happens over Github, so please create a corresponding Github PR

Done: https://github.com/OP-TEE/optee_os/pull/6025

For some reason I seem unable to assign reviewers in github UI, but perhaps that is intentional.

Ralph

#3 lore raw
Quoted 11 lines · Ralph Siemsen

Hi Sumit,

Quoted 3 lines · Sumit Garg

Thanks for your patch. OP-TEE OS development happens over Github, so please create a corresponding Github PR

Done: https://github.com/OP-TEE/optee_os/pull/6025

For some reason I seem unable to assign reviewers in github UI, but perhaps that is intentional.

No worries, the core maintainers (and anyone who subscribed to the project in fact) are notified automatically. If there is someone in particular you would like to get feedback from, you may simply mention him/her by GitHub handle in a comment, for example: CC @someone.

Thanks,

Signature · 1 line
Jerome
Quoted 1 line

Ralph