From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752400AbcHHS1k (ORCPT ); Mon, 8 Aug 2016 14:27:40 -0400 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:42907 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752365AbcHHS1c (ORCPT ); Mon, 8 Aug 2016 14:27:32 -0400 X-IBM-Helo: d03dlp01.boulder.ibm.com X-IBM-MailFrom: arbab@linux.vnet.ibm.com From: Reza Arbab To: Rob Herring , Mark Rutland , Benjamin Herrenschmidt , Paul Mackerras , Michael Ellerman , Jonathan Corbet , Bharata B Rao , Nathan Fontenot , devicetree@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-doc@vger.kernel.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: [PATCH 0/4] powerpc/mm: movable hotplug memory nodes Date: Mon, 8 Aug 2016 13:27:19 -0500 X-Mailer: git-send-email 1.8.3.1 X-TM-AS-GCONF: 00 X-Content-Scanned: Fidelis XPS MAILER x-cbid: 16080818-0008-0000-0000-0000054145D4 X-IBM-SpamModules-Scores: X-IBM-SpamModules-Versions: BY=3.00005567; HX=3.00000240; KW=3.00000007; PH=3.00000004; SC=3.00000178; SDB=6.00741845; UDB=6.00349120; IPR=6.00514403; BA=6.00004651; NDR=6.00000001; ZLA=6.00000005; ZF=6.00000009; ZB=6.00000000; ZP=6.00000000; ZH=6.00000000; ZU=6.00000002; MB=3.00012249; XFM=3.00000011; UTC=2016-08-08 18:27:28 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 16080818-0009-0000-0000-00003A0E267C Message-Id: <1470680843-28702-1-git-send-email-arbab@linux.vnet.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2016-08-08_13:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 suspectscore=0 malwarescore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1604210000 definitions=main-1608080184 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org These changes enable onlining memory into ZONE_MOVABLE on power, and the creation of discrete nodes of movable memory. Node hotplug is not supported on power [1]. The approach taken instead is to create a memoryless placeholder node for the designated address range at boot. Hotplug and onlining of the memory are then done in the usual way. The numa code on power currently prevents hotplugging to a memoryless node. This limitation has been questioned before [2], and judging by the response, there doesn't seem to be a reason we can't remove it. No issues have been found in light testing. [1] commit 3af229f ("powerpc/numa: Reset node_possible_map to only node_online_map") [2] http://lkml.kernel.org/r/CAGZKiBrmkSa1yyhbf5hwGxubcjsE5SmkSMY4tpANERMe2UG4bg@mail.gmail.com http://lkml.kernel.org/r/20160511215051.GF22115@arbab-laptop.austin.ibm.com Reza Arbab (4): dt-bindings: add doc for ibm,hotplug-aperture powerpc/mm: create numa nodes for hotplug memory powerpc/mm: allow memory hotplug into a memoryless node mm: enable CONFIG_MOVABLE_NODE on powerpc .../bindings/powerpc/opal/hotplug-aperture.txt | 26 ++++++++++++++++++++++ Documentation/kernel-parameters.txt | 2 +- arch/powerpc/mm/numa.c | 23 ++++++++----------- mm/Kconfig | 2 +- 4 files changed, 37 insertions(+), 16 deletions(-) create mode 100644 Documentation/devicetree/bindings/powerpc/opal/hotplug-aperture.txt -- 1.8.3.1