Received: by 2002:ac0:aa62:0:0:0:0:0 with SMTP id w31-v6csp3439331ima; Tue, 23 Oct 2018 06:04:54 -0700 (PDT) X-Google-Smtp-Source: ACcGV62lYW/hMLlqXuo2v1Tgc3gr0jfU9505PEEEg7UOwVoRZ+2ka0d44e7KHoBGaEeteztxer/u X-Received: by 2002:a62:2c16:: with SMTP id s22-v6mr49479094pfs.6.1540299894505; Tue, 23 Oct 2018 06:04:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540299894; cv=none; d=google.com; s=arc-20160816; b=ft1WYq09CJxhZK/jwd588JhQs6zdj+PhZgMnXtWPgyECgxUJyXaqbCc8H/bCTRR6nW Zgcs1jDKOQUKqC++XL7uPhs7m5A+mnlV6m/ZKPYEhTJcTpYHcgXzS0tOFd5WCinr6pZV lyXqcGQ3Vd+tRXcV3eSUz7qZ0qucTJ2fzlcnJJCysZkjodoGlIO5U3jQQgfCbmCsHLfP uMr1u2Bcqi9cUvPAeIX/iQSAjv47XcS7OJJm+yBWZciWbvoTmbqgK14yB/K1wcFq6pNw xlPGrTkZCZ5nyDwLYxhv5AtykwfP9wpUKBOjYw4Wf4+xHeHXoX8aLaV8zzFNi+izazkI QN6g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from; bh=9DupIIsNdd/O9YGIMQk1XTVqiKE5e8wT1C73SM5sX04=; b=FU/zvFcJUOI7OiDLTCjwojckdCDSjxcmZNs0kn9jGswEcdGkPbcQS0flZjvU5JNFI3 nVnJBBmymUiCwa87MxAIYsQzuDh2Y4MUdHE0N3+oqDTBJhMlF2d+vKUv06VXio1tqNjJ DRcSGW6ZPWIu3oBBs7Nwt0Ewwc9INdS90BkRMl3wlyIiT+G7H14IcxBv4+V3iKi2Q6am ow702ZxC+tI7ehliXpFVmYZG+S2FAqlAJq9uQAmMRSPRD102ScyzvfsYcPBBMMptOR0U WcMo3ACa/59Zsc9XheJXwNKeVs1G60jyOuOlJBFiWC3dm6A7VdBrESBzfZAJG+y6hl1m 43Fw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a6-v6si1296403pln.78.2018.10.23.06.04.37; Tue, 23 Oct 2018 06:04:54 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728231AbeJWV0O (ORCPT + 99 others); Tue, 23 Oct 2018 17:26:14 -0400 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:58936 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726277AbeJWV0N (ORCPT ); Tue, 23 Oct 2018 17:26:13 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id B4EC080D; Tue, 23 Oct 2018 06:02:50 -0700 (PDT) Received: from p8cg001049571a15.arm.com (unknown [10.163.1.17]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 3550E3F6A8; Tue, 23 Oct 2018 06:02:44 -0700 (PDT) From: Anshuman Khandual To: linux-mm@kvack.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: suzuki.poulose@arm.com, punit.agrawal@arm.com, will.deacon@arm.com, Steven.Price@arm.com, steve.capper@arm.com, catalin.marinas@arm.com, mhocko@kernel.org, akpm@linux-foundation.org, mike.kravetz@oracle.com, n-horiguchi@ah.jp.nec.com Subject: [PATCH V3 4/5] arm64/mm: Enable HugeTLB migration Date: Tue, 23 Oct 2018 18:32:00 +0530 Message-Id: <1540299721-26484-5-git-send-email-anshuman.khandual@arm.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1540299721-26484-1-git-send-email-anshuman.khandual@arm.com> References: <1540299721-26484-1-git-send-email-anshuman.khandual@arm.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Let arm64 subscribe to generic HugeTLB page migration framework. Right now this only works on the following PMD and PUD level HugeTLB page sizes with various kernel base page size combinations. CONT PTE PMD CONT PMD PUD -------- --- -------- --- 4K: NA 2M NA 1G 16K: NA 32M NA 64K: NA 512M NA Reviewed-by: Naoya Horiguchi Signed-off-by: Anshuman Khandual --- arch/arm64/Kconfig | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig index a8ae30f..4b3e269 100644 --- a/arch/arm64/Kconfig +++ b/arch/arm64/Kconfig @@ -1331,6 +1331,10 @@ config SYSVIPC_COMPAT def_bool y depends on COMPAT && SYSVIPC +config ARCH_ENABLE_HUGEPAGE_MIGRATION + def_bool y + depends on HUGETLB_PAGE && MIGRATION + menu "Power management options" source "kernel/power/Kconfig" -- 2.7.4