From patchwork Mon Jul 31 07:48:25 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kefeng Wang X-Patchwork-Id: 13333946 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 kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id B5D6DC001DE for ; Mon, 31 Jul 2023 07:39:24 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id E9D1A280018; Mon, 31 Jul 2023 03:39:23 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id E4F6A280012; Mon, 31 Jul 2023 03:39:23 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id D14D7280018; Mon, 31 Jul 2023 03:39:23 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0016.hostedemail.com [216.40.44.16]) by kanga.kvack.org (Postfix) with ESMTP id BE956280012 for ; Mon, 31 Jul 2023 03:39:23 -0400 (EDT) Received: from smtpin24.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay04.hostedemail.com (Postfix) with ESMTP id 828E01A0101 for ; Mon, 31 Jul 2023 07:39:23 +0000 (UTC) X-FDA: 81071106606.24.17A7B09 Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by imf23.hostedemail.com (Postfix) with ESMTP id 7A49714000E for ; Mon, 31 Jul 2023 07:39:20 +0000 (UTC) Authentication-Results: imf23.hostedemail.com; dkim=none; spf=pass (imf23.hostedemail.com: domain of wangkefeng.wang@huawei.com designates 45.249.212.187 as permitted sender) smtp.mailfrom=wangkefeng.wang@huawei.com; dmarc=pass (policy=quarantine) header.from=huawei.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1690789161; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:in-reply-to: references; bh=mDAQuWBbkt7X39R2C3cGtjwCMI8WrAPdKzadG9uUiGw=; b=MvyQ5NDqcewIkFCBq8FOphgXujvKQlLUhpMutckV5XjEJraI7IHJEZQ8iqa2jthA8WXyaB NS3v+fvuXpgR8sbf6NxRX/eaC9f3L/JQEj2/Os7FrD37IyOXMkRZkiC69cOwgVWzpjAe5/ gwhb1gimGO8Xn49cKD3AGUT6b78hXbg= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1690789161; a=rsa-sha256; cv=none; b=1YxCQL6sV/pDzTCJCcAtAXiZpmZPGfXQobrUgNfwottpksxn3bgLiHtoEouPTiIYJIpxNL Tx6bae2iOdWM98+xvVPfAob5SlHZSKM9RYJrsEx1y+hOvg6MgJyhnRIeV0MV3bidtUJ0CL jo27GVhLh2eL8/l56klVjqT6E9dD8QI= ARC-Authentication-Results: i=1; imf23.hostedemail.com; dkim=none; spf=pass (imf23.hostedemail.com: domain of wangkefeng.wang@huawei.com designates 45.249.212.187 as permitted sender) smtp.mailfrom=wangkefeng.wang@huawei.com; dmarc=pass (policy=quarantine) header.from=huawei.com Received: from dggpemm100001.china.huawei.com (unknown [172.30.72.53]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4RDqpt3wCPzrS3Q; Mon, 31 Jul 2023 15:38:14 +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; Mon, 31 Jul 2023 15:39:13 +0800 From: Kefeng Wang To: Andrew Morton , Catalin Marinas , Will Deacon , Mike Kravetz , Muchun Song , Mina Almasry , , , , , CC: , , Kefeng Wang Subject: [PATCH 0/4] mm: mremap: fix move page tables Date: Mon, 31 Jul 2023 15:48:25 +0800 Message-ID: <20230731074829.79309-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: dggems702-chm.china.huawei.com (10.3.19.179) To dggpemm100001.china.huawei.com (7.185.36.93) X-CFilter-Loop: Reflected X-Rspamd-Queue-Id: 7A49714000E X-Rspam-User: X-Stat-Signature: ckdusuw7itr44fh8j1k4rkd8j4k4u6zx X-Rspamd-Server: rspam03 X-HE-Tag: 1690789160-976323 X-HE-Meta: U2FsdGVkX1/RoAnU2bysFvFDb3JRgsGV4GMcHSVE61BdCqWWlCJWf8Ms2loDeRjtsl1M4q3rDPwKr8OxNVVdNE413ApyoXvJHNeyxAL76F0QfRNkQtSSYq/EPX7adjAIIKjIO6YlPKgSKvKUSZyc0daZqAuSVoctShi4X/7EyP2Z0qKKOdfGWrlRZHIke0QkAcQet3TdTyZbYb2yQhRIH0wEl961uYunJ0hAr+allIR3k+0FlT9mMzBLrrlc9Q8X+YUqo1D+2K2wvAzqK1mPnIdWN6kNYMvEJsJtrCDr6kNqE+fRwDzlfPvNS/GrAT7Y2marbruoO2t5ZStzEJQItjYCkbUiSYI1E4T5eiNOOz+Jewp+bkgAzBN72FoTd9r0ivo1x5QAkjPzpOVPKdTVHwK42leysmEZyJHyHS03B+atcirgHwqn9tdh8WtVsSroTHJcRQfU1osajYqZ61f2qh9foz0uzdMQYPpBJKwvxnV+Vtc82JmfEKOz6mRbIS//JFjQSj86z6cVKNGg2m2Pav4/Bw1td7n0EMXi6fynKxM58sRoipd494Jfs6P8kCob9uEa58jGh+d4n483aaj4X9VtZHtrDPpEuaWr+iZfUxly58r01JA5jBKPG1Wm9gKNBVx7Su38kjp/IDId0zlN7NDrx1MaZl3sc3VDnBstjIVVxvYwvO+Sm+1z1ZbuKLDDfkvKfL7UOUYZxFp8E3uNgsdUVaTiy+9jUngOZTsvE53KpJs9FupEewSLq+AixZTtcRY/muPr9DKOCVQv7lvCnRaY4DNN9O7B17qrKNZjNxAQKYDJb7Wjq2Vd7+AbicrMcclIq54rd5CAtVQ8sC9uI8YL6Dpi7zHH5X212wfI6EMLpZv0EQ8FYZq48mAX0dChKZO/eR4MeP8SIw+EImBZ2vVCNpVGdlEQZcGMg6gWZopOkbpFz7hHe9GwNF0AhaIQtna3hymnCKSX+dNRPBe SU6cu339 0XXbs4OozmgQkSISVq53nRVr2wcNf9ii0jNlx/1TPoQGqn3DuoJ8u52J+rdK3E0ppiFg+WbOQRDs+D4yp0idOmkudhyc/4BPh/sWlsgt9y5+yyr/ChrTa4pkyhw== X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: The first three patches use correct flush tlb functions when move page tables, and patch 4 is a small optimization for hugepage on arm64. Kefeng Wang (4): mm: hugetlb: use flush_hugetlb_tlb_range() in move_hugetlb_page_tables() mm: mremap: use flush_pmd_tlb_range() in move_normal_pmd() mm: mremap: use flush_pud_tlb_range in move_normal_pud() arm64: tlb: set huge page size to stride for hugepage arch/arm64/include/asm/tlbflush.h | 21 +++++++++++---------- mm/hugetlb.c | 4 ++-- mm/mremap.c | 4 ++-- 3 files changed, 15 insertions(+), 14 deletions(-)