From mboxrd@z Thu Jan 1 00:00:00 1970 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 D493FC25B4F for ; Mon, 29 Apr 2024 10:36: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:References:In-Reply-To: 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: List-Owner; bh=18IoqiqiybiQXXc1uyMerxG+GPN7hIhAZwi+N77Put0=; b=ZVChqK9PzIHfMy ArcAp0mr9wpZxBgjRm+pyqCk6gAay2RDA+Sn6vXUI/bsMNOh+3G5Y47Yy9gB6Tvd4VD5RE8lin95T 0hA6PoZ8TxIFKTUGgu/uPPpaII2A0HYUkohKyOwAaq9RX3V4W1EIXvMkD/vngw0BOCSQIzf9w1AZL 3yKLADsq8nOyerw1Q3NoEm2UXffGiuFPCvE85EEl5Py5iZhMBqagus9qFIRKdCc8RV/rDOLXf1f5t IxF9Hr3YX78fl0GcD1bID+7t6kqtpwqwkDcuZguoW/06zKO3NZke/R9/NMmHKXYDl0KyIJNagodst RlLeNKCbXWzkOxe5Aobg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1s1ONB-00000002IiW-3V6V; Mon, 29 Apr 2024 10:36:37 +0000 Received: from out187-22.us.a.mail.aliyun.com ([47.90.187.22]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1s1OMl-00000002INf-1OaM for linux-riscv@lists.infradead.org; Mon, 29 Apr 2024 10:36:16 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=antgroup.com; s=default; t=1714386961; h=From:To:Subject:Date:Message-Id:MIME-Version; bh=Zpq+IlpQptIiF+1qadAYLdyILX4yq5vgiQqk5YenteU=; b=JYXejhfZPXRD0CEEjA5KkFdk2RT/wbex+Lc9SxxWOCkDurLvBqF7x4OwdI2GGQfN/54+6NYZJI8LGBk+F72vT7HUS/pm+RSWuGn8E7rVlJam3rDmYi7SFHoh1HezxBO4FUHII2thhCd34KAlHau2aFuvO+GyjxGxhbtrc9B7ULs= X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R171e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018047205;MF=libang.li@antgroup.com;NM=1;PH=DS;RN=17;SR=0;TI=SMTPD_---.XOFQRPj_1714386953; Received: from localhost(mailfrom:libang.li@antgroup.com fp:SMTPD_---.XOFQRPj_1714386953) by smtp.aliyun-inc.com; Mon, 29 Apr 2024 18:35:54 +0800 From: "Bang Li" To: akpm@linux-foundation.org, chenhuacai@kernel.org, tsbogend@alpha.franken.de, paul.walmsley@sifive.com, palmer@dabbelt.com, chris@zankel.net, jcmvbkbc@gmail.com Cc: , , , , , , , , , "Bang Li" Subject: [PATCH v1 2/5] mips: Add update_mmu_tlb_range() Date: Mon, 29 Apr 2024 18:33:43 +0800 Message-Id: <20240429103346.59115-3-libang.li@antgroup.com> X-Mailer: git-send-email 2.19.1.6.gb485710b In-Reply-To: <20240429103346.59115-1-libang.li@antgroup.com> References: <20240429103346.59115-1-libang.li@antgroup.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240429_033611_745168_AEF0246E X-CRM114-Status: UNSURE ( 5.85 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-riscv@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-riscv" Errors-To: linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.org Added update_mmu_tlb_range function, we can batch update tlb of an address range. Signed-off-by: Bang Li --- arch/mips/include/asm/pgtable.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/mips/include/asm/pgtable.h b/arch/mips/include/asm/pgtable.h index e27a4c83c548..0891ad7d43b6 100644 --- a/arch/mips/include/asm/pgtable.h +++ b/arch/mips/include/asm/pgtable.h @@ -596,6 +596,8 @@ static inline void update_mmu_cache_range(struct vm_fault *vmf, #define __HAVE_ARCH_UPDATE_MMU_TLB #define update_mmu_tlb update_mmu_cache +#define update_mmu_tlb_range(vma, address, ptep, nr) \ + update_mmu_cache_range(NULL, vma, address, ptep, nr) static inline void update_mmu_cache_pmd(struct vm_area_struct *vma, unsigned long address, pmd_t *pmdp) -- 2.19.1.6.gb485710b _______________________________________________ linux-riscv mailing list linux-riscv@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-riscv