[5.6.0-rc2-next-20200218/powerpc] Boot failure on POWER9

Sachin Sant sachinp at linux.vnet.ibm.com
Fri Mar 13 03:51:09 AEDT 2020


> The patch below might work. Sachin can you test this? I tried faking up
> a system with a memoryless node zero but couldn't get it to even start
> booting.
> 
The patch did not help. The kernel crashed during
the boot with the same call trace.

BUG_ON() introduced with the patch was not triggered.

Thanks
-Sachin

> cheers
> 
> 
> diff --git a/arch/powerpc/mm/mem.c b/arch/powerpc/mm/mem.c
> index 9b4f5fb719e0..d1f11437f6c4 100644
> --- a/arch/powerpc/mm/mem.c
> +++ b/arch/powerpc/mm/mem.c
> @@ -282,6 +282,9 @@ void __init mem_init(void)
> 	 */
> 	BUILD_BUG_ON(MMU_PAGE_COUNT > 16);
> 
> +	BUG_ON(smp_processor_id() != boot_cpuid);
> +	set_numa_mem(local_memory_node(numa_cpu_lookup_table[boot_cpuid]));
> +
> #ifdef CONFIG_SWIOTLB
> 	/*
> 	 * Some platforms (e.g. 85xx) limit DMA-able memory way below



More information about the Linuxppc-dev mailing list