Skip to contentSkip to conversation

powerpc/mpc85xx:Disable Debug TLB entry for non-minimal SPL

PATCH New Prabhakar Kushwaha 2 participants 2 messages Jul 5, 2013 – Jul 16, 2013 PowerPC

lore
Share & tools
lore
#0 lore raw

PATCH v3 1/1 powerpc/mpc85xx:Disable Debug TLB entry for non-minimal SPL

CONFIG_SPL_BUILD creates debug TLB entry, so disable it before init_tlbs.

CONFIG_SPL_INIT_MINIMAL never creates any debug TLB entry, so no need of disable_tlb().

---
changes for v2: Removed checkpatch warning
changes for v3: Incorporated Scott's comments
-Took care of all possible use case

 arch/powerpc/cpu/mpc85xx/cpu_init_early.c |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
arch/powerpc/cpu/mpc85xx/cpu_init_early.c +3 -1
index 837c034..42a6951 100644
@@ -180,7 +180,9 @@ void cpu_init_early_f(void)
 
 	invalidate_tlb(1);
 
-#if defined(CONFIG_SYS_PPC_E500_DEBUG_TLB) && !defined(CONFIG_SPL_BUILD) && !defined(CONFIG_NAND_SPL)
+#if defined(CONFIG_SYS_PPC_E500_DEBUG_TLB) && \
+	!(defined(CONFIG_SPL_INIT_MINIMAL) && defined(CONFIG_SPL_BUILD)) && \
+	!defined(CONFIG_NAND_SPL)
 	disable_tlb(CONFIG_SYS_PPC_E500_DEBUG_TLB);
 #endif
 
Signature · 1 line
1.7.9.5
Applied
#1 lore raw

PATCH v3 1/1 powerpc/mpc85xx:Disable Debug TLB entry for non-minimal SPL

Quoted 6 lines · Prabhakar Kushwaha

CONFIG_SPL_BUILD creates debug TLB entry, so disable it before init_tlbs.

CONFIG_SPL_INIT_MINIMAL never creates any debug TLB entry, so no need of disable_tlb().

Applied, thanks!

Andy