[PATCH] powerpc/mm: Don't do debug print before we do feature fixup
Aneesh Kumar K.V
aneesh.kumar at linux.vnet.ibm.com
Sun Jun 19 03:15:55 AEST 2016
The use feature fixup in segment and page fault path and we should
not call any function that can cause either of these before we finish
feature fixup.
Calling into early debug routine can result in segment fault as updated
in https://lkml.kernel.org/r/CAOJe8K2L8D1M_yZPmyiZ11JvJ+HAS0aFHOnsqaY=xLOnQTA3AA@mail.gmail.com
Avoid the segment fault by removing the debug print. Also remove the
matching closing debug print at the end of the function.
Even though the problem existed for a long time, this became more apparent
after commit caca285e5ab4 ("powerpc/mm/radix: Use STD_MMU_64 to properly
isolate hash related code"). Before that commit we used to use feature
fixup to finalize code path related to 1T and 256MB segment.
Signed-off-by: Aneesh Kumar K.V <aneesh.kumar at linux.vnet.ibm.com>
---
arch/powerpc/kernel/setup_64.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/arch/powerpc/kernel/setup_64.c b/arch/powerpc/kernel/setup_64.c
index 8222950f820f..da98f532d160 100644
--- a/arch/powerpc/kernel/setup_64.c
+++ b/arch/powerpc/kernel/setup_64.c
@@ -466,7 +466,6 @@ static void __init initialize_cache_info(void)
*/
void __init setup_system(void)
{
- DBG(" -> setup_system()\n");
/* Apply the CPUs-specific and firmware specific fixups to kernel
* text (nop out sections not relevant to this CPU or this firmware)
@@ -584,7 +583,6 @@ void __init setup_system(void)
(unsigned long long)PHYSICAL_START);
pr_info("-----------------------------------------------------\n");
- DBG(" <- setup_system()\n");
}
/* This returns the limit below which memory accesses to the linear
--
2.7.4
More information about the Linuxppc-dev
mailing list