From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751624AbcEIRxs (ORCPT ); Mon, 9 May 2016 13:53:48 -0400 Received: from e35.co.us.ibm.com ([32.97.110.153]:42823 "EHLO e35.co.us.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751001AbcEIRxq (ORCPT ); Mon, 9 May 2016 13:53:46 -0400 X-IBM-Helo: d03dlp03.boulder.ibm.com X-IBM-MailFrom: arbab@linux.vnet.ibm.com X-IBM-RcptTo: david.vrabel@citrix.com;tangchen@cn.fujitsu.com;slaoub@gmail.com;rientjes@google.com;dan.j.williams@intel.com;linux-mm@kvack.org;iamjoonsoo.kim@lge.com;akpm@linux-foundation.org;gregkh@linuxfoundation.org;daniel.kiper@oracle.com;vkuznets@redhat.com;abanman@sgi.com;vbabka@suse.cz;linux-kernel@vger.kernel.org From: Reza Arbab To: Greg Kroah-Hartman , Andrew Morton , Daniel Kiper , Dan Williams , Vlastimil Babka , Tang Chen , Joonsoo Kim , David Vrabel , Vitaly Kuznetsov , David Rientjes , Andrew Banman , Chen Yucong Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: [PATCH 0/3] memory-hotplug: improve rezoning capability Date: Mon, 9 May 2016 12:53:36 -0500 Message-Id: <1462816419-4479-1-git-send-email-arbab@linux.vnet.ibm.com> X-Mailer: git-send-email 1.8.3.1 X-TM-AS-GCONF: 00 X-Content-Scanned: Fidelis XPS MAILER x-cbid: 16050917-0013-0000-0000-00003B697801 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org While it is currently possible to rezone memory when it is onlined, there are implicit assumptions about the zones: * To "online_kernel" a block into ZONE_NORMAL, it must currently be in ZONE_MOVABLE. * To "online_movable" a block into ZONE_MOVABLE, it must currently be in (ZONE_MOVABLE - 1). So on powerpc, where new memory is hotplugged into ZONE_DMA, these operations do not work. This patchset replaces the qualifications above with a more general validation of zone movement. Reza Arbab (3): memory-hotplug: add move_pfn_range() memory-hotplug: more general validation of zone during online memory-hotplug: use zone_can_shift() for sysfs valid_zones attribute drivers/base/memory.c | 28 ++++++++++------- include/linux/memory_hotplug.h | 2 ++ mm/memory_hotplug.c | 70 ++++++++++++++++++++++++++++++++++-------- 3 files changed, 77 insertions(+), 23 deletions(-) -- 1.8.3.1