From: Anton Blanchard <anton@samba.org>
To: "Aneesh Kumar K.V" <aneesh.kumar@linux.vnet.ibm.com>
Cc: benh@kernel.crashing.org, paulus@samba.org, mpe@ellerman.id.au,
linuxppc-dev@lists.ozlabs.org
Subject: Re: [PATCH 2/2] powerpc/mm/radix: Remove unnecessary ptesync
Date: Mon, 10 Apr 2017 13:11:39 +1000 [thread overview]
Message-ID: <20170410131139.7ecc926a@kryten> (raw)
In-Reply-To: <1491057708-15934-2-git-send-email-aneesh.kumar@linux.vnet.ibm.com>
On Sat, 1 Apr 2017 20:11:48 +0530
"Aneesh Kumar K.V" <aneesh.kumar@linux.vnet.ibm.com> wrote:
> For a tlbiel with pid, we need to issue tlbiel with set number
> encoded. We don't need to do ptesync for each of those. Instead we
> need one for the entire tlbiel pid operation.
>
> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
> Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Thanks Aneesh.
Acked-by: Anton Blanchard <anton@samba.org>
Anton
> ---
> arch/powerpc/mm/tlb-radix.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/arch/powerpc/mm/tlb-radix.c b/arch/powerpc/mm/tlb-radix.c
> index f3e58bd60d1a..b68b5219cf45 100644
> --- a/arch/powerpc/mm/tlb-radix.c
> +++ b/arch/powerpc/mm/tlb-radix.c
> @@ -34,10 +34,8 @@ static inline void __tlbiel_pid(unsigned long pid,
> int set, prs = 1; /* process scoped */
> r = 1; /* raidx format */
>
> - asm volatile("ptesync": : :"memory");
> asm volatile(PPC_TLBIEL(%0, %4, %3, %2, %1)
> : : "r"(rb), "i"(r), "i"(prs), "i"(ric),
> "r"(rs) : "memory");
> - asm volatile("ptesync": : :"memory");
> }
>
> /*
> @@ -47,9 +45,11 @@ static inline void _tlbiel_pid(unsigned long pid,
> unsigned long ric) {
> int set;
>
> + asm volatile("ptesync": : :"memory");
> for (set = 0; set < POWER9_TLB_SETS_RADIX ; set++) {
> __tlbiel_pid(pid, set, ric);
> }
> + asm volatile("ptesync": : :"memory");
> asm volatile(PPC_INVALIDATE_ERAT "; isync" : : :"memory");
> }
>
next prev parent reply other threads:[~2017-04-10 3:11 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-04-01 14:41 [PATCH 1/2] powerpc/mm/radix: Don't do page walk cache flush when doing full mm flush Aneesh Kumar K.V
2017-04-01 14:41 ` [PATCH 2/2] powerpc/mm/radix: Remove unnecessary ptesync Aneesh Kumar K.V
2017-04-10 3:11 ` Anton Blanchard [this message]
2017-04-10 22:49 ` [2/2] " Michael Ellerman
2017-04-10 3:16 ` [PATCH 1/2] powerpc/mm/radix: Don't do page walk cache flush when doing full mm flush Anton Blanchard
2017-04-10 22:49 ` [1/2] " Michael Ellerman
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=20170410131139.7ecc926a@kryten \
--to=anton@samba.org \
--cc=aneesh.kumar@linux.vnet.ibm.com \
--cc=benh@kernel.crashing.org \
--cc=linuxppc-dev@lists.ozlabs.org \
--cc=mpe@ellerman.id.au \
--cc=paulus@samba.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).