[U-Boot] [PATCH v3 1/2] spl: rk3399: disable DDR security regions for SPL (for DMA in dw_mmc)

Simon Glass sjg at chromium.org
Fri Apr 14 10:15:11 UTC 2017


On 31 March 2017 at 22:23, Simon Glass <sjg at chromium.org> wrote:
>
> On 29 March 2017 at 13:20, Philipp Tomsich
> <philipp.tomsich at theobroma-systems.com> wrote:
> > The RK3399 hangs during DMA of the Designware MMC controller, when
> > performing DMA-based transactions in SPL due to the DDR security settings
> > left behind by the BootROM (i.e. accesses to the first MB of DRAM are
> > restricted... however, the DMA is likely to target this first MB, as it
> > transfers from/to the stack).
> >
> > System security is not affected, as the final security configuration is
> > performed by the ATF, which is executed after the SPL stage.
> >
> > With this fix in place, we can now drop 'fifo-mode' in the DTS for the
> > RK3399-Q7 (Puma).
> >
> > Signed-off-by: Philipp Tomsich <philipp.tomsich at theobroma-systems.com>
> >
> > ---
> >
> > Changes in v3:
> > - replaces the work-around (i.e. falling back to fifo-mode in SPL) with
> >   a permanent fix
> >
> >  arch/arm/mach-rockchip/rk3399-board-spl.c | 13 +++++++++++++
> >  1 file changed, 13 insertions(+)
>
> Acked-by: Simon Glass <sjg at chromium.org>

Added rockchip: tag and

Applied to u-boot-rockchip, thanks!


More information about the U-Boot mailing list