From patchwork Tue Oct 23 13:02:00 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anshuman Khandual X-Patchwork-Id: 10653195 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 827FA13BF for ; Tue, 23 Oct 2018 13:02:54 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 68CEB2962F for ; Tue, 23 Oct 2018 13:02:54 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5C38A29640; Tue, 23 Oct 2018 13:02:54 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id EF56F2962F for ; Tue, 23 Oct 2018 13:02:53 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id AB1FD6B026A; Tue, 23 Oct 2018 09:02:52 -0400 (EDT) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id A62B76B026B; Tue, 23 Oct 2018 09:02:52 -0400 (EDT) X-Original-To: int-list-linux-mm@kvack.org X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 953516B026C; Tue, 23 Oct 2018 09:02:52 -0400 (EDT) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from mail-oi1-f200.google.com (mail-oi1-f200.google.com [209.85.167.200]) by kanga.kvack.org (Postfix) with ESMTP id 71ED06B026A for ; Tue, 23 Oct 2018 09:02:52 -0400 (EDT) Received: by mail-oi1-f200.google.com with SMTP id o204-v6so698738oif.10 for ; Tue, 23 Oct 2018 06:02:52 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-original-authentication-results:x-gm-message-state:from:to:cc :subject:date:message-id:in-reply-to:references; bh=9DupIIsNdd/O9YGIMQk1XTVqiKE5e8wT1C73SM5sX04=; b=XoYCJqzs2WXgFs830dkgCJKtQAOlaJxjMqiAcfdHGWfxKPLFLbestt+sYh7MWXMlWy g3l//ike9S6YPlDsV6w6hQdTLQjbse7UVHo8DhNMgX7a3bShGaz/yyLrm74wQP56Nu8g DBgZhKs8/r9+MkQI79nyxjNucIEIc3bf/ecoRwFXiGgDxAbIxixUfW4sSpAu2uFLNtBe 3xkAVR8O2B+bUoAtZghH8nmepFbO5LYcHd6zzdBTA6178EYkI6LZnWemvykdHlmvVmVR aO/lz+LviQHSQIdtIkxZIyPbbZDvHvKMgPpymi1gooyyZNtzc7MkSz0rkcT/Gp1yTMP0 4JHA== X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of anshuman.khandual@arm.com designates 217.140.101.70 as permitted sender) smtp.mailfrom=anshuman.khandual@arm.com X-Gm-Message-State: ABuFfoidJ70qlrhSDO0EOaxOguZFKJxhOGa7BtMdKczgwL5DMW6YoxIC 7+xkHLc9G8nwcGH9cSnGutaQC00G1YjRsNf+rs/nm+yU/lPvAoz3zBRppYWazcsEanySupjkPV3 rdOIjlH9p567J9ncnQClpDAzRK+EPG5cyF+51Up3UtN9b9g8eoT/g6zc0UYAzZoUSUA== X-Received: by 2002:a9d:3205:: with SMTP id t5mr29753995otc.119.1540299772238; Tue, 23 Oct 2018 06:02:52 -0700 (PDT) X-Google-Smtp-Source: ACcGV63QZY7lS8jhsA2fh7hRBjWs5mehFoIY0L4Y1AAF7zS1zTf6Y0ikkvkuEXmjIbSoDked8Rld X-Received: by 2002:a9d:3205:: with SMTP id t5mr29753955otc.119.1540299771348; Tue, 23 Oct 2018 06:02:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540299771; cv=none; d=google.com; s=arc-20160816; b=eMoJ7tc1AqkSSTy0OR54cyk7lBI0vwYTHvdiVJANpxLN3HgVwwPENyD/K3NswmqvdD 87OpMmeseE4ydWC32UYNNmPhgk2l+khMfPoDpuXSA3SE0grntv84tFQAuMv6SNW6X+0S Cy2yyEhbEmxCTrmtNLtZGHfqoD1rLZ9hSBm6v7ahU4x4RdDu2YPJDvfMVvcaWXms5/u9 XEPqRkIhSyeOnmLhJfpi9V6Oc1Vd8++48pcfLkEHAlzxUjzqEby73TwjiaN4lYtY4uLh 0c1jTPK4NcQ6lNTTeFSK74Y9W65AnTg8jaWo9IUZNqSbIzS+tZQB2YmlffCQt2NvJzOZ GriQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=references:in-reply-to:message-id:date:subject:cc:to:from; bh=9DupIIsNdd/O9YGIMQk1XTVqiKE5e8wT1C73SM5sX04=; b=EdSVow4XKbiXVSPpSQBMInGr30MS3tyA1RC7PP9HOzDVO3HHKfj9f5hn/kwUqD+anv atD3jv8u9mnIw7GM/MUUR5zM+jxFlTQVp89gHWi5G2gBD36uIG+qk/CeZ5qtNWLt2yPC jQmZM8aRr/sqiMS4sWbDweFOKGnq+Rhs7c7G5I2Xw8YkulvvLGhSHG7c5y1ZIRCu7dqI hK4c6dw+2cTNnoGX9Tm8ZdQubWmJFJzKHqgVW7moEweMVOWoTeOVPX9EkVUL/dwMnJaB dO/WVe6+G9CBemoKvITWEq2eSLjbtggt/iyMB7XZA1HV9nJFxpIj3uSg6n3sgVcEOrT/ qjWA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of anshuman.khandual@arm.com designates 217.140.101.70 as permitted sender) smtp.mailfrom=anshuman.khandual@arm.com Received: from foss.arm.com (usa-sjc-mx-foss1.foss.arm.com. [217.140.101.70]) by mx.google.com with ESMTP id 50si579923otk.166.2018.10.23.06.02.51 for ; Tue, 23 Oct 2018 06:02:51 -0700 (PDT) Received-SPF: pass (google.com: domain of anshuman.khandual@arm.com designates 217.140.101.70 as permitted sender) client-ip=217.140.101.70; Authentication-Results: mx.google.com; spf=pass (google.com: domain of anshuman.khandual@arm.com designates 217.140.101.70 as permitted sender) smtp.mailfrom=anshuman.khandual@arm.com 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> X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: X-Virus-Scanned: ClamAV using ClamSMTP 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 Reviewed-by: Steve Capper --- 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"