Hi, Ralf, This series is bugfix for Loongson, please merge it if no problem. Huacai On Thu, Mar 17, 2016 at 8:37 PM, Huacai Chen <chenhc@xxxxxxxxxx> wrote: > After commit 92923ca3aacef63c92d ("mm: meminit: only set page reserved > in the memblock region"), the MIPS hibernation is broken. Because pages > in nosave data section should be "reserved", but currently they aren't > set to "reserved" at initialization. This patch makes hibernation work > again. > > Cc: stable@xxxxxxxxxxxxxxx > Signed-off-by: Huacai Chen <chenhc@xxxxxxxxxx> > --- > arch/mips/kernel/setup.c | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/arch/mips/kernel/setup.c b/arch/mips/kernel/setup.c > index 4f60734..d20caac 100644 > --- a/arch/mips/kernel/setup.c > +++ b/arch/mips/kernel/setup.c > @@ -706,6 +706,9 @@ static void __init arch_mem_init(char **cmdline_p) > for_each_memblock(reserved, reg) > if (reg->size != 0) > reserve_bootmem(reg->base, reg->size, BOOTMEM_DEFAULT); > + > + reserve_bootmem_region(__pa_symbol(&__nosave_begin), > + __pa_symbol(&__nosave_end)); /* Reserve for hibernation */ > } > > static void __init resource_init(void) > -- > 2.7.0 > > > > >