From patchwork Tue Dec 18 08:24:09 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anshuman Khandual X-Patchwork-Id: 10735109 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 12C0F1399 for ; Tue, 18 Dec 2018 08:24:25 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 03B2C2A5F0 for ; Tue, 18 Dec 2018 08:24:25 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id EB9C22A643; Tue, 18 Dec 2018 08:24:24 +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 BE6312A5F0 for ; Tue, 18 Dec 2018 08:24:23 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 982C08E0008; Tue, 18 Dec 2018 03:24:22 -0500 (EST) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id 8E0BE8E0001; Tue, 18 Dec 2018 03:24:22 -0500 (EST) 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 75E168E0008; Tue, 18 Dec 2018 03:24:22 -0500 (EST) 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 4BE818E0001 for ; Tue, 18 Dec 2018 03:24:22 -0500 (EST) Received: by mail-oi1-f200.google.com with SMTP id w128so932163oie.20 for ; Tue, 18 Dec 2018 00:24:22 -0800 (PST) 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=3yoLcaF9X0riWY3FZa+bGPKXBDWeiClM4vC0Hym+K/c=; b=YzIBl1bs2iYMw3fDdj2XhVQp76vuIQCGUbhM5VMf164374fu3sQFJ5AKp+W4GEjtG1 sekPqYDMcX37Hr6LRc43yaJkrAxf7kwW2Ny/sMvbNfQ+9DMM5/1VnJFLsVoGqzn1f7S9 mjpOXs37u98kQBDAb9YR5Y7HvhFbcKOUiXNKtbN/8RXXg5ZG2DoW/q+Ds7C+MXHzaTtf yW/x8vCRlXDFJ1e9IpU4IGkionDFUVeh2rZ6q2pXVluz+9DPJkVfpTAEDpdvaG5r9q3E NcaW0Rg4sKjVTX9IdTa7njLdjPJzsPXNTDFBXnXxHhwGYPjDTwjgpB3isB2ZeEHBRwKo v4Mw== 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: AA+aEWYVGi2gHx1KK3IklT7Aq75LFyYEsVSDYKSz283a9nzpF5tIdOQn 5ES2O/z8ct+7ngZHOi+pzTqX8m5wG6zu56PT7PBbeWJq10e40sItOUbvGkdBcAcYXZ0DclJK7qg 0ZHuNNiGSdVEdzJYRxdOxzHQjfKALrPVW9tPOEpsoY/Y/qua7551P69Zulh7TPyig8w== X-Received: by 2002:aca:c43:: with SMTP id i3mr7635371oiy.157.1545121462078; Tue, 18 Dec 2018 00:24:22 -0800 (PST) X-Google-Smtp-Source: AFSGD/Xp36mhrcPqW1WCpI76pNuwbs0SQXB8tmg9cV83NF/PmNci7zQqjtmegQkMzVPJZ0v1dAW2 X-Received: by 2002:aca:c43:: with SMTP id i3mr7635348oiy.157.1545121461478; Tue, 18 Dec 2018 00:24:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545121461; cv=none; d=google.com; s=arc-20160816; b=JLElb7BA7ELymbPNivMfd0cVGpHoXorpWZ/9/aCk9+lU1vygByqS3uTJ/8mpVb4Wx1 SGEXTkriEwmaKbMiv4yiGqR81aGivJp1L90/JQ7cAiOEntkgKy1hs3MkYqVapie6DKSp 6vA2LEB7y3+i3CXDmtwU+ZSougCghDHWcRpg7RlWgANsalFPWwUewFR/suTTxX20+Zo0 VaGfQNOZQx+u9vLukDjquEocnCDCatFPmcC381BmgTF4K+260aPyg7nZNSVNjfhITzTI QcSQOSToHb39AmYMkrLe7O7JL4PdzxAAqt7S2rmYqzvNoxvqxv3RIczRhmjFAz0CmZdX gklQ== 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=3yoLcaF9X0riWY3FZa+bGPKXBDWeiClM4vC0Hym+K/c=; b=oQstvG2/d/4I29fy01qS3F6oFKMjNySrX38cAQbUCXGszNzyvWeB+DmnUFQNANvm2O 5mZ+DhznYeX8Hn+exnGep7WxyTDxIYuToVjdYQQ7jp3zdC2dS/SPZKDGOIkSDCoN+gC7 ODqXOqA6phkiSYbnggEYjzH9o8lKUMGqQTCDF/VnGqzmpiOaFN9pCCysFds4I2UMTAG7 9LnRrEhqQS860WG3VAbXu45QcP9AAV0ngKauUNo1WOFRCJfCu/erhJjFZ2E5CnQA3HDl 6n6BPJj7ONqaQqoxuZYLDMoeBeeqR4hLM6VsZCezSQKq7bxyPvBk2oIXLtRN7FxsWHsZ 5q2w== 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 h1si6875386oti.258.2018.12.18.00.24.21 for ; Tue, 18 Dec 2018 00:24:21 -0800 (PST) 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 F10D715AB; Tue, 18 Dec 2018 00:24:20 -0800 (PST) Received: from p8cg001049571a15.blr.arm.com (p8cg001049571a15.blr.arm.com [10.162.41.146]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 6828E3F575; Tue, 18 Dec 2018 00:24:17 -0800 (PST) From: Anshuman Khandual To: linux-mm@kvack.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: suzuki.poulose@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: [RESEND PATCH V3 4/5] arm64/mm: Enable HugeTLB migration Date: Tue, 18 Dec 2018 13:54:09 +0530 Message-Id: <1545121450-1663-5-git-send-email-anshuman.khandual@arm.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1545121450-1663-1-git-send-email-anshuman.khandual@arm.com> References: <1545121450-1663-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 Reviewed-by: Steve Capper Acked-by: Catalin Marinas 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 ea2ab03..57d0c4bf 100644 --- a/arch/arm64/Kconfig +++ b/arch/arm64/Kconfig @@ -1359,6 +1359,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"