From patchwork Tue Aug 1 02:31:43 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kefeng Wang X-Patchwork-Id: 13335698 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 2289DC001DF for ; Tue, 1 Aug 2023 02:20:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:CC :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=mKzkT7Q6xYiDdvDpLqUP6UAd95vf5FylN61IZCuhswc=; b=Ovy60nMn6nKFIn EuXJGszBA5qByb7b0DKrYTrFfEMtGGwm6PUUwxNIyhECrzN2Pbfc19mX7MbmPK0PQH2p3Rfl+vAhI 6ehCJZKlC0R9T9cSFK2phDDoy6V0+WsOHKsU70LOvJap0ROcwics+oHs3TQiCuDB9KEnh49dqyr0Y c8KqfSbPdWmyg6uVEkIB1mJFo7ohjlrClpGibSOOstey5/GBxZu0nKZAoUm5TMBAa0UDngpNs+Fe3 mTrz1/guymWWSpSpTovxF0tHwmknlKgEOqriu1es6ZSzMOTZ3puTbB0vKuj90Fqjo1u6MVgq8MLY9 jGB41Zsmi0fFx/t8IiMA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qQezm-000C35-1e; Tue, 01 Aug 2023 02:20:22 +0000 Received: from szxga02-in.huawei.com ([45.249.212.188]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qQeza-000BzN-0y for linux-arm-kernel@lists.infradead.org; Tue, 01 Aug 2023 02:20:11 +0000 Received: from dggpemm100001.china.huawei.com (unknown [172.30.72.54]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4RFJdH6NGczNmhL; Tue, 1 Aug 2023 10:16:35 +0800 (CST) Received: from localhost.localdomain.localdomain (10.175.113.25) by dggpemm100001.china.huawei.com (7.185.36.93) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.27; Tue, 1 Aug 2023 10:20:00 +0800 From: Kefeng Wang To: Andrew Morton , Catalin Marinas , Will Deacon , Mike Kravetz , Muchun Song , Mina Almasry , , , , , CC: , , <21cnbao@gmail.com>, Kefeng Wang Subject: [PATCH v2 0/2] mm: hugetlb: fix mremap tlb flush Date: Tue, 1 Aug 2023 10:31:43 +0800 Message-ID: <20230801023145.17026-1-wangkefeng.wang@huawei.com> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 X-Originating-IP: [10.175.113.25] X-ClientProxiedBy: dggems706-chm.china.huawei.com (10.3.19.183) To dggpemm100001.china.huawei.com (7.185.36.93) X-CFilter-Loop: Reflected X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230731_192010_504452_6518ABB6 X-CRM114-Status: UNSURE ( 8.63 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The first patch uses correct flush tlb functions when move page tables, and second patch is a small tlb flush optimization for hugepage on arm64. v2: - drop uncorrected move_normal_pmd/pud() changes - add flush_hugetlb_tlb_range() on arm64 instead of changing generic flush_tlb_range() - collect RB/ACK Kefeng Wang (2): mm: hugetlb: use flush_hugetlb_tlb_range() in move_hugetlb_page_tables() arm64: hugetlb: enable __HAVE_ARCH_FLUSH_HUGETLB_TLB_RANGE arch/arm64/include/asm/hugetlb.h | 12 ++++++++++++ mm/hugetlb.c | 4 ++-- 2 files changed, 14 insertions(+), 2 deletions(-)