From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752567AbdBJKHr (ORCPT ); Fri, 10 Feb 2017 05:07:47 -0500 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:41935 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751652AbdBJKHo (ORCPT ); Fri, 10 Feb 2017 05:07:44 -0500 From: Anshuman Khandual To: linux-kernel@vger.kernel.org, linux-mm@kvack.org Cc: mhocko@suse.com, vbabka@suse.cz, mgorman@suse.de, minchan@kernel.org, aneesh.kumar@linux.vnet.ibm.com, bsingharora@gmail.com, srikar@linux.vnet.ibm.com, haren@linux.vnet.ibm.com, jglisse@redhat.com, dave.hansen@intel.com, dan.j.williams@intel.com Subject: [PATCH V2 0/3] Define coherent device memory node Date: Fri, 10 Feb 2017 15:36:37 +0530 X-Mailer: git-send-email 2.9.3 X-TM-AS-MML: disable X-Content-Scanned: Fidelis XPS MAILER x-cbid: 17021010-0016-0000-0000-000002181F0B X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 17021010-0017-0000-0000-00000664A73F Message-Id: <20170210100640.26927-1-khandual@linux.vnet.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2017-02-10_04:,, 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-1612050000 definitions=main-1702100101 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This three patches define CDM node with HugeTLB & Buddy allocation isolation. Please refer to the last RFC posting mentioned here for details. The series has been split for easier review process. The next part of the work like VM flags, auto NUMA and KSM interactions with tagged VMAs will follow later. https://lkml.org/lkml/2017/1/29/198 Changes in V2: * Removed redundant nodemask_has_cdm() check from zonelist iterator * Dropped the nodemask_had_cdm() function itself * Added node_set/clear_state_cdm() functions and removed bunch of #ifdefs * Moved CDM helper functions into nodemask.h from node.h header file * Fixed the build failure by additional CONFIG_NEED_MULTIPLE_NODES check Previous V1: (https://lkml.org/lkml/2017/2/8/329) Anshuman Khandual (3): mm: Define coherent device memory (CDM) node mm: Enable HugeTLB allocation isolation for CDM nodes mm: Enable Buddy allocation isolation for CDM nodes Documentation/ABI/stable/sysfs-devices-node | 7 ++++ arch/powerpc/Kconfig | 1 + arch/powerpc/mm/numa.c | 7 ++++ drivers/base/node.c | 6 +++ include/linux/nodemask.h | 58 ++++++++++++++++++++++++++++- mm/Kconfig | 4 ++ mm/hugetlb.c | 25 ++++++++----- mm/memory_hotplug.c | 3 ++ mm/page_alloc.c | 24 +++++++++++- 9 files changed, 123 insertions(+), 12 deletions(-) -- 2.9.3