Message ID | 20190507090936.51687-2-christoph.muellner@theobroma-systems.com |
---|---|
State | Changes Requested |
Delegated to: | Philipp Tomsich |
Headers | show |
Series | [U-Boot,1/2] bouncebuf: Add static buffer allocation method for SPL. | expand |
On Tue, 7 May 2019 at 03:09, Christoph Muellner <christoph.muellner@theobroma-systems.com> wrote: > > Since the DMA-engine of the RK3399 cannot directly copy the > ATF SRAM/PMUSRAM memory sections to their destination, we need > to use bounce-buffers. This results in allocation of a huge amount > of heap memory, which can't be reused (because of simple-malloc). > > Therefore we enable the static bounce buffer method. > > Signed-off-by: Christoph Muellner <christoph.muellner@theobroma-systems.com> > --- > > configs/puma-rk3399_defconfig | 1 + > 1 file changed, 1 insertion(+) Reviewed-by: Simon Glass <sjg@chromium.org>
diff --git a/configs/puma-rk3399_defconfig b/configs/puma-rk3399_defconfig index 964464ac0f..cb652922e3 100644 --- a/configs/puma-rk3399_defconfig +++ b/configs/puma-rk3399_defconfig @@ -23,6 +23,7 @@ CONFIG_MISC_INIT_R=y # CONFIG_DISPLAY_CPUINFO is not set CONFIG_DISPLAY_BOARDINFO_LATE=y CONFIG_SPL_TEXT_BASE=0xff8c2000 +CONFIG_SPL_BOUNCE_BUFFER_STATIC=y CONFIG_SPL_BOARD_INIT=y # CONFIG_SPL_RAW_IMAGE_SUPPORT is not set # CONFIG_SPL_LEGACY_IMAGE_SUPPORT is not set
Since the DMA-engine of the RK3399 cannot directly copy the ATF SRAM/PMUSRAM memory sections to their destination, we need to use bounce-buffers. This results in allocation of a huge amount of heap memory, which can't be reused (because of simple-malloc). Therefore we enable the static bounce buffer method. Signed-off-by: Christoph Muellner <christoph.muellner@theobroma-systems.com> --- configs/puma-rk3399_defconfig | 1 + 1 file changed, 1 insertion(+)