Skip to contentSkip to conversation

ppc4xx: Flush dcache after DDR2 autocalibration with caches on

PATCH New Stefan Roese 1 participant 2 messages Sep 16, 2011 – Sep 19, 2011 PowerPC

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ppc4xx: Flush dcache after DDR2 autocalibration with caches on

Flush the dcache before removing the TLB with caches enabled. Otherwise this might lead to problems later on, e.g. while booting Linux (as seen on ICON-440SPe).

---
 arch/powerpc/cpu/ppc4xx/44x_spd_ddr2.c |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)
arch/powerpc/cpu/ppc4xx/44x_spd_ddr2.c +7 -0
index 95df1d9..4a2f337 100644
@@ -657,6 +657,13 @@ phys_size_t initdram(int board_type)
 #endif
 
 	/*
+	 * Flush the dcache before removing the TLB with caches
+	 * enabled. Otherwise this might lead to problems later on,
+	 * e.g. while booting Linux (as seen on ICON-440SPe).
+	 */
+	flush_dcache();
+
+	/*
 	 * Now after initialization (auto-calibration and ECC generation)
 	 * remove the TLB entries with caches enabled and program again with
 	 * desired cache functionality
Signature · 1 line
1.7.6.1
#1 lore raw

PATCH 1/1 ppc4xx: Flush dcache after DDR2 autocalibration with caches on

Quoted 3 lines · On Friday 16 September 2011 12:54:58 Stefan Roese wrote:

Flush the dcache before removing the TLB with caches enabled. Otherwise this might lead to problems later on, e.g. while booting Linux (as seen on ICON-440SPe).

Applied to u-boot-ppc4xx/master.

Best regards,
Stefan

--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-0 Fax: (+49)-8142-66989-80 Email: office at denx.de