From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from gate.crashing.org (gate.crashing.org [63.228.1.57]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id D3BC2DDF78 for ; Thu, 31 Jul 2008 08:36:04 +1000 (EST) Message-Id: <64F97436-C94D-4CD7-A217-3C4356C93807@kernel.crashing.org> From: Kumar Gala To: benh@kernel.crashing.org In-Reply-To: <1217456772.11188.342.camel@pasglop> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Mime-Version: 1.0 (Apple Message framework v926) Subject: Re: [PATCH] powerpc/mm: Lockless get_user_pages_fast() Date: Wed, 30 Jul 2008 17:35:57 -0500 References: <1217389038.11188.285.camel@pasglop> <1217456772.11188.342.camel@pasglop> Cc: Nick Piggin , linuxppc-dev list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Jul 30, 2008, at 5:26 PM, Benjamin Herrenschmidt wrote: > >>> 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? > > Mostly _PAGE_SPECIAL (which I do plan to add to embedded which is why > I've been trying hard to free a PTE bit :-) and the way we synchronize > with the freeing of page tables (ppc64 uses RCU, ppc32 doesn't, we'd > have to find something to keep fast gup in sync). I think we have some code that uses RCU for page freeing. I'll dig it up and posted it. - k