linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: Nick Piggin <npiggin@suse.de>
To: Kumar Gala <galak@kernel.crashing.org>
Cc: linuxppc-dev list <linuxppc-dev@ozlabs.org>
Subject: Re: [PATCH] powerpc/mm: Lockless get_user_pages_fast()
Date: Wed, 30 Jul 2008 15:17:40 +0200	[thread overview]
Message-ID: <20080730131739.GA28814@wotan.suse.de> (raw)
In-Reply-To: <C8EC8414-A033-46FE-AFEC-8C2A6AB5B4F7@kernel.crashing.org>

On Wed, Jul 30, 2008 at 07:33:26AM -0500, Kumar Gala wrote:
> 
> On Jul 29, 2008, at 10:37 PM, Benjamin Herrenschmidt wrote:
> 
> >From: Nick Piggin <npiggin@suse.de>
> >
> >Implement lockless get_user_pages_fast for powerpc.  Page table  
> >existence
> >is guaranteed with RCU, and speculative page references are used to  
> >take a
> >reference to the pages without having a prior existence guarantee on  
> >them.
> >
> >Signed-off-by: Nick Piggin <npiggin@suse.de>
> >Signed-off-by: Dave Kleikamp <shaggy@linux.vnet.ibm.com>
> >Acked-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
> >Cc: Paul Mackerras <paulus@samba.org>
> >Cc: Hugh Dickins <hugh@veritas.com>
> >Cc: "Paul E. McKenney" <paulmck@us.ibm.com>
> >Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
> >Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
> >---
> >
> >I'm going to merge this, sending it to the list for reference, it was
> >in -mm for some time , minus some changes/fixes I did to solve  
> >conflicts
> >with the new multiple huge page sizes.
> >
> >Index: linux-work/arch/powerpc/Kconfig
> >===================================================================
> >--- linux-work.orig/arch/powerpc/Kconfig	2008-07-30  
> >13:17:06.000000000 +1000
> >+++ linux-work/arch/powerpc/Kconfig	2008-07-30 13:27:40.000000000  
> >+1000
> >@@ -42,6 +42,9 @@ config GENERIC_HARDIRQS
> >	bool
> >	default y
> >
> >+config HAVE_GET_USER_PAGES_FAST
> >+	def_bool PPC64
> >+
> >config HAVE_SETUP_PER_CPU_AREA
> >	def_bool PPC64
> 
> what's ppc64 specific here?

I didn't look how 32-bit powerpc does its TLB shootdown and page table
walking, so I don't know if it will work...

  reply	other threads:[~2008-07-30 13:17 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-07-30  3:37 [PATCH] powerpc/mm: Lockless get_user_pages_fast() Benjamin Herrenschmidt
2008-07-30  4:20 ` Benjamin Herrenschmidt
2008-07-30  5:06   ` Michael Ellerman
2008-07-30  5:08     ` Benjamin Herrenschmidt
2008-07-30  7:26       ` Nick Piggin
2008-07-30 12:33 ` Kumar Gala
2008-07-30 13:17   ` Nick Piggin [this message]
2008-07-30 13:39     ` Kumar Gala
2008-07-30 22:26   ` Benjamin Herrenschmidt
2008-07-30 22:35     ` Kumar Gala
2008-07-30 23:15       ` Kumar Gala

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=20080730131739.GA28814@wotan.suse.de \
    --to=npiggin@suse.de \
    --cc=galak@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;
as well as URLs for NNTP newsgroup(s).