From: Daniel Schwierzeck Date: Mon, 10 Feb 2020 15:49:23 +0100 Subject: [PATCH] mips: vcoreiii: Fix cache coherency issues In-Reply-To: <20200206094540.20104-1-lars.povlsen@microchip.com> References: <20200206094540.20104-1-lars.povlsen@microchip.com> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Am 06.02.20 um 10:45 schrieb Lars Povlsen: > This patch fixes an stability issue seen on some vcoreiii targets, > which was root caused to a cache inconsistency situation. > > The inconsistency was caused by having kuseg pointing to NOR area but > used as a stack/gd/heap area during initialization, while only > relatively late remapping the RAM area into kuseg position. > > The fix is to initialize the DDR right after the TLB setup, and then > remapping it into position before gd/stack/heap usage. > > Reported-by: Ramin Seyed-Moussavi > Reviewed-by: Alexandre Belloni > Reviewed-by: Horatiu Vultur > Signed-off-by: Lars Povlsen > --- > arch/mips/mach-mscc/cpu.c | 9 +++++---- > arch/mips/mach-mscc/dram.c | 14 +++++--------- > arch/mips/mach-mscc/include/mach/ddr.h | 4 ---- > arch/mips/mach-mscc/lowlevel_init.S | 17 ++++++++++++++++- > 4 files changed, 26 insertions(+), 18 deletions(-) > applied to u-boot-mips, thanks. -- - Daniel