linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: linux@arm.linux.org.uk (Russell King - ARM Linux)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 3/5] ARM: pgtable: consolidate set_pte_ext(TOP_PTE, ...) + tlb flush
Date: Thu, 26 Jan 2012 20:08:02 +0000	[thread overview]
Message-ID: <20120126200802.GA11941@n2100.arm.linux.org.uk> (raw)
In-Reply-To: <CAHkRjk52Zo4psxCjpvzXO7b9HZFS1o-SGsv1WJ11On58By1SBw@mail.gmail.com>

On Wed, Jan 25, 2012 at 11:32:48AM +0000, Catalin Marinas wrote:
> On 20 January 2012 10:35, Russell King - ARM Linux
> <linux@arm.linux.org.uk> wrote:
> > A number of places establish a PTE in our top page table and
> > immediately flush the TLB. ?Rather than having this at every callsite,
> > provide an inline function for this purpose.
> ...
> > +static inline void set_top_pte(unsigned long va, pte_t pte)
> > +{
> > + ? ? ? set_pte_ext(TOP_PTE(va), pte, 0);
> > + ? ? ? local_flush_tlb_kernel_page(va);
> > +}
> 
> There is a difference with some of the call sites where the
> flush_tlb_kernel_page() was used instead of the local variant. The pte
> set up via set_top_pte() is indeed accessed on a single CPU and there
> are locks around that would prevent migration (with CONFIG_PREEMPT).
> So I don't see any problem with this.

That was indeed part of the intention.  I've added a note to the
description to that effect.

> Reviewed-by: Catalin Marinas <catalin.marinas@arm.com>
> 
> -- 
> Catalin

  reply	other threads:[~2012-01-26 20:08 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-01-20 10:34 [PATCH 0/5] Minor cleanups to kernel pte handling Russell King - ARM Linux
2012-01-20 10:35 ` [PATCH 1/5] ARM: pgtable: move TOP_PTE address definitions to arch/arm/mm/mm.h Russell King - ARM Linux
2012-01-25 11:20   ` Catalin Marinas
2012-01-20 10:35 ` [PATCH 2/5] ARM: pgtable: use mk_pte rather than pfn_pte(page_to_pfn()) Russell King - ARM Linux
2012-01-25 11:23   ` Catalin Marinas
2012-01-20 10:35 ` [PATCH 3/5] ARM: pgtable: consolidate set_pte_ext(TOP_PTE, ...) + tlb flush Russell King - ARM Linux
2012-01-25 11:32   ` Catalin Marinas
2012-01-26 20:08     ` Russell King - ARM Linux [this message]
2012-01-20 10:36 ` [PATCH 4/5] ARM: pgtable: provide get_top_pte() to complement set_top_pte() Russell King - ARM Linux
2012-01-25 11:33   ` Catalin Marinas
2012-01-20 10:36 ` [PATCH 5/5] ARM: pgtable: get rid of TOP_PTE() Russell King - ARM Linux
2012-01-25 11:34   ` Catalin Marinas

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=20120126200802.GA11941@n2100.arm.linux.org.uk \
    --to=linux@arm.linux.org.uk \
    --cc=linux-arm-kernel@lists.infradead.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;
as well as URLs for NNTP newsgroup(s).