From: Sergei Shtylyov <sshtylyov@mvista.com>
To: Maksim Rayskiy <maksim.rayskiy@gmail.com>
Cc: "Kevin D. Kissell" <kevink@paralogos.com>,
Ralf Baechle <ralf@linux-mips.org>,
linux-mips@linux-mips.org
Subject: Re: [PATCH] MIPS: ASID conflict after CPU hotplug
Date: Wed, 01 Dec 2010 14:51:03 +0300 [thread overview]
Message-ID: <4CF636A7.1030809@mvista.com> (raw)
In-Reply-To: <AANLkTinQKfeYockOBYQOasJ0-C3T106Qe95hV23pfqKg@mail.gmail.com>
Hello.
On 30-11-2010 22:49, 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: Added 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>
[...]
> diff --git a/arch/mips/mm/tlb-r4k.c b/arch/mips/mm/tlb-r4k.c
> index c618eed..5c03218 100644
> --- a/arch/mips/mm/tlb-r4k.c
> +++ b/arch/mips/mm/tlb-r4k.c
> @@ -66,6 +66,18 @@ extern void build_tlb_refill_handler(void);
>
> #endif
>
> +/* This function will clear all mm contexts on calling cpu
> + * To produce desired effect it must be called
> + * when mm_cpumask for all mm contexts is cleared
> + */
> +void local_flush_tlb_all_mm(void)
> +{
> + struct task_struct *p;
An empty line wouldn't hurt here...
> + for_each_process(p)
> + if (p->mm)
> + local_flush_tlb_mm(p->mm);
> +}
> +
WBR, Sergei
next prev parent reply other threads:[~2010-12-01 11:53 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-11-17 18:49 [PATCH] MIPS: ASID conflict after CPU hotplug Maksim Rayskiy
2010-11-22 3:41 ` Ralf Baechle
2010-11-22 18:38 ` Maksim Rayskiy
2010-11-22 21:34 ` Kevin D. Kissell
[not found] ` <AANLkTimuJLxG2KoibRxzcHkX3LoKsTWqJSF_e=ouFi+b@mail.gmail.com>
2010-11-25 15:57 ` Kevin D. Kissell
[not found] ` <AANLkTinUSjvjwHVJoRW-Fr75WDfheq3hSM_hEBMsEUXK@mail.gmail.com>
2010-11-30 2:53 ` Kevin D. Kissell
2010-11-30 3:21 ` Maksim Rayskiy
2010-11-30 10:05 ` Kevin D. Kissell
2010-11-30 19:49 ` Maksim Rayskiy
2010-12-01 11:51 ` Sergei Shtylyov [this message]
2011-11-10 13:09 ` Ralf Baechle
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4CF636A7.1030809@mvista.com \
--to=sshtylyov@mvista.com \
--cc=kevink@paralogos.com \
--cc=linux-mips@linux-mips.org \
--cc=maksim.rayskiy@gmail.com \
--cc=ralf@linux-mips.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox