Received: by 2002:a05:7412:e794:b0:fa:551:50a7 with SMTP id o20csp2767947rdd; Sat, 13 Jan 2024 00:49:11 -0800 (PST) X-Google-Smtp-Source: AGHT+IH97bSixpeNQqoSq8ZV8aJVWSyNxBjNhjxL3073wPV8O9TwBY7KHf5K0MIxEVB2SSxfmqC2 X-Received: by 2002:a05:6a00:22cd:b0:6d9:a683:a6e4 with SMTP id f13-20020a056a0022cd00b006d9a683a6e4mr2946434pfj.68.1705135751050; Sat, 13 Jan 2024 00:49:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1705135751; cv=none; d=google.com; s=arc-20160816; b=P5qFeH/1rJjo8/in44BEF/AjuLzMhagzgA998F6ZRHfdxkaCqadnKYosAT9mqsRBrw e7sj/MW75rsU/+MdwbRxDEMh2ZLjW0GMZMvPyUWa9ECRcNgIfi3CqPITBSol3cttxHBc C5BhqJlSEpxyeGriYlxuhh8pN66/ZRKPIF8eRYb6tUEThTb7uUK1MB7QkOO54QAJeCTQ l9ntU8gZrqQyY9yC0PyFzUzRvLDHf4NqH/xlk4D8rw7UPO3uF5c3QliJ1dhVIA9bALyv r9BMktDfGuSX/5OqVHlvVgwcE6JuXzuyX+yMGcQIrdQQ6eo9uAbIeygnswaS76IY0Nh8 eyIg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from; bh=3eklEW/rS0FJ7aXyEaabkKXSabEhwsZJbeZifNjfxro=; fh=IBRY2OfN0iTWW2ZjSSKvUJynIiV/JLaiDZe55wN3MqA=; b=lMaLr1e6LhI2hJ0Zwm2sBiiiSF6AjfGzSjyvz4duaMO9pJzjNU0f7F2DP++APyZ2KD GCLSrlm83KTPUF0p563DBQGgfKoUIUmTjTIEbqPng/aKIG4VfTVDrJDsET24c34xmMJW Hx9QlEzTuxC7uhG8+rm+1RM1WrqbRM9KOIS7Rw7c/0WHTZGvcQ/+bZPtHvsABblq+JcF bXIigOG76A9VQ9O5AxZuHQ5AuH6/weKqqksbjozkY3ozl8KQibgBGMVBW6KfFTjYoHaS bYyJoC54m1Ks8wKjaMJzrXRHfnuA/GPZZ9ZrcOpU3tFHeEBjB0Kd8r8su///Cymywo9m aqNw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-25219-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-25219-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id bq7-20020a056a02044700b005cdf7e9debasi5487869pgb.522.2024.01.13.00.49.10 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 13 Jan 2024 00:49:11 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-25219-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-25219-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-25219-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id B8A04284EFB for ; Sat, 13 Jan 2024 08:49:10 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BA1E917545; Sat, 13 Jan 2024 08:48:26 +0000 (UTC) Received: from szxga04-in.huawei.com (szxga04-in.huawei.com [45.249.212.190]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B04E1DF5D for ; Sat, 13 Jan 2024 08:48:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=huawei.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=huawei.com Received: from mail.maildlp.com (unknown [172.19.163.44]) by szxga04-in.huawei.com (SkyGuard) with ESMTP id 4TBsTG0PbQz29jqm; Sat, 13 Jan 2024 16:46:42 +0800 (CST) Received: from kwepemm600003.china.huawei.com (unknown [7.193.23.202]) by mail.maildlp.com (Postfix) with ESMTPS id 8FEF214011A; Sat, 13 Jan 2024 16:48:16 +0800 (CST) Received: from huawei.com (10.175.113.32) by kwepemm600003.china.huawei.com (7.193.23.202) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Sat, 13 Jan 2024 16:48:15 +0800 From: Nanyong Sun To: , , , , , CC: , , , , , Subject: [PATCH v3 3/3] arm64: mm: Re-enable OPTIMIZE_HUGETLB_VMEMMAP Date: Sat, 13 Jan 2024 17:44:36 +0800 Message-ID: <20240113094436.2506396-4-sunnanyong@huawei.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240113094436.2506396-1-sunnanyong@huawei.com> References: <20240113094436.2506396-1-sunnanyong@huawei.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: dggems706-chm.china.huawei.com (10.3.19.183) To kwepemm600003.china.huawei.com (7.193.23.202) 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 8f6cf1221b6a..bd37a7ed32f2 100644 --- a/arch/arm64/Kconfig +++ b/arch/arm64/Kconfig @@ -104,6 +104,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 -- 2.25.1