Received: by 2002:a05:7412:d008:b0:f9:6acb:47ec with SMTP id bd8csp339149rdb; Tue, 19 Dec 2023 20:22:16 -0800 (PST) X-Google-Smtp-Source: AGHT+IGsJK0T5SXtglsIjgL+eQa6Kl3jk7mTaMj86GBgFTHoqzyOsC3SaPZpJt9bfMTuK0yy6CsS X-Received: by 2002:a05:6358:718d:b0:172:e6d3:296d with SMTP id t13-20020a056358718d00b00172e6d3296dmr3909437rwt.1.1703046136398; Tue, 19 Dec 2023 20:22:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703046136; cv=none; d=google.com; s=arc-20160816; b=N4X0dKyICw5cARRHllRjCwSg/05mZPKiX0BmX0STEvUH2OC8erEdU1bC+wLjLEDitc zLCw97lw/q39dy4t/J06Ah7NBe7M/mWHHxkLpRVPRDUO4A+k73bkBKu60ASNQzo9KRSG VJv3XveSK3OZbItnckjAA8z8qHeVkQZrK3bNBwP8lc7IbLsFm8orocYzgf03CcYULvtx 44XoGSK+i7773ltzSriOy8nGUvol11D8HCy6Bg9JFjO/rKad6aXsMnbUTbHs1cKJJgYy as0O7WNoVgEdbgd3YEWbFduih6EzqTSNJQnIl3GBPsaH53UXfdqsbRSM8WxOrc2MaOtE TcpA== 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=7EHEyYnASjLqkXz0Wx5vgCLPHOJjY4wdawhn5jGqED8=; fh=IBRY2OfN0iTWW2ZjSSKvUJynIiV/JLaiDZe55wN3MqA=; b=HpbBL5znihV4RaGVfwInD2n+Ixev8JOM2LaYz4nZkuF2ntc6Rlp93buBg2wi23xz8r /pPIkvFHBJO5PVwm7RCfkzqf/bvZd4gbxKv8Pm7rfrBjWhIv//gNKNK8QbJoYpfsb3lm 8Wg/dzRUL4GLSUEdVfPvPqAhE7JMyT6ftfCCIiInIwaXV9EFpStE304xnPWTC1WjCM0Z rOS/MjCHRbtHvIVDZ1qtKlhH1s81T47CF7Kqpo49xlcLjkMg9ao9jwDfOdXqwiibkR/X WTjhtVIs2j04Poq+lFOAepA8zG9J2bi4M60k0yk3Emutjf/rdh7cpdkaHLKZz6SS2lbk UGeA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-6365-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-6365-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 e3-20020a656483000000b005859e22461csi20604189pgv.817.2023.12.19.20.22.16 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Dec 2023 20:22:16 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-6365-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-6365-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-6365-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 0EBC72829C2 for ; Wed, 20 Dec 2023 04:22:16 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B085918637; Wed, 20 Dec 2023 04:21:48 +0000 (UTC) X-Original-To: linux-kernel@vger.kernel.org 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 20483156F9 for ; Wed, 20 Dec 2023 04:21:45 +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.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> 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: dggems702-chm.china.huawei.com (10.3.19.179) To kwepemm000003.china.huawei.com (7.193.23.66) 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 -- 2.25.1