Hi Stuart,
On Tue, Aug 15, 2017 at 4:20 PM, Stuart Yoder stuart.yoder@arm.com wrote:
All,
I am testing Volodymyr's dynamic shared memory patches, which depends on the non-sec DDR support that has been added in OP-TEE recently. I am testing this on a Juno platform which has a DDR split into 2 different regions: 0x0_80000000 2G 0x8_80000000 6G
The platform_config.h allows you to define a DRAM0 base/size which then is used in the macro: register_nsec_ddr(DRAM0_BASE, DRAM0_SIZE);
I tried defining the second DDR region in platform_config.h and a second call to register_nsec_ddr(), but that did not work.
Has anyone succeeded in having the nsec DDR split into 2 regions?
Would Jen's patch: core: assign non-sec DDR configuration from DT
No, because as you point out the DT can't be found by OP-TEE. DT is loaded later and provided to the kernel only.
The easiest for Juno is probably to just add another register_nsec_ddr() for the other nsec DDR region.
Regards, Jens
...solve this issue? Right now the Juno does not use CFG_DT, and when I turn it on OP-TEE reports that it cannot find the device tree.
Thanks, Stuart