From mboxrd@z Thu Jan 1 00:00:00 1970 From: Will Deacon Subject: Re: [PATCH 0/6] make memtest a generic kernel feature Date: Tue, 17 Mar 2015 17:18:22 +0000 Message-ID: <20150317171822.GW8399@arm.com> References: <1425896830-19705-1-git-send-email-vladimir.murzin@arm.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <1425896830-19705-1-git-send-email-vladimir.murzin@arm.com> Sender: linux-kernel-owner@vger.kernel.org To: Vladimir Murzin Cc: "linux-kernel@vger.kernel.org" , "linux-mm@kvack.org" , "linux-arch@vger.kernel.org" , "x86@kernel.org" , "linux-arm-kernel@lists.infradead.org" , "tglx@linutronix.de" , "mingo@redhat.com" , "hpa@zytor.com" , "akpm@linux-foundation.org" , "lauraa@codeaurora.org" , Catalin Marinas , "linux@arm.linux.org.uk" , "arnd@arndb.de" , Mark Rutland , "ard.biesheuvel@linaro.org" , "baruch@tkos.co.il" , "rdunlap@infradead.org" List-Id: linux-arch.vger.kernel.org On Mon, Mar 09, 2015 at 10:27:04AM +0000, Vladimir Murzin wrote: > Memtest is a simple feature which fills the memory with a given set of > patterns and validates memory contents, if bad memory regions is detected it > reserves them via memblock API. Since memblock API is widely used by other > architectures this feature can be enabled outside of x86 world. > > This patch set promotes memtest to live under generic mm umbrella and enables > memtest feature for arm/arm64. > > It was reported that this patch set was useful for tracking down an issue with > some errant DMA on an arm64 platform. > > Since it touches x86 and mm bits it'd be great to get ACK/NAK for these bits. Is your intention for akpm to merge this? I don't mind how it goes upstream, but that seems like a sensible route to me. Will > Changelog: > > RFC -> v1 > - updated kernel-parameters.txt for memtest entry > - updated number of test patterns in Kconfig menu > - added Acked/Tested tags for arm64 bits > - rebased on v4.0-rc3 > > Vladimir Murzin (6): > mm: move memtest under /mm > memtest: use phys_addr_t for physical addresses > arm64: add support for memtest > arm: add support for memtest > Kconfig: memtest: update number of test patterns up to 17 > Documentation: update arch list in the 'memtest' entry > > Documentation/kernel-parameters.txt | 2 +- > arch/arm/mm/init.c | 3 + > arch/arm64/mm/init.c | 2 + > arch/x86/Kconfig | 11 ---- > arch/x86/include/asm/e820.h | 8 --- > arch/x86/mm/Makefile | 2 - > arch/x86/mm/memtest.c | 118 ----------------------------------- > include/linux/memblock.h | 8 +++ > lib/Kconfig.debug | 11 ++++ > mm/Makefile | 1 + > mm/memtest.c | 118 +++++++++++++++++++++++++++++++++++ > 11 files changed, 144 insertions(+), 140 deletions(-) > delete mode 100644 arch/x86/mm/memtest.c > create mode 100644 mm/memtest.c > > -- > 1.7.9.5 > From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from foss.arm.com ([217.140.101.70]:59665 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754458AbbCQRS1 (ORCPT ); Tue, 17 Mar 2015 13:18:27 -0400 Date: Tue, 17 Mar 2015 17:18:22 +0000 From: Will Deacon Subject: Re: [PATCH 0/6] make memtest a generic kernel feature Message-ID: <20150317171822.GW8399@arm.com> References: <1425896830-19705-1-git-send-email-vladimir.murzin@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1425896830-19705-1-git-send-email-vladimir.murzin@arm.com> Sender: linux-arch-owner@vger.kernel.org List-ID: To: Vladimir Murzin Cc: "linux-kernel@vger.kernel.org" , "linux-mm@kvack.org" , "linux-arch@vger.kernel.org" , "x86@kernel.org" , "linux-arm-kernel@lists.infradead.org" , "tglx@linutronix.de" , "mingo@redhat.com" , "hpa@zytor.com" , "akpm@linux-foundation.org" , "lauraa@codeaurora.org" , Catalin Marinas , "linux@arm.linux.org.uk" , "arnd@arndb.de" , Mark Rutland , "ard.biesheuvel@linaro.org" , "baruch@tkos.co.il" , "rdunlap@infradead.org" Message-ID: <20150317171822.LauOysPH43HWWu8Fz1vKgcPWEQi9CWsgE153BErR14c@z> On Mon, Mar 09, 2015 at 10:27:04AM +0000, Vladimir Murzin wrote: > Memtest is a simple feature which fills the memory with a given set of > patterns and validates memory contents, if bad memory regions is detected it > reserves them via memblock API. Since memblock API is widely used by other > architectures this feature can be enabled outside of x86 world. > > This patch set promotes memtest to live under generic mm umbrella and enables > memtest feature for arm/arm64. > > It was reported that this patch set was useful for tracking down an issue with > some errant DMA on an arm64 platform. > > Since it touches x86 and mm bits it'd be great to get ACK/NAK for these bits. Is your intention for akpm to merge this? I don't mind how it goes upstream, but that seems like a sensible route to me. Will > Changelog: > > RFC -> v1 > - updated kernel-parameters.txt for memtest entry > - updated number of test patterns in Kconfig menu > - added Acked/Tested tags for arm64 bits > - rebased on v4.0-rc3 > > Vladimir Murzin (6): > mm: move memtest under /mm > memtest: use phys_addr_t for physical addresses > arm64: add support for memtest > arm: add support for memtest > Kconfig: memtest: update number of test patterns up to 17 > Documentation: update arch list in the 'memtest' entry > > Documentation/kernel-parameters.txt | 2 +- > arch/arm/mm/init.c | 3 + > arch/arm64/mm/init.c | 2 + > arch/x86/Kconfig | 11 ---- > arch/x86/include/asm/e820.h | 8 --- > arch/x86/mm/Makefile | 2 - > arch/x86/mm/memtest.c | 118 ----------------------------------- > include/linux/memblock.h | 8 +++ > lib/Kconfig.debug | 11 ++++ > mm/Makefile | 1 + > mm/memtest.c | 118 +++++++++++++++++++++++++++++++++++ > 11 files changed, 144 insertions(+), 140 deletions(-) > delete mode 100644 arch/x86/mm/memtest.c > create mode 100644 mm/memtest.c > > -- > 1.7.9.5 >