All of lore.kernel.org
 help / color / mirror / Atom feed
From: catalin.marinas@arm.com (Catalin Marinas)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATH V3] arm64: mm: Optimise tlb flush logic where we have >4K granule
Date: Fri, 9 May 2014 17:01:45 +0100	[thread overview]
Message-ID: <20140509160145.GL7950@arm.com> (raw)
In-Reply-To: <1399038540-6547-1-git-send-email-steve.capper@linaro.org>

On Fri, May 02, 2014 at 02:49:00PM +0100, Steve Capper wrote:
> The tlb maintainence functions: __cpu_flush_user_tlb_range and
> __cpu_flush_kern_tlb_range do not take into consideration the page
> granule when looping through the address range, and repeatedly flush
> tlb entries for the same page when operating with 64K pages.
> 
> This patch re-works the logic s.t. we instead advance the loop by
>  1 << (PAGE_SHIFT - 12), so avoid repeating ourselves.
> 
> Also the routines have been converted from assembler to static inline
> functions to aid with legibility and potential compiler optimisations.
> 
> The isb() has been removed from flush_tlb_kernel_range(.) as it is
> only needed when changing the execute permission of a mapping. If one
> needs to set an area of the kernel as execute/non-execute an isb()
> must be inserted after the call to flush_tlb_kernel_range.
> 
> Cc: Laura Abbott <lauraa@codeaurora.org>
> Signed-off-by: Steve Capper <steve.capper@linaro.org>
> Acked-by: Will Deacon <will.deacon@arm.com>

Applied. Thanks.

-- 
Catalin

      reply	other threads:[~2014-05-09 16:01 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-05-02 13:49 [PATH V3] arm64: mm: Optimise tlb flush logic where we have >4K granule Steve Capper
2014-05-09 16:01 ` Catalin Marinas [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=20140509160145.GL7950@arm.com \
    --to=catalin.marinas@arm.com \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.