From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1762066AbcLSCI5 (ORCPT ); Sun, 18 Dec 2016 21:08:57 -0500 Received: from mail-lf0-f65.google.com ([209.85.215.65]:36503 "EHLO mail-lf0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1761956AbcLSCIQ (ORCPT ); Sun, 18 Dec 2016 21:08:16 -0500 From: Serge Semin To: ralf@linux-mips.org, paul.burton@imgtec.com, rabinv@axis.com, matt.redfearn@imgtec.com, james.hogan@imgtec.com, alexander.sverdlin@nokia.com, robh+dt@kernel.org, frowand.list@gmail.com Cc: Sergey.Semin@t-platforms.ru, linux-mips@linux-mips.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Serge Semin Subject: [PATCH 20/21] MIPS memblock: Add free low memory test method call Date: Mon, 19 Dec 2016 05:07:45 +0300 Message-Id: <1482113266-13207-21-git-send-email-fancer.lancer@gmail.com> X-Mailer: git-send-email 2.6.6 In-Reply-To: <1482113266-13207-1-git-send-email-fancer.lancer@gmail.com> References: <1482113266-13207-1-git-send-email-fancer.lancer@gmail.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Right after all the necessary reservations are done, free memory regions can be tested if it is activated with "memtest" parameter. Signed-off-by: Serge Semin --- arch/mips/mm/init.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/arch/mips/mm/init.c b/arch/mips/mm/init.c index 35e7ba8..ccc0e96 100644 --- a/arch/mips/mm/init.c +++ b/arch/mips/mm/init.c @@ -452,6 +452,12 @@ void maar_init(void) void __init paging_init(void) { + /* + * Test low memory registered within memblock. The method shall test + * valid and free memory only + */ + early_memtest(PFN_PHYS(min_low_pfn), PFN_PHYS(max_low_pfn)); + /* Initialize page tables */ pagetable_init(); -- 2.6.6