From mboxrd@z Thu Jan 1 00:00:00 1970 From: Wen Congyang Subject: Re: [RFC PATCH v5 12/19] memory-hotplug: introduce new function arch_remove_memory() Date: Mon, 30 Jul 2012 18:35:37 +0800 Message-ID: <50166379.4090305@cn.fujitsu.com> References: <50126B83.3050201@cn.fujitsu.com> <50126E2F.8010301@cn.fujitsu.com> <20120730102305.GB3631@osiris.boeblingen.de.ibm.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20120730102305.GB3631@osiris.boeblingen.de.ibm.com> Sender: owner-linux-mm@kvack.org To: Heiko Carstens Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-acpi@vger.kernel.org, linux-s390@vger.kernel.org, linux-sh@vger.kernel.org, linux-ia64@vger.kernel.org, cmetcalf@tilera.com, rientjes@google.com, liuj97@gmail.com, len.brown@intel.com, benh@kernel.crashing.org, paulus@samba.org, cl@linux.com, minchan.kim@gmail.com, akpm@linux-foundation.org, kosaki.motohiro@jp.fujitsu.com, Yasuaki ISIMATU List-Id: linux-acpi@vger.kernel.org At 07/30/2012 06:23 PM, Heiko Carstens Wrote: > On Fri, Jul 27, 2012 at 06:32:15PM +0800, Wen Congyang wrote: >> We don't call __add_pages() directly in the function add_memory() >> because some other architecture related things need to be done >> before or after calling __add_pages(). So we should introduce >> a new function arch_remove_memory() to revert the things >> done in arch_add_memory(). >> >> Note: the function for s390 is not implemented(I don't know how to >> implement it for s390). > > There is no hardware or firmware interface which could trigger a > hot memory remove on s390. So there is nothing that needs to be > implemented. Thanks for providing this information. According to this, arch_remove_memory() for s390 can just return -EBUSY. Thanks Wen Congyang > > -- > To unsubscribe from this list: send the line "unsubscribe linux-acpi" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html > -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org From mboxrd@z Thu Jan 1 00:00:00 1970 From: Wen Congyang Date: Mon, 30 Jul 2012 10:35:37 +0000 Subject: Re: [RFC PATCH v5 12/19] memory-hotplug: introduce new function arch_remove_memory() Message-Id: <50166379.4090305@cn.fujitsu.com> List-Id: References: <50126B83.3050201@cn.fujitsu.com> <50126E2F.8010301@cn.fujitsu.com> <20120730102305.GB3631@osiris.boeblingen.de.ibm.com> In-Reply-To: <20120730102305.GB3631@osiris.boeblingen.de.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Heiko Carstens Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-acpi@vger.kernel.org, linux-s390@vger.kernel.org, linux-sh@vger.kernel.org, linux-ia64@vger.kernel.org, cmetcalf@tilera.com, rientjes@google.com, liuj97@gmail.com, len.brown@intel.com, benh@kernel.crashing.org, paulus@samba.org, cl@linux.com, minchan.kim@gmail.com, akpm@linux-foundation.org, kosaki.motohiro@jp.fujitsu.com, Yasuaki ISIMATU At 07/30/2012 06:23 PM, Heiko Carstens Wrote: > On Fri, Jul 27, 2012 at 06:32:15PM +0800, Wen Congyang wrote: >> We don't call __add_pages() directly in the function add_memory() >> because some other architecture related things need to be done >> before or after calling __add_pages(). So we should introduce >> a new function arch_remove_memory() to revert the things >> done in arch_add_memory(). >> >> Note: the function for s390 is not implemented(I don't know how to >> implement it for s390). > > There is no hardware or firmware interface which could trigger a > hot memory remove on s390. So there is nothing that needs to be > implemented. Thanks for providing this information. According to this, arch_remove_memory() for s390 can just return -EBUSY. Thanks Wen Congyang > > -- > To unsubscribe from this list: send the line "unsubscribe linux-acpi" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html > From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from song.cn.fujitsu.com (unknown [222.73.24.84]) by ozlabs.org (Postfix) with ESMTP id 6ED292C0092 for ; Mon, 30 Jul 2012 20:30:41 +1000 (EST) Message-ID: <50166379.4090305@cn.fujitsu.com> Date: Mon, 30 Jul 2012 18:35:37 +0800 From: Wen Congyang MIME-Version: 1.0 To: Heiko Carstens Subject: Re: [RFC PATCH v5 12/19] memory-hotplug: introduce new function arch_remove_memory() References: <50126B83.3050201@cn.fujitsu.com> <50126E2F.8010301@cn.fujitsu.com> <20120730102305.GB3631@osiris.boeblingen.de.ibm.com> In-Reply-To: <20120730102305.GB3631@osiris.boeblingen.de.ibm.com> Content-Type: text/plain; charset=ISO-8859-1 Cc: linux-s390@vger.kernel.org, linux-ia64@vger.kernel.org, linux-acpi@vger.kernel.org, len.brown@intel.com, linux-sh@vger.kernel.org, linux-kernel@vger.kernel.org, cmetcalf@tilera.com, linux-mm@kvack.org, Yasuaki ISIMATU , paulus@samba.org, minchan.kim@gmail.com, kosaki.motohiro@jp.fujitsu.com, rientjes@google.com, cl@linux.com, linuxppc-dev@lists.ozlabs.org, akpm@linux-foundation.org, liuj97@gmail.com List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , At 07/30/2012 06:23 PM, Heiko Carstens Wrote: > On Fri, Jul 27, 2012 at 06:32:15PM +0800, Wen Congyang wrote: >> We don't call __add_pages() directly in the function add_memory() >> because some other architecture related things need to be done >> before or after calling __add_pages(). So we should introduce >> a new function arch_remove_memory() to revert the things >> done in arch_add_memory(). >> >> Note: the function for s390 is not implemented(I don't know how to >> implement it for s390). > > There is no hardware or firmware interface which could trigger a > hot memory remove on s390. So there is nothing that needs to be > implemented. Thanks for providing this information. According to this, arch_remove_memory() for s390 can just return -EBUSY. Thanks Wen Congyang > > -- > To unsubscribe from this list: send the line "unsubscribe linux-acpi" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html > From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753178Ab2G3Kam (ORCPT ); Mon, 30 Jul 2012 06:30:42 -0400 Received: from cn.fujitsu.com ([222.73.24.84]:64347 "EHLO song.cn.fujitsu.com" rhost-flags-OK-FAIL-OK-OK) by vger.kernel.org with ESMTP id S1752514Ab2G3Kak (ORCPT ); Mon, 30 Jul 2012 06:30:40 -0400 X-IronPort-AV: E=Sophos;i="4.77,679,1336320000"; d="scan'208";a="5510371" Message-ID: <50166379.4090305@cn.fujitsu.com> Date: Mon, 30 Jul 2012 18:35:37 +0800 From: Wen Congyang User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.9) Gecko/20100413 Fedora/3.0.4-2.fc13 Thunderbird/3.0.4 MIME-Version: 1.0 To: Heiko Carstens CC: linux-mm@kvack.org, linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-acpi@vger.kernel.org, linux-s390@vger.kernel.org, linux-sh@vger.kernel.org, linux-ia64@vger.kernel.org, cmetcalf@tilera.com, rientjes@google.com, liuj97@gmail.com, len.brown@intel.com, benh@kernel.crashing.org, paulus@samba.org, cl@linux.com, minchan.kim@gmail.com, akpm@linux-foundation.org, kosaki.motohiro@jp.fujitsu.com, Yasuaki ISIMATU Subject: Re: [RFC PATCH v5 12/19] memory-hotplug: introduce new function arch_remove_memory() References: <50126B83.3050201@cn.fujitsu.com> <50126E2F.8010301@cn.fujitsu.com> <20120730102305.GB3631@osiris.boeblingen.de.ibm.com> In-Reply-To: <20120730102305.GB3631@osiris.boeblingen.de.ibm.com> X-MIMETrack: Itemize by SMTP Server on mailserver/fnst(Release 8.5.3|September 15, 2011) at 2012/07/30 18:31:09, Serialize by Router on mailserver/fnst(Release 8.5.3|September 15, 2011) at 2012/07/30 18:31:14, Serialize complete at 2012/07/30 18:31:14 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=ISO-8859-1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org At 07/30/2012 06:23 PM, Heiko Carstens Wrote: > On Fri, Jul 27, 2012 at 06:32:15PM +0800, Wen Congyang wrote: >> We don't call __add_pages() directly in the function add_memory() >> because some other architecture related things need to be done >> before or after calling __add_pages(). So we should introduce >> a new function arch_remove_memory() to revert the things >> done in arch_add_memory(). >> >> Note: the function for s390 is not implemented(I don't know how to >> implement it for s390). > > There is no hardware or firmware interface which could trigger a > hot memory remove on s390. So there is nothing that needs to be > implemented. Thanks for providing this information. According to this, arch_remove_memory() for s390 can just return -EBUSY. Thanks Wen Congyang > > -- > To unsubscribe from this list: send the line "unsubscribe linux-acpi" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html >