From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757356AbYFPFnD (ORCPT ); Mon, 16 Jun 2008 01:43:03 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751012AbYFPFmy (ORCPT ); Mon, 16 Jun 2008 01:42:54 -0400 Received: from mga02.intel.com ([134.134.136.20]:41614 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750711AbYFPFmy (ORCPT ); Mon, 16 Jun 2008 01:42:54 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.27,650,1204531200"; d="scan'208";a="397248274" Subject: Re: [PATCH] x86: use add_highpages_with_active_regions for high pages init From: "Huang, Ying" To: "H. Peter Anvin" Cc: Yinghai Lu , Ingo Molnar , Thomas Gleixner , Andrew Morton , "linux-kernel@vger.kernel.org" In-Reply-To: <4855FC70.9050900@zytor.com> References: <200806132005.45836.yhlu.kernel@gmail.com> <200806140056.32601.yhlu.kernel@gmail.com> <20080614082343.GB11277@elte.hu> <86802c440806140205g3ff113ffq39272c18ef5b9654@mail.gmail.com> <1213579241.2433.7.camel@caritas-dev.intel.com> <86802c440806152046s71916de8g6f8e3e8d272d336a@mail.gmail.com> <1213594669.10376.19.camel@caritas-dev.intel.com> <4855FC70.9050900@zytor.com> Content-Type: text/plain Content-Transfer-Encoding: 7bit Date: Mon, 16 Jun 2008 13:45:26 +0800 Message-Id: <1213595126.10376.27.camel@caritas-dev.intel.com> Mime-Version: 1.0 X-Mailer: Evolution 2.22.1 X-OriginalArrivalTime: 16 Jun 2008 05:42:30.0687 (UTC) FILETIME=[C49CFAF0:01C8CF73] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, 2008-06-15 at 22:38 -0700, H. Peter Anvin wrote: > Huang, Ying wrote: > > On Sun, 2008-06-15 at 20:46 -0700, Yinghai Lu wrote: > > [...] > >> don't need, > >> EFI memmap should be reserved in e820map, so it should not show up in > >> early_node_map. > > > > I don't think so. EFI memmap comes from boot-loader not from BIOS. It > > contains boot-loader execution information (such as EfiLoaderCode, > > EfiLoaderData, etc), and it will be located at different position for > > each system reboot. > > > > If it is reserved in E820 memmap, hibernation can not work. Because the > > memory area for EFI memmap is not E820 RAM, it is not saved during > > hibernating and restored after restoring from disk. > > > > Linked list of struct setup_data has similar requirement too. > > > > That doesn't mean we can't use the E820 memory map structure for it. We > just have to define a new kernel-internal memory type, instead of using > type 2 (reserved). Yes. I will do this. Best Regards, Huang Ying