Message ID | 20231214073912.1938330-4-sunnanyong@huawei.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:3b04:b0:fb:cd0c:d3e with SMTP id c4csp8362257dys; Wed, 13 Dec 2023 23:01:33 -0800 (PST) X-Google-Smtp-Source: AGHT+IE411+UF2zSBSp3Lhzw0bB9nSXpB1FfOAiq/h3+2djPtSykxzA7o9ENsAITA841jmFoysok X-Received: by 2002:a17:90a:d143:b0:286:6cd8:ef04 with SMTP id t3-20020a17090ad14300b002866cd8ef04mr12480920pjw.28.1702537293566; Wed, 13 Dec 2023 23:01:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702537293; cv=none; d=google.com; s=arc-20160816; b=xS9MRA8ef8+DLtAoxyshKZ2cQfQ1035dc78j15HrSOft4QQXjb0K222e84wPUmg1Cr Z5eZV7sbmTFAWe9p01G4F3NWv5CJLxeF9riwtYvQC3eRoothD4CgfX1r/bIfTvjx26vP +1vP4MV9Uo5e1XwcM9dFwn9U3mbJ+giebpGgo370pA4UuHeINGfrwj+/NZOw3QnGcMCD /6MLpStcRG2lhZ7LbEYGzMb/sbBNSCAV3jplQYBXV7+5Z0JLtchWUo7jCNZMrKCixmzR 7i6JWE1D2YKYPYfKLXxrvfdTwVCO3VSW101kW+CIyVq91UVI4RCmPivRCQ9kg9LQ1rR3 VAfQ== 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 23.128.96.37 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 snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id 4-20020a631544000000b005c201808430si10842209pgv.120.2023.12.13.23.01.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Dec 2023 23:01:33 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 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 3BE028029DD2; Wed, 13 Dec 2023 23:01:32 -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 <rfc822;dexuan.linux@gmail.com> + 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 <rfc822;linux-kernel@vger.kernel.org>); 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 <linux-kernel@vger.kernel.org>; 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 <sunnanyong@huawei.com> To: <catalin.marinas@arm.com>, <will@kernel.org>, <mike.kravetz@oracle.com>, <muchun.song@linux.dev>, <akpm@linux-foundation.org>, <anshuman.khandual@arm.com> CC: <willy@infradead.org>, <wangkefeng.wang@huawei.com>, <sunnanyong@huawei.com>, <linux-arm-kernel@lists.infradead.org>, <linux-kernel@vger.kernel.org>, <linux-mm@kvack.org> 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: <linux-kernel.vger.kernel.org> 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:32 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1785239745284264976 X-GMAIL-MSGID: 1785239745284264976 |
Series |
A Solution to Re-enable hugetlb vmemmap optimize on Arm
|
|
Commit Message
Nanyong Sun
Dec. 14, 2023, 7:39 a.m. UTC
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 <sunnanyong@huawei.com>
---
arch/arm64/Kconfig | 1 +
1 file changed, 1 insertion(+)
Comments
> On Dec 14, 2023, at 15:39, Nanyong Sun <sunnanyong@huawei.com> wrote: > > 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 <sunnanyong@huawei.com> Reviewed-by: Muchun Song <songmuchun@bytedance.com> Thanks.
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