Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932543AbcCIMN2 (ORCPT ); Wed, 9 Mar 2016 07:13:28 -0500 Received: from e23smtp01.au.ibm.com ([202.81.31.143]:54223 "EHLO e23smtp01.au.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932372AbcCIMMG (ORCPT ); Wed, 9 Mar 2016 07:12:06 -0500 X-IBM-Helo: d23dlp01.au.ibm.com X-IBM-MailFrom: khandual@linux.vnet.ibm.com X-IBM-RcptTo: linux-kernel@vger.kernel.org From: Anshuman Khandual To: linux-mm@kvack.org, linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org Cc: hughd@google.com, kirill@shutemov.name, n-horiguchi@ah.jp.nec.com, akpm@linux-foundation.org, mgorman@techsingularity.net, aneesh.kumar@linux.vnet.ibm.com, mpe@ellerman.id.au Subject: [RFC 8/9] powerpc/mm: Enable HugeTLB page migration Date: Wed, 9 Mar 2016 17:40:49 +0530 Message-Id: <1457525450-4262-8-git-send-email-khandual@linux.vnet.ibm.com> X-Mailer: git-send-email 2.1.0 In-Reply-To: <1457525450-4262-1-git-send-email-khandual@linux.vnet.ibm.com> References: <1457525450-4262-1-git-send-email-khandual@linux.vnet.ibm.com> X-TM-AS-MML: disable X-Content-Scanned: Fidelis XPS MAILER x-cbid: 16030912-1618-0000-0000-000027434D63 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 823 Lines: 28 This change enables HugeTLB page migration for PPC64_BOOK3S systems for HugeTLB pages implemented at the PMD level. It enables the kernel configuration option ARCH_ENABLE_HUGEPAGE_MIGRATION which turns on 'hugepage_migration_supported' function which is checked for feature presence during migration. Signed-off-by: Anshuman Khandual --- arch/powerpc/Kconfig | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch/powerpc/Kconfig b/arch/powerpc/Kconfig index c6920bb..cefc368 100644 --- a/arch/powerpc/Kconfig +++ b/arch/powerpc/Kconfig @@ -86,6 +86,10 @@ config GENERIC_HWEIGHT config ARCH_HAS_DMA_SET_COHERENT_MASK bool +config ARCH_ENABLE_HUGEPAGE_MIGRATION + def_bool y + depends on PPC_BOOK3S_64 && HUGETLB_PAGE && MIGRATION + config PPC bool default y -- 2.1.0