Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp5805093rdb; Wed, 13 Dec 2023 23:01:35 -0800 (PST) X-Google-Smtp-Source: AGHT+IHZpO6p/4qIZ8TT7RQAfBkb/SVJ2AxHszZnBgnf70Cz8b8e2INrxXIw6LW8GoUA4lNMcA18 X-Received: by 2002:a05:6a20:748f:b0:18f:ce60:ceeb with SMTP id p15-20020a056a20748f00b0018fce60ceebmr11514454pzd.23.1702537294877; Wed, 13 Dec 2023 23:01:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702537294; cv=none; d=google.com; s=arc-20160816; b=dzYod+WiFDfENirOnq9YIOKnZ8jHkOHEkolOqLOJyLCqLwR4dSPfBP24kjKK5gi7JW wJ7S/E7VoElipKvTkgKuarVi6AnX6gQ2zCifXPfZQ6JVxxyh+XfxGk820/aArbtmXe8R zqVvqTnStLoOSkFE/t+umlHfJDs6aQP9eQ6clL5l0o28QciDx755bRiH1yQfgiYUNify z42Xm/hUENKo+sFJRWcsVTRxsF9mUtgWyjPC0Iaz9OCQubson7aci3oSm9E6MrBfPZgo kVioPgbmnQOJlJe7tNwUSWVDv3LpYyI4l8RPU+N4s+oTAaHapWj+xyE8OrUy0JysDCnc jljw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=RbqiuXsHA2FdxHJz22f/UdGbBmiJ/DwpGUMHSWGjULA=; fh=IBRY2OfN0iTWW2ZjSSKvUJynIiV/JLaiDZe55wN3MqA=; b=YfKgzconX/aB5sFEnHDlAxuUzkJUvFlXNOK+712DZuMjVzXKHixmkI+GTDt/JP8uKt QkUR7bWOyaTs97Hsd6vg9F0X4auMcJXTmejjXrgEk0JFa0qt5nUNd8SSGEJWYk+kKXrs javxAne8IG0lqe7vDNIfB2iYH40OdkHp9axdP0rIq3HhTHkUq6wYFo5UcIB5obEmm2C8 5cu58hn9vGSnHnX9bxWWbWZnbSgrXk2ytarclS/oIbRa30aFMDocniNv9o/8xJaaJITP OM1PXNazZDWEP8fRBj767KTpubu8gTo6V7GGrisXB5n4bcV1XMgr57NgEmYWXLmYwIwN AR5w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id ko19-20020a056a00461300b006cd92bdabfdsi11106205pfb.48.2023.12.13.23.01.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Dec 2023 23:01:34 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 2FEAA8029DE3; Wed, 13 Dec 2023 23:01:33 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1443267AbjLNHBX (ORCPT + 99 others); Thu, 14 Dec 2023 02:01:23 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50030 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234331AbjLNHBU (ORCPT ); Thu, 14 Dec 2023 02:01:20 -0500 Received: from szxga04-in.huawei.com (szxga04-in.huawei.com [45.249.212.190]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6F314F5 for ; Wed, 13 Dec 2023 23:01:26 -0800 (PST) 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 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII 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-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Wed, 13 Dec 2023 23:01:33 -0800 (PST) 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 --- 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 -- 2.25.1