diff mbox series

[U-Boot] Fix : Uboot crash when booting from SD.

Message ID 1549970432-4012-1-git-send-email-meenakshi.aggarwal@nxp.com
State Superseded
Headers show
Series [U-Boot] Fix : Uboot crash when booting from SD. | expand

Commit Message

Meenakshi Aggarwal Feb. 12, 2019, 11:20 a.m. UTC
Issue : In case of SD boot, u-boot was crashing due to DDR was not
coherent

Fix : Making DDR as device memory will make sure DDR is coherent
when we are relocating the code

Signed-off-by: Meenakshi Aggarwal <meenakshi.aggarwal@nxp.com>
Signed-off-by: Udit Kumar <udit.kumar@nxp.com>
---
 arch/arm/cpu/armv8/fsl-layerscape/cpu.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Prabhakar Kushwaha Feb. 12, 2019, 5:57 a.m. UTC | #1
> -----Original Message-----
> From: Meenakshi Aggarwal <meenakshi.aggarwal@nxp.com>
> Sent: Tuesday, February 12, 2019 4:51 PM
> To: u-boot@lists.denx.de; Prabhakar Kushwaha
> <prabhakar.kushwaha@nxp.com>
> Cc: Meenakshi Aggarwal <meenakshi.aggarwal@nxp.com>; Udit Kumar
> <udit.kumar@nxp.com>
> Subject: [PATCH] Fix : Uboot crash when booting from SD.
> 
> Issue : In case of SD boot, u-boot was crashing due to DDR was not coherent
> 
> Fix : Making DDR as device memory will make sure DDR is coherent when we
> are relocating the code

Please work on the subject and description.
Avoid writing description as you have written. 

--pk
diff mbox series

Patch

diff --git a/arch/arm/cpu/armv8/fsl-layerscape/cpu.c b/arch/arm/cpu/armv8/fsl-layerscape/cpu.c
index 978d46b..cb1abf3 100644
--- a/arch/arm/cpu/armv8/fsl-layerscape/cpu.c
+++ b/arch/arm/cpu/armv8/fsl-layerscape/cpu.c
@@ -102,7 +102,7 @@  static struct mm_region early_map[] = {
 	  CONFIG_SYS_FSL_DRAM_SIZE1,
 #if defined(CONFIG_TFABOOT) || \
 	(defined(CONFIG_SPL) && !defined(CONFIG_SPL_BUILD))
-	  PTE_BLOCK_MEMTYPE(MT_NORMAL) |
+	  PTE_BLOCK_MEMTYPE(MT_DEVICE_NGNRNE) |
 #else	/* Start with nGnRnE and PXN and UXN to prevent speculative access */
 	  PTE_BLOCK_MEMTYPE(MT_DEVICE_NGNRNE) | PTE_BLOCK_PXN | PTE_BLOCK_UXN |
 #endif