Re: [PATCH] MIPS: TXx9: Fix boot crash in free_initmem()

2019-05-22 Thread Paul Burton
Hello, Geert Uytterhoeven wrote: > On rbtx4927: > > BUG: Bad page state in process swapper pfn:1 > page:804b7820 refcount:0 mapcount:-128 mapping: index:0x1 > flags: 0x0() > raw: 0100 0200 0001 ff7f > page dumped because: nonzero

Re: [PATCH] MIPS: TXx9: Fix boot crash in free_initmem()

2019-05-22 Thread Atsushi Nemoto
On Wed, 22 May 2019 10:15:35 +0200, Geert Uytterhoeven wrote: > On rbtx4927: ... > As of commit b93ddc4f9156205e ("mips: Reserve memory for the kernel > image resources"), bootmem_init() no longer reserves the memory below > the kernel, while prom_free_prom_memory() still frees it. > > Fix this

Re: [PATCH] MIPS: TXx9: Fix boot crash in free_initmem()

2019-05-22 Thread Maciej W. Rozycki
On Wed, 22 May 2019, Geert Uytterhoeven wrote: > Looks like arch/mips/dec/prom/memory.c needs a similar but more > complicated fix, due to declance handling? Thanks for the heads-up! I think the declance hack should go away. It should have gone long ago, but ISTR there used to be a problem

[PATCH] MIPS: TXx9: Fix boot crash in free_initmem()

2019-05-22 Thread Geert Uytterhoeven
On rbtx4927: BUG: Bad page state in process swapper pfn:1 page:804b7820 refcount:0 mapcount:-128 mapping: index:0x1 flags: 0x0() raw: 0100 0200 0001 ff7f page dumped because: nonzero mapcount Modules linked