From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Message-ID: <4F55B5F7.6060502@zytor.com> Date: Mon, 05 Mar 2012 23:00:07 -0800 From: "H. Peter Anvin" MIME-Version: 1.0 To: Yinghai Lu CC: zhenzhong.duan@oracle.com, Takashi Iwai , Linus Torvalds , "Rafael J. Wysocki" , stable@vger.kernel.org, linux-kernel@vger.kernel.org, konrad.wilk@oracle.com, joe.jin@oracle.com, Thomas Gleixner , Ingo Molnar Subject: Re: [PATCH] Initialize max_pfn_mapped as initial ident mapping size for x86_64 References: <1330669703-20176-1-git-send-email-zhenzhong.duan@oracle.com> <4F556D3D.8040400@zytor.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: On 03/05/2012 10:27 PM, Yinghai Lu wrote: > >> >> The early mapping range we can fix, and probably should. Mapping the >> first 4 GiB is not a lot of memory and makes a much more sensible >> starting point. > > do you mean map the 4G in head_64.S? > Yes. It would be better to design the mapping system so that it would incrementally map everything we need (with page tables allocated out of the memory already mapped), but that isn't a trivial exercise, especially with the need to avoid the initramfs, kernel image and command line and other data elements. -hpa -- H. Peter Anvin, Intel Open Source Technology Center I work for Intel. I don't speak on their behalf.