From: Kumar Gala <galak@kernel.crashing.org>
To: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: linuxppc-dev@ozlabs.org
Subject: Re: [PATCH] powerpc: Fix 4xx flush_tlb_page()
Date: Mon, 29 Oct 2007 22:22:01 -0500 [thread overview]
Message-ID: <94E7B69E-5ED0-4805-AD31-DB98119A3DC7@kernel.crashing.org> (raw)
In-Reply-To: <20071029224624.68205DE157@ozlabs.org>
On Oct 29, 2007, at 5:46 PM, Benjamin Herrenschmidt wrote:
> On 4xx CPUs, the current implementation of flush_tlb_page() uses
> a low level _tlbie() assembly function that only works for the
> current PID. Thus, invalidations caused by, for example, a COW
> fault triggered by get_user_pages() from a different context will
> not work properly, causing among other things, gdb breakpoints
> to fail.
>
> This patch adds a "pid" argument to _tlbie() on 4xx processors,
> and uses it to flush entries in the right context. FSL BookE
> also gets the argument but it seems they don't need it (their
> tlbivax form ignores the PID when invalidating according to the
> document I have).
>
> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
> ---
>
> arch/powerpc/kernel/misc_32.S | 23 ++++++++++++++++-------
> arch/powerpc/mm/fault.c | 2 +-
> arch/powerpc/mm/mmu_decl.h | 4 ++--
> arch/ppc/kernel/misc.S | 22 +++++++++++++++-------
> arch/ppc/mm/fault.c | 2 +-
> arch/ppc/mm/mmu_decl.h | 4 ++--
> arch/ppc/platforms/4xx/ebony.c | 2 +-
> arch/ppc/platforms/4xx/ocotea.c | 2 +-
> arch/ppc/platforms/4xx/taishan.c | 2 +-
> include/asm-powerpc/tlbflush.h | 12 ++++++------
> 10 files changed, 46 insertions(+), 29 deletions(-)
Acked-by: Kumar Gala <galak@kernel.crashing.org>
- k
prev parent reply other threads:[~2007-10-30 3:20 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-10-29 22:46 [PATCH] powerpc: Fix 4xx flush_tlb_page() Benjamin Herrenschmidt
2007-10-30 3:22 ` Kumar Gala [this message]
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=94E7B69E-5ED0-4805-AD31-DB98119A3DC7@kernel.crashing.org \
--to=galak@kernel.crashing.org \
--cc=benh@kernel.crashing.org \
--cc=linuxppc-dev@ozlabs.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