linux-mips
[Top] [All Lists]

Re: [PATCH RESEND] MIPS: Add local_flush_tlb_all_mm to clear all mm cont

To: Maksim Rayskiy <maksim.rayskiy@gmail.com>
Subject: Re: [PATCH RESEND] MIPS: Add local_flush_tlb_all_mm to clear all mm contexts on calling cpu
From: David Daney <ddaney@caviumnetworks.com>
Date: Wed, 29 Dec 2010 11:25:34 -0800
Cc: linux-mips <linux-mips@linux-mips.org>, "Kevin D. Kissell" <kevink@paralogos.com>, Ralf Baechle <ralf@linux-mips.org>
In-reply-to: <AANLkTimKSauYdv-cfSmc3cxQo3-YE4sOpLQ7sepwJf==@mail.gmail.com>
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <AANLkTimKSauYdv-cfSmc3cxQo3-YE4sOpLQ7sepwJf==@mail.gmail.com>
Sender: linux-mips-bounce@linux-mips.org
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.15) Gecko/20101027 Fedora/3.0.10-1.fc12 Thunderbird/3.0.10
On 12/29/2010 11:04 AM, Maksim Rayskiy wrote:
 From 9a03661a40407e14ee75295f5541f371f0a7cdda Mon Sep 17 00:00:00 2001
From: Maksim Rayskiy<maksim.rayskiy@gmail.com>
Date: Tue, 30 Nov 2010 11:34:31 -0800
Subject: [PATCH] MIPS: Add local_flush_tlb_all_mm to clear all mm
contexts on calling cpu

When hotplug removing a cpu, all mm context TLB entries must be cleared
to avoid ASID conflict when cpu is restarted.
New functions local_flush_tlb_all_mm() and all-cpu version
flush_tlb_all_mm() are added.
To function properly, local_flush_tlb_all_mm() must be called when
mm_cpumask for all mm context on given cpu is cleared.

Signed-off-by: Maksim Rayskiy<maksim.rayskiy@gmail.com>
---
=A0arch/mips/include/asm/tlbflush.h | =A0 =A04 ++++
=A0arch/mips/kernel/smp.c =A0 =A0 =A0 =A0 =A0 | =A0 10 ++++++++++
=A0arch/mips/mm/tlb-r4k.c =A0 =A0 =A0 =A0 =A0 | =A0 12 ++++++++++++
=A03 files changed, 26 insertions(+), 0 deletions(-)

diff --git a/arch/mips/include/asm/tlbflush.h b/arch/mips/include/asm/t=
lbflush.h
index 86b21de..d7b75e6 100644
--- a/arch/mips/include/asm/tlbflush.h
+++ b/arch/mips/include/asm/tlbflush.h
@@ -8,12 +8,14 @@
=A0*
=A0* =A0- flush_tlb_all() flushes all processes TLB entries
=A0* =A0- flush_tlb_mm(mm) flushes the specified mm context TLB entries
+ * =A0- flush_tlb_all_mm() flushes all mm context TLB entries
[...]

Your mailer did an excellent job of mangling the patch.

Can you resend it but without the Content-Transfer-Encoding: QUOTED-PRINTABLE bit?

David Daney

<Prev in Thread] Current Thread [Next in Thread>