From patchwork Wed Sep 9 04:53:01 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anshuman Khandual X-Patchwork-Id: 11764879 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 641B3138E for ; Wed, 9 Sep 2020 04:54:06 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id EA30021D40 for ; Wed, 9 Sep 2020 04:54:05 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="q8BZyAyK" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org EA30021D40 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=arm.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:MIME-Version:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Owner; bh=NyN9/JryBUJXuav7esCn7GAbgM+6ez86CR7/HIW6b8A=; b=q8BZyAyKdIdumcyUyIswTu57zu 2n+iIbTlP5J3Jr2OvjKbsPvpOmnbz1mkqB5PoDrSEkP2ILNky12qZ6qf4hIkkEYlfe8Xhh2WX+Zrn 2U7jUI8xm950ADTGuuh4D5rZJ75+pQ+aHlUTCxOl69SC5ns8x6SweDNrrWXNW/zanFSUDgx8eHBAq 6VapRLbnUapqRCJdM9FxuKooqbnYYgyDomLeg5bQvn3/QyMGqk6wAQeZPyBc0OvdAkT9znImJEBGw 7E9R7KrI2By0YB2HB8hE/VN1DujUcl2l21LTYmJXMPZm+SDYu+oO1XaGKrCpRXA8HXyBmG3fyDkEL PjudW/4w==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kFs7D-0007lH-E4; Wed, 09 Sep 2020 04:53:51 +0000 Received: from foss.arm.com ([217.140.110.172]) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kFs79-0007jr-3I for linux-arm-kernel@lists.infradead.org; Wed, 09 Sep 2020 04:53:48 +0000 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 3F38531B; Tue, 8 Sep 2020 21:53:44 -0700 (PDT) Received: from p8cg001049571a15.arm.com (unknown [10.163.71.250]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 599613F68F; Tue, 8 Sep 2020 21:53:40 -0700 (PDT) From: Anshuman Khandual To: linux-mm@kvack.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH V2 0/2] arm64/mm: Enable THP migration Date: Wed, 9 Sep 2020 10:23:01 +0530 Message-Id: <1599627183-14453-1-git-send-email-anshuman.khandual@arm.com> X-Mailer: git-send-email 2.7.4 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200909_005347_746670_7583FDC9 X-CRM114-Status: GOOD ( 10.25 ) X-Spam-Score: -2.3 (--) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (-2.3 points) pts rule name description ---- ---------------------- -------------------------------------------------- -2.3 RCVD_IN_DNSWL_MED RBL: Sender listed at https://www.dnswl.org/, medium trust [217.140.110.172 listed in list.dnswl.org] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark Rutland , Marc Zyngier , rcampbell@nvidia.com, Anshuman Khandual , catalin.marinas@arm.com, Suzuki Poulose , linux-kernel@vger.kernel.org, ziy@nvidia.com, Jonathan.Cameron@Huawei.com, akpm@linux-foundation.org, will@kernel.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org This series enables THP migration on arm64 via ARCH_ENABLE_THP_MIGRATION. But first this modifies all existing THP helpers like pmd_present() and pmd_trans_huge() etc per expected generic memory semantics as concluded from a previous discussion here. https://lkml.org/lkml/2018/10/9/220 This series is based on v5.9-rc4. Changes in V2: - Renamed clr_pmd_bit() as clear_pmd_bit() per Catalin - Updated in-code documentation per Catalin and Ralph - Updated commit message in the first patch per Catalin - Updated commit message in the second patch per Catalin - Added tags from Catalin Changes in V1: (https://patchwork.kernel.org/project/linux-mm/list/?series=333627) - Used new PMD_PRESENT_INVALID (bit 59) to represent invalidated PMD state per Catalin Changes in RFC V2: (https://patchwork.kernel.org/project/linux-mm/list/?series=302965) - Used PMD_TABLE_BIT to represent splitting PMD state per Catalin Changes in RFC V1: (https://patchwork.kernel.org/project/linux-mm/list/?series=138797) Cc: Catalin Marinas Cc: Will Deacon Cc: Mark Rutland Cc: Marc Zyngier Cc: Suzuki Poulose Cc: Zi Yan Cc: linux-arm-kernel@lists.infradead.org Cc: linux-kernel@vger.kernel.org Anshuman Khandual (2): arm64/mm: Change THP helpers to comply with generic MM semantics arm64/mm: Enable THP migration arch/arm64/Kconfig | 4 +++ arch/arm64/include/asm/pgtable-prot.h | 7 +++++ arch/arm64/include/asm/pgtable.h | 39 ++++++++++++++++++++++++--- 3 files changed, 47 insertions(+), 3 deletions(-)