Received: by 2002:ab2:1689:0:b0:1f7:5705:b850 with SMTP id d9csp1267689lqa; Mon, 29 Apr 2024 03:37:47 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV784+gPgRRj62d7KC8AiCDvsr6BoPjjFRADp+WmoM/TXvh0gBln942Ft4ttI9NoRXv21C0DmMPffdvLt8hh2hpKVPL0hOaUOSK9Htb+A== X-Google-Smtp-Source: AGHT+IE8NIpUKAxR85dAeaP0LkL7HSwGckdjZfJJXjeNjNoWZzQao7eDz7a1OE7D4KBccKZVntp8 X-Received: by 2002:a05:6a00:1414:b0:6ec:ffb7:7dc7 with SMTP id l20-20020a056a00141400b006ecffb77dc7mr12459882pfu.26.1714387067057; Mon, 29 Apr 2024 03:37:47 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714387067; cv=pass; d=google.com; s=arc-20160816; b=D2le9Yd+qtGQNq+thMr06eBBxdHgfLb6ZEic/MmnfpgGvKKBhvCDR102qgcMeuWSC6 Edxvc5VAtD3HKaD9fq/4mfkBcDgDb3J5YSOpLsJxESHI1uJbhojLqIOqcmI8ompb7sAX Q2yym9ImFEuA7cObobz5WMt22Zu7i9U10vlNKMTwVFCOwMGmWOJr+z2JNkYo2Np1leKx 3bL5LSXsGZEpm0eMfiUsp6ntoxdi7uZgbCC6ObMniyg3qFXP7/UX9IeSHXd0uadIEjg8 bEGJBCJSJ5GFh75kZesyzPCIhZir0AnZAxA1dyvURiqOY/FUVUGCfVJumkY4shreZyGw i5Xw== ARC-Message-Signature: i=2; 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:dkim-signature; bh=Zpq+IlpQptIiF+1qadAYLdyILX4yq5vgiQqk5YenteU=; fh=9xlVfU6l1eaRMALSOTbrulKFFu6LW6R2I2OsjpORYlM=; b=bgz/ytyTMaJV9N7MKZuVDKEoNV22Ab/XMy0J1V/1sx2JnhcVD4KFC5nmHiGDdjM8QK NjAtkv76HIF0zI4VYZBVngpl6ErCPO9oi+lJn2bRaBYO8/NvopeVkc01AppVMvDhxg4w 84X19osmOQs1kpP1YsSeHna5IPSOOE5HVgliYeXgyhfGblpVz8n97JZPMxW8/5hkQPzQ NwtCxyg6/CpgnKB0xHi8Apy1vZAqVLbdYz5L2Gi4pT9awW8hulcibMLIHbqK/gr9h3+X +wIN0pFEpa34H34INtU/tczZdV9TcnxWIsu3wW34t5g2MEBokhvMPZpPEO8KehzsSDTk l/Dg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@antgroup.com header.s=default header.b=ZfDEYM1g; arc=pass (i=1 spf=pass spfdomain=antgroup.com dkim=pass dkdomain=antgroup.com dmarc=pass fromdomain=antgroup.com); spf=pass (google.com: domain of linux-kernel+bounces-162070-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-162070-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=antgroup.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id fc19-20020a056a002e1300b006ecfc9da8c3si15430253pfb.49.2024.04.29.03.37.46 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Apr 2024 03:37:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-162070-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@antgroup.com header.s=default header.b=ZfDEYM1g; arc=pass (i=1 spf=pass spfdomain=antgroup.com dkim=pass dkdomain=antgroup.com dmarc=pass fromdomain=antgroup.com); spf=pass (google.com: domain of linux-kernel+bounces-162070-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-162070-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=antgroup.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 AB17D281651 for ; Mon, 29 Apr 2024 10:37:46 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 113E84C3D0; Mon, 29 Apr 2024 10:36:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=antgroup.com header.i=@antgroup.com header.b="ZfDEYM1g" Received: from out0-206.mail.aliyun.com (out0-206.mail.aliyun.com [140.205.0.206]) (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 259DE35F18; Mon, 29 Apr 2024 10:36:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=140.205.0.206 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714386966; cv=none; b=acbc/wo9NHGpUG5bVSXnRvfRt1FNo/WXPgrRp6oQRWe4qt3rbXdP088gvM26Jzzhh59A06sX0r9fha5AVGRqZB5kspnQInPpQZYcdoiCp3Z823i/eoGTw4tQs4/PZNHZsCr8OryqwBh4xgEqEBDLczBxRdB3HsbvCsY0T7594GA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714386966; c=relaxed/simple; bh=jxXWxShuCRotVk/KOZsP3/ma7cHvuzHRC6adnl/VgTU=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=e3yqUIZWQCGLYbuuoGscBTrNVYDPFmr8zAQoSWUZTP0kyJZwVGipsrQygYbA9pRnIIa7QLCG6DTga0H2v05IuYIOuiP6NO7ZM7z5X53qq+FqQ3n2ycjLd/ErPL9KAiI74CI90jOP9SvhNKhTF0ySQKlqya7BWGuFxTpzDKrynTk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=antgroup.com; spf=pass smtp.mailfrom=antgroup.com; dkim=pass (1024-bit key) header.d=antgroup.com header.i=@antgroup.com header.b=ZfDEYM1g; arc=none smtp.client-ip=140.205.0.206 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=antgroup.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=antgroup.com DKIM-Signature:v=1; a=rsa-sha256; c=relaxed/relaxed; d=antgroup.com; s=default; t=1714386956; h=From:To:Subject:Date:Message-Id:MIME-Version; bh=Zpq+IlpQptIiF+1qadAYLdyILX4yq5vgiQqk5YenteU=; b=ZfDEYM1gq/EfWQ1/jTJn8UIMBGO1bgOCbOhZrBJC0Vjk6W2CVIppNxCigwGNKA6RcuSHnfRYM6xAMQKlQdmtvv0c7/kY5LSBJmtJhPZ62sjJVlcNVNtXz88CvftP/ibZibJcyRarkYqHPHsfuRAMRzPm3AkIQvFqtZhAsuIVADQ= 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> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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