From patchwork Wed Dec 20 05:18:55 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nanyong Sun X-Patchwork-Id: 13499494 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 8BD99C3DA6E for ; Wed, 20 Dec 2023 04:21:55 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id BC6738D0009; Tue, 19 Dec 2023 23:21:50 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id B4EED8D0007; Tue, 19 Dec 2023 23:21:50 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 9ED968D0009; Tue, 19 Dec 2023 23:21:50 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0016.hostedemail.com [216.40.44.16]) by kanga.kvack.org (Postfix) with ESMTP id 89BF98D0007 for ; Tue, 19 Dec 2023 23:21:50 -0500 (EST) Received: from smtpin29.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay05.hostedemail.com (Postfix) with ESMTP id 63B324017D for ; Wed, 20 Dec 2023 04:21:50 +0000 (UTC) X-FDA: 81585898380.29.554DCC7 Received: from szxga04-in.huawei.com (szxga04-in.huawei.com [45.249.212.190]) by imf17.hostedemail.com (Postfix) with ESMTP id 1B9824000F for ; Wed, 20 Dec 2023 04:21:47 +0000 (UTC) Authentication-Results: imf17.hostedemail.com; dkim=none; dmarc=pass (policy=quarantine) header.from=huawei.com; spf=pass (imf17.hostedemail.com: domain of sunnanyong@huawei.com designates 45.249.212.190 as permitted sender) smtp.mailfrom=sunnanyong@huawei.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1703046108; a=rsa-sha256; cv=none; b=ShKZAOHixYKjbNzDU2P4990nBIcaq+VMnaXdRBfTQ7IalFd4080x+yyAA97wS34ZjIAx7H YeCKP+FupEMCbDteTuEXGGZ1G4CEia+iEkOGIaCCtFxlLwMTa5LDSEN86g2Eb9/J6EGzQj m53MLUZhWRwp8VDG6sx9XW5XA8hkADc= ARC-Authentication-Results: i=1; imf17.hostedemail.com; dkim=none; dmarc=pass (policy=quarantine) header.from=huawei.com; spf=pass (imf17.hostedemail.com: domain of sunnanyong@huawei.com designates 45.249.212.190 as permitted sender) smtp.mailfrom=sunnanyong@huawei.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1703046108; 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=7EHEyYnASjLqkXz0Wx5vgCLPHOJjY4wdawhn5jGqED8=; b=iDJaUTJsGXJF5kE5meG1OawNYnQlv3MbbD3vWSZW9JYuHnE4OQp3TviCxvNsW+55dle+ec 12dO9ZoNvtr5wRsj67oePzoJouQ94jKr9/7JMth0KNgBJ10fobH+0w0T0Y48ueWWG7nC4M u0KuzTnzNkBbeYR4sXOAcnjOBegd1is= Received: from mail.maildlp.com (unknown [172.19.88.234]) by szxga04-in.huawei.com (SkyGuard) with ESMTP id 4Sw0jB30t1z29fmG; Wed, 20 Dec 2023 12:20:30 +0800 (CST) Received: from kwepemm000003.china.huawei.com (unknown [7.193.23.66]) by mail.maildlp.com (Postfix) with ESMTPS id C22CD140499; Wed, 20 Dec 2023 12:21:43 +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; Wed, 20 Dec 2023 12:21:42 +0800 From: Nanyong Sun To: , , , , , CC: , , , , , Subject: [PATCH v2 3/3] arm64: mm: Re-enable OPTIMIZE_HUGETLB_VMEMMAP Date: Wed, 20 Dec 2023 13:18:55 +0800 Message-ID: <20231220051855.47547-4-sunnanyong@huawei.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20231220051855.47547-1-sunnanyong@huawei.com> References: <20231220051855.47547-1-sunnanyong@huawei.com> MIME-Version: 1.0 X-Originating-IP: [10.175.113.32] X-ClientProxiedBy: dggems702-chm.china.huawei.com (10.3.19.179) To kwepemm000003.china.huawei.com (7.193.23.66) X-Rspamd-Server: rspam08 X-Rspamd-Queue-Id: 1B9824000F X-Stat-Signature: mcctbb81k838x6bscumnxtc8sahoxuec X-Rspam-User: X-HE-Tag: 1703046107-720140 X-HE-Meta: U2FsdGVkX19UoBCx2NQHgRAG1QxmUEQqFiVo2REZrfV8eKQHdFeJrVAV5K/zloEkPpTzKgWZMdnqO9XspjlAlFaXHm4ygllr4xYufEh4odOPAYaz4t0zH5en4liu6aMjffbyxD5bgTpWAdtQxInvztDhUqASE/Yyha1VwqSbFHW5wi2VoQP4ejNcuRJ7aAlKL/Y9dlDXhfqDw2zL4whOG5tooP8lK3N5iGq8DFAo8Ci2lm0KgY1insy/dTtpQn4BvQw8dNIfFYPi/oe7L3x6q/Sti7494mHhBA84luxWl8k8ZW8iQt+FQhZ2NQUm6pRBKiBcXBhMUfyB/LIig2+eVJsT3GCG8YtSdCXA1TBveROmX2pcTzlse/WuMofqwsXovDwCpgXq+rzae9Hyu7UpxNPwqAz07QDVbM6GCwJPiHltZZi4au7chEdFlo64dArUkQnc5JQysBTFWR3Z2cv/Ka8mYhHhl9NdAXGMKPjck8Uhw8+ZWo1VvXNzKNJcIAbyoZOOV9HC5h4SKHlM0yx4hdOAcTw3T/tzDN3DFpndKW2Abp82l2jRxgPQxzo7Gw6fcpCWidYKOGwiV97eRhn7VF5tYK+v/hKQYNTyUyXF21R9leThK5GhM+TDKhH2rCXL1++P9xMiUkQMRgcBbTG1MDRGoXx5W+9o6ukjCLsy3rXDTP8E72DMn59n7g8W0D9ifIEePjDBFqPY/b6xX/7v2LNAsSld7JiV/kPl7FtDA9IQHVRZhhRUhEY+1Q1cBHXudseDCQhj0Q4dxPUE5794xZ2kYf2q8GR4M9kFDFJhNdPRIhX7JiUlH9kY/fPdgaAGNyeopIR2Qy4o1WA3TFOOYoMx/2rYRHE4jFJQR8hRRXrM/T0z3/CtgtUso4t1LxtfuqnjdrZBMdU= 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