From patchwork Thu Dec 14 07:39:12 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nanyong Sun X-Patchwork-Id: 13492436 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0E7EAC4167B for ; Thu, 14 Dec 2023 06:41:56 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 684FB8D009B; Thu, 14 Dec 2023 01:41:55 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 6341C8D0098; Thu, 14 Dec 2023 01:41:55 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 4D5548D009C; Thu, 14 Dec 2023 01:41:55 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0010.hostedemail.com [216.40.44.10]) by kanga.kvack.org (Postfix) with ESMTP id 355AA8D009B for ; Thu, 14 Dec 2023 01:41:55 -0500 (EST) Received: from smtpin04.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay06.hostedemail.com (Postfix) with ESMTP id F3CF0A1CAD for ; Thu, 14 Dec 2023 06:41:54 +0000 (UTC) X-FDA: 81564478548.04.0D82E72 Received: from szxga04-in.huawei.com (szxga04-in.huawei.com [45.249.212.190]) by imf09.hostedemail.com (Postfix) with ESMTP id 9543314000A for ; Thu, 14 Dec 2023 06:41:52 +0000 (UTC) Authentication-Results: imf09.hostedemail.com; dkim=none; spf=pass (imf09.hostedemail.com: domain of sunnanyong@huawei.com designates 45.249.212.190 as permitted sender) smtp.mailfrom=sunnanyong@huawei.com; dmarc=pass (policy=quarantine) header.from=huawei.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1702536113; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=RbqiuXsHA2FdxHJz22f/UdGbBmiJ/DwpGUMHSWGjULA=; b=eR7BFszmxKrOSq6WlIHyJ1tdR+pdg3PS3/SzrRHt0aOrr+83aYDZTkvJerFXEmXOkND53J sQufR8AS2J8hKDEgIm/qUT2WzC7VdVUAxLL5QF70LzAvtWexeYwR4+KawRyTnaO8pgebbd 5vSe3w/cT3QLMIU1pZ5q5kGjE4hkggw= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1702536113; a=rsa-sha256; cv=none; b=WZorIZvNgudvUipdESiAx0pc4Xs2x8vErskNygJdihOyHAuxX2O5nL/N3wKYQjMw25na3E lcPk7BGYivqCjAmUqJN+wZwMF0gVBcR0X6B4BR7dh0EVBABCj0RiAn5IViYuNQ7crOOZ9N EgX0ACkUvUo6vyvhQM59fUWKST9/Qjc= ARC-Authentication-Results: i=1; imf09.hostedemail.com; dkim=none; spf=pass (imf09.hostedemail.com: domain of sunnanyong@huawei.com designates 45.249.212.190 as permitted sender) smtp.mailfrom=sunnanyong@huawei.com; dmarc=pass (policy=quarantine) header.from=huawei.com Received: from mail.maildlp.com (unknown [172.19.162.112]) by szxga04-in.huawei.com (SkyGuard) with ESMTP id 4SrN5h6bP5z29g0v; Thu, 14 Dec 2023 14:40:40 +0800 (CST) Received: from kwepemm000003.china.huawei.com (unknown [7.193.23.66]) by mail.maildlp.com (Postfix) with ESMTPS id 26D4514038F; Thu, 14 Dec 2023 14:41:49 +0800 (CST) Received: from huawei.com (10.175.113.32) by kwepemm000003.china.huawei.com (7.193.23.66) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Thu, 14 Dec 2023 14:41:48 +0800 From: Nanyong Sun To: , , , , , CC: , , , , , Subject: [PATCH 3/3] arm64: mm: Re-enable OPTIMIZE_HUGETLB_VMEMMAP Date: Thu, 14 Dec 2023 15:39:12 +0800 Message-ID: <20231214073912.1938330-4-sunnanyong@huawei.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20231214073912.1938330-1-sunnanyong@huawei.com> References: <20231214073912.1938330-1-sunnanyong@huawei.com> MIME-Version: 1.0 X-Originating-IP: [10.175.113.32] X-ClientProxiedBy: dggems704-chm.china.huawei.com (10.3.19.181) To kwepemm000003.china.huawei.com (7.193.23.66) X-Rspamd-Queue-Id: 9543314000A X-Rspam-User: X-Rspamd-Server: rspam11 X-Stat-Signature: i8jk9mu7tik8thshfeq9859z54cin7qr X-HE-Tag: 1702536112-694405 X-HE-Meta: U2FsdGVkX1+FSKxrgM+2lxGytrSTr+wXFxz4TUpe8OQoDiUqJu9Yo3PT3zknTNhs2PA35SNxcYYrlOpAuzK2hX87FHR3RL+zRgi+kPuSl9getSNs4QNuqW6Pae8ZYHjHWGtvZH0URYiMxYmJU9B+mCd+X4PhcNdQS616JxDHGGbfYeOIE0htuJNkhcmqNoxDvXLl7z9p1JVe0XmX72gLX4XOsstTsCIpr2FxQK3QyP8SM2AVs6BknQmgqDNpx2mObDNfa1B5rUKFFnmEJIT7NLJ9SSOQFg6oY3pAnWSbnb6I4NXrhb3E+8R/qUPrV6gYeaAWHI80CexqN+p8snwV1TgS9pBxXueQOGgBr2Q5wlpWD/idtDFtB9zyH2cozWAhai9ZjgP0kNizMCSrmDBZ4oZh1rUnfBOLNOn0YIgsL7HTi/AIaKAsfVv6ZQD7eUnSUmlUS1L1msz/5nHz+WycEs2fw4jOMdUyMiqcfW/yi1mx4heBp7SOIrmm+hR6t2x6JgzTyZFgIUpJ73w2xWFJec3/mCrpxE+wjmAZ5v5oNAABaw/6dK09kGDxhLdEYzGmQep0YfqgAFmlFBMnLru0qTChE+rCde58xTXleBUDMetgMtQ+1utujNPnshqmYoHIa6gYEXnuOUmkDNm2xRwLJVloohJ0xfOBqTckLxEioKKXFVELOO8JnqJiqU63QYdjA8/MZjtWCFZi+SCqBJ8+xVnDHVDyhu+Tk82YV6glpGg0TR0f0/hhflMNQFvASomH4MIXA+WuamTvAApcSGRNdkjtsP6pluvTVmeG14k0SK7cnBFox3KdP2GmwPSPQoOv9QR5UVkpZbkTLUX8p2jd7Wl7ar8kZwcozIHX0IBdhDFjnDQKiVMw7OqMllxhvPpsXqYvQ3g+ceJlSOnW3DBJMHXh4k04mFZhIQNzMee3y9Xyer99DTRvvd8Ctingq8PAqxvDeWo20jf33GK3Wav NkQMLyBS SL0VYj6BJaNmZInAQgIzRsbS1nGZWrX1OOTWCzfPVI5DwIeINmhNH28+5gWP4WkEWBBy4/+/+UD+nzhvDzyB6kjsMskhhO7cPZTpBIxsR3+D1vzM3GVwBeiX6SZeLE0f0VNDOyXx198x1ecCoZVdXvIrB6xcTAh5VZMfwwH4jkVyWQiB/qgvmBA0NJdeLxjwi/whT 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: List-Subscribe: List-Unsubscribe: Now update of vmemmap page table can follow the rule of break-before-make safely for arm64 architecture, re-enable HVO on arm64. Signed-off-by: Nanyong Sun Reviewed-by: Muchun Song --- arch/arm64/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig index 7b071a00425d..43e3d5576fb2 100644 --- a/arch/arm64/Kconfig +++ b/arch/arm64/Kconfig @@ -103,6 +103,7 @@ config ARM64 select ARCH_WANT_DEFAULT_TOPDOWN_MMAP_LAYOUT select ARCH_WANT_FRAME_POINTERS select ARCH_WANT_HUGE_PMD_SHARE if ARM64_4K_PAGES || (ARM64_16K_PAGES && !ARM64_VA_BITS_36) + select ARCH_WANT_OPTIMIZE_HUGETLB_VMEMMAP select ARCH_WANT_LD_ORPHAN_WARN select ARCH_WANTS_NO_INSTR select ARCH_WANTS_THP_SWAP if ARM64_4K_PAGES