From: Michael Ellerman <michael@ellerman.id.au>
To: Seth Jennings <sjenning@linux.vnet.ibm.com>
Cc: Robert Jennings <rcj@linux.vnet.ibm.com>,
linuxppc-dev@lists.ozlabs.org, Nitin Gupta <ngupta@vflare.org>,
Minchan Kim <minchan@kernel.org>
Subject: Re: CPU-local TLB flushing
Date: Tue, 19 Jun 2012 10:47:33 +1000 [thread overview]
Message-ID: <1340066853.638.7.camel@concordia> (raw)
In-Reply-To: <4FDF95C5.3090903@linux.vnet.ibm.com>
On Mon, 2012-06-18 at 15:55 -0500, Seth Jennings wrote:
> This is a continuation of a thread a few months ago:
...
>
> With local_flush_tlb_kernel_range() being a stub,
> the new function local_unmap_kernel_range() is exactly
> the same as unmap_kernel_range() since
> local_flush_tlb_kernel_range() and flush_tlb_kernel_range()
> are both stubs on ppc64.
>
> My knowledge of the ppc64 hashing tlb design is almost
> nothing, but it seems like this should work, albeit slowly
> since it would be a global flush rather than cpu-local.
>
> I was wondering if anyone could tell me why this doesn't work,
> and what needs to be done to make it work.
Hi Seth,
I don't know it that well either, but the way I think it should be
working is:
unmap_kernel_range()
-> vunmap_page_range()
-> vunmap_pud/pmd/pte_range()
-> ptep_get_and_clear() (arch/powerpc/include/asm/pgtable-ppc64.h)
-> pte_update() (arch/powerpc/include/asm/pgtable-ppc64.h)
-> hpte_need_flush()
-> flush_hash_page() (because you don't have a batch active - I assume)
-> pSeries_lpar_hpte_invalidate()
So step one would be to confirm you're getting that far, that would at
least confirm we are doing the invalidate.
cheers
prev parent reply other threads:[~2012-06-19 0:47 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-06-18 20:55 CPU-local TLB flushing Seth Jennings
2012-06-19 0:47 ` Michael Ellerman [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=1340066853.638.7.camel@concordia \
--to=michael@ellerman.id.au \
--cc=linuxppc-dev@lists.ozlabs.org \
--cc=minchan@kernel.org \
--cc=ngupta@vflare.org \
--cc=rcj@linux.vnet.ibm.com \
--cc=sjenning@linux.vnet.ibm.com \
/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).