Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753807Ab3HBFxE (ORCPT ); Fri, 2 Aug 2013 01:53:04 -0400 Received: from cn.fujitsu.com ([222.73.24.84]:55153 "EHLO song.cn.fujitsu.com" rhost-flags-OK-FAIL-OK-OK) by vger.kernel.org with ESMTP id S1751144Ab3HBFxC (ORCPT ); Fri, 2 Aug 2013 01:53:02 -0400 X-IronPort-AV: E=Sophos;i="4.89,799,1367942400"; d="scan'208";a="8095910" Message-ID: <51FB48E5.6040007@cn.fujitsu.com> Date: Fri, 02 Aug 2013 13:51:33 +0800 From: Tang Chen User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:12.0) Gecko/20120430 Thunderbird/12.0.1 MIME-Version: 1.0 To: Tejun Heo CC: rjw@sisk.pl, lenb@kernel.org, tglx@linutronix.de, mingo@elte.hu, hpa@zytor.com, akpm@linux-foundation.org, trenn@suse.de, yinghai@kernel.org, jiang.liu@huawei.com, wency@cn.fujitsu.com, laijs@cn.fujitsu.com, isimatu.yasuaki@jp.fujitsu.com, izumi.taku@jp.fujitsu.com, mgorman@suse.de, minchan@kernel.org, mina86@mina86.com, gong.chen@linux.intel.com, vasilis.liaskovitis@profitbricks.com, lwoodman@redhat.com, riel@redhat.com, jweiner@redhat.com, prarit@redhat.com, zhangyanfei@cn.fujitsu.com, yanghy@cn.fujitsu.com, x86@kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, linux-acpi@vger.kernel.org Subject: Re: [PATCH v2 13/18] x86, numa, mem_hotplug: Skip all the regions the kernel resides in. References: <1375340800-19332-1-git-send-email-tangchen@cn.fujitsu.com> <1375340800-19332-14-git-send-email-tangchen@cn.fujitsu.com> <20130801134218.GA29323@htj.dyndns.org> In-Reply-To: <20130801134218.GA29323@htj.dyndns.org> X-MIMETrack: Itemize by SMTP Server on mailserver/fnst(Release 8.5.3|September 15, 2011) at 2013/08/02 13:51:42, Serialize by Router on mailserver/fnst(Release 8.5.3|September 15, 2011) at 2013/08/02 13:51:45, Serialize complete at 2013/08/02 13:51:45 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=ISO-8859-1; format=flowed Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1604 Lines: 43 On 08/01/2013 09:42 PM, Tejun Heo wrote: >> On Thu, Aug 01, 2013 at 03:06:35PM +0800, Tang Chen wrote: >> >> At early time, memblock will reserve some memory for the kernel, >> such as the kernel code and data segments, initrd file, and so on=EF=BC=8C >> which means the kernel resides in these memory regions. >> >> Even if these memory regions are hotpluggable, we should not >> mark them as hotpluggable. Otherwise the kernel won't have enough >> memory to boot. >> >> This patch finds out which memory regions the kernel resides in, >> and skip them when finding all hotpluggable memory regions. >> >> Signed-off-by: Tang Chen >> Reviewed-by: Zhang Yanfei >> --- >> mm/memory=5Fhotplug.c | 45 +++++++++++++++++++++++++++++++++++++++++++++ >> 1 files changed, 45 insertions(+), 0 deletions(-) >> >> diff --git a/mm/memory=5Fhotplug.c b/mm/memory=5Fhotplug.c >> index 326e2f2..b800c9c 100644 >> --- a/mm/memory=5Fhotplug.c >> +++ b/mm/memory=5Fhotplug.c >> @@ -31,6 +31,7 @@ >> #include >> #include >> #include >> +#include >> =20 >> #include >> =20 > > This patch is contaminated. Can you please resend?It It's wired. I'll rebase these patches to linux 3.11-rc3 and resend them all. Thanks. -- 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/