• Serge Semin's avatar
    mips: Perform early low memory test · 2f5bd036
    Serge Semin authored
    memblock subsystem provides a method to optionally test the passed
    memory region in case if it was requested via special kernel boot
    argument. Lets add the function at the bottom of the arch_mem_init()
    method. Testing at this point in the boot sequence should be safe since all
    critical areas are now reserved and a minimum of allocations have been
    done.
    Reviewed-by: default avatarMatt Redfearn <matt.redfearn@mips.com>
    Signed-off-by: default avatarSerge Semin <fancer.lancer@gmail.com>
    Signed-off-by: default avatarPaul Burton <paul.burton@mips.com>
    Cc: Ralf Baechle <ralf@linux-mips.org>
    Cc: James Hogan <jhogan@kernel.org>
    Cc: Mike Rapoport <rppt@linux.ibm.com>
    Cc: Andrew Morton <akpm@linux-foundation.org>
    Cc: Michal Hocko <mhocko@suse.com>
    Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    Cc: Thomas Bogendoerfer <tbogendoerfer@suse.de>
    Cc: Huacai Chen <chenhc@lemote.com>
    Cc: Stefan Agner <stefan@agner.ch>
    Cc: Stephen Rothwell <sfr@canb.auug.org.au>
    Cc: Alexandre Belloni <alexandre.belloni@bootlin.com>
    Cc: Juergen Gross <jgross@suse.com>
    Cc: Serge Semin <Sergey.Semin@t-platforms.ru>
    Cc: linux-mips@vger.kernel.org
    Cc: linux-kernel@vger.kernel.org
    2f5bd036
setup.c 24.3 KB