Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756098AbbLHAbO (ORCPT ); Mon, 7 Dec 2015 19:31:14 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:37513 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755644AbbLHAbN (ORCPT ); Mon, 7 Dec 2015 19:31:13 -0500 Date: Mon, 7 Dec 2015 16:31:12 -0800 From: Andrew Morton To: Taku Izumi Cc: linux-kernel@vger.kernel.org, linux-mm@kvack.org, tony.luck@intel.com, qiuxishi@huawei.com, kamezawa.hiroyu@jp.fujitsu.com, mel@csn.ul.ie, dave.hansen@intel.com, matt@codeblueprint.co.uk Subject: Re: [PATCH v2 0/2] mm: Introduce kernelcore=reliable option Message-Id: <20151207163112.930a495d24ab259cad9020ac@linux-foundation.org> In-Reply-To: <1448636635-15946-1-git-send-email-izumi.taku@jp.fujitsu.com> References: <1448636635-15946-1-git-send-email-izumi.taku@jp.fujitsu.com> X-Mailer: Sylpheed 3.4.1 (GTK+ 2.24.23; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1860 Lines: 45 On Sat, 28 Nov 2015 00:03:55 +0900 Taku Izumi wrote: > Xeon E7 v3 based systems supports Address Range Mirroring > and UEFI BIOS complied with UEFI spec 2.5 can notify which > ranges are reliable (mirrored) via EFI memory map. > Now Linux kernel utilize its information and allocates > boot time memory from reliable region. > > My requirement is: > - allocate kernel memory from reliable region > - allocate user memory from non-reliable region > > In order to meet my requirement, ZONE_MOVABLE is useful. > By arranging non-reliable range into ZONE_MOVABLE, > reliable memory is only used for kernel allocations. > > My idea is to extend existing "kernelcore" option and > introduces kernelcore=reliable option. By specifying > "reliable" instead of specifying the amount of memory, > non-reliable region will be arranged into ZONE_MOVABLE. It is unfortunate that the kernel presently refers to this memory as "mirrored", but this patchset introduces the new term "reliable". I think it would be better if we use "mirrored" throughout. Of course, mirroring isn't the only way to get reliable memory. Perhaps if a part of the system memory has ECC correction then this also can be accessed using "reliable", in which case your proposed naming makes sense. reliable == mirrored || ecc? Secondly, does this patchset mean that kernelcore=reliable and kernelcore=100M are exclusive? Or can the user specify "kernelcore=reliable,kernelcore=100M" to use 100M of reliable memory for kernelcore? This is unclear from the documentation and I suggest that this be spelled out. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/