From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751203AbbJJCKV (ORCPT ); Fri, 9 Oct 2015 22:10:21 -0400 Received: from szxga01-in.huawei.com ([58.251.152.64]:35976 "EHLO szxga01-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750949AbbJJCKU (ORCPT ); Fri, 9 Oct 2015 22:10:20 -0400 Message-ID: <56187188.4070103@huawei.com> Date: Sat, 10 Oct 2015 10:01:44 +0800 From: Xishi Qiu User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:12.0) Gecko/20120428 Thunderbird/12.0.1 MIME-Version: 1.0 To: Kamezawa Hiroyuki , Taku Izumi , CC: , , , , Dave Hansen , Mel Gorman , Ingo Molnar , , Naoya Horiguchi , Vlastimil Babka , Leon Romanovsky Subject: Re: [PATCH][RFC] mm: Introduce kernelcore=reliable option References: <1444402599-15274-1-git-send-email-izumi.taku@jp.fujitsu.com> <561762DC.3080608@huawei.com> <561787DA.4040809@jp.fujitsu.com> <5617989E.9070700@huawei.com> In-Reply-To: <5617989E.9070700@huawei.com> Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.177.25.179] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2015/10/9 18:36, Xishi Qiu wrote: > On 2015/10/9 17:24, Kamezawa Hiroyuki wrote: > >> On 2015/10/09 15:46, Xishi Qiu wrote: >>> On 2015/10/9 22:56, 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. >>>> Hi, If we reuse the movable zone, we should set appropriate size of mirrored memory region(normal zone) and non-mirrored memory region(movable zone). In some cases, kernel will take more memory than user, e.g. some apps run in kernel space, like module. I think user can set the size in BIOS interface, right? Thanks, Xishi Qiu