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

2019-02-11 Thread Prabhakar Kushwaha

> -Original Message-
> From: Meenakshi Aggarwal 
> Sent: Tuesday, February 12, 2019 4:51 PM
> To: u-boot@lists.denx.de; Prabhakar Kushwaha
> 
> Cc: Meenakshi Aggarwal ; Udit Kumar
> 
> 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


___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot


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

2019-02-11 Thread Meenakshi Aggarwal
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 
Signed-off-by: Udit Kumar 
---
 arch/arm/cpu/armv8/fsl-layerscape/cpu.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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
-- 
1.9.1

___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot