From mboxrd@z Thu Jan 1 00:00:00 1970 From: Vladimir Murzin Subject: [RFC PATCH 4/4] arm: add support for memtest Date: Mon, 2 Mar 2015 14:55:45 +0000 Message-ID: <1425308145-20769-5-git-send-email-vladimir.murzin@arm.com> References: <1425308145-20769-1-git-send-email-vladimir.murzin@arm.com> Content-Type: text/plain; charset=WINDOWS-1252 Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <1425308145-20769-1-git-send-email-vladimir.murzin@arm.com> Sender: owner-linux-mm@kvack.org To: linux-kernel@vger.kernel.org, linux-mm@kvack.org, linux-arch@vger.kernel.org, x86@kernel.org, linux-arm-kernel@lists.infradead.org Cc: tglx@linutronix.de, mingo@redhat.com, hpa@zytor.com, akpm@linux-foundation.org, lauraa@codeaurora.org, catalin.marinas@arm.com, will.deacon@arm.com, linux@arm.linux.org.uk, arnd@arndb.de, mark.rutland@arm.com, ard.biesheuvel@linaro.org List-Id: linux-arch.vger.kernel.org Add support for memtest command line option. Signed-off-by: Vladimir Murzin --- arch/arm/mm/init.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm/mm/init.c b/arch/arm/mm/init.c index 1609b02..3d0e9ae 100644 --- a/arch/arm/mm/init.c +++ b/arch/arm/mm/init.c @@ -335,6 +335,9 @@ void __init bootmem_init(void) =20 =09find_limits(&min, &max_low, &max_high); =20 +=09early_memtest((phys_addr_t)min << PAGE_SHIFT, +=09=09 (phys_addr_t)max_low << PAGE_SHIFT); + =09/* =09 * Sparsemem tries to allocate bootmem in memory_present(), =09 * so must be done after the fixed reservations --=20 1.7.9.5 -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from service87.mimecast.com ([91.220.42.44]:52060 "EHLO service87.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754791AbbCBOz7 (ORCPT ); Mon, 2 Mar 2015 09:55:59 -0500 From: Vladimir Murzin Subject: [RFC PATCH 4/4] arm: add support for memtest Date: Mon, 2 Mar 2015 14:55:45 +0000 Message-ID: <1425308145-20769-5-git-send-email-vladimir.murzin@arm.com> In-Reply-To: <1425308145-20769-1-git-send-email-vladimir.murzin@arm.com> References: <1425308145-20769-1-git-send-email-vladimir.murzin@arm.com> Content-Type: text/plain; charset=WINDOWS-1252 Content-Transfer-Encoding: quoted-printable Sender: linux-arch-owner@vger.kernel.org List-ID: To: linux-kernel@vger.kernel.org, linux-mm@kvack.org, linux-arch@vger.kernel.org, x86@kernel.org, linux-arm-kernel@lists.infradead.org Cc: tglx@linutronix.de, mingo@redhat.com, hpa@zytor.com, akpm@linux-foundation.org, lauraa@codeaurora.org, catalin.marinas@arm.com, will.deacon@arm.com, linux@arm.linux.org.uk, arnd@arndb.de, mark.rutland@arm.com, ard.biesheuvel@linaro.org Message-ID: <20150302145545.LP_HbJ3m9lE9qPzf06rrHxrnJAoBqgU_MRSfJp0q4S8@z> Add support for memtest command line option. Signed-off-by: Vladimir Murzin --- arch/arm/mm/init.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm/mm/init.c b/arch/arm/mm/init.c index 1609b02..3d0e9ae 100644 --- a/arch/arm/mm/init.c +++ b/arch/arm/mm/init.c @@ -335,6 +335,9 @@ void __init bootmem_init(void) =20 =09find_limits(&min, &max_low, &max_high); =20 +=09early_memtest((phys_addr_t)min << PAGE_SHIFT, +=09=09 (phys_addr_t)max_low << PAGE_SHIFT); + =09/* =09 * Sparsemem tries to allocate bootmem in memory_present(), =09 * so must be done after the fixed reservations --=20 1.7.9.5