From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail143.messagelabs.com (mail143.messagelabs.com [216.82.254.35]) by kanga.kvack.org (Postfix) with ESMTP id 19A7D8D0039 for ; Wed, 9 Mar 2011 10:19:57 -0500 (EST) Subject: Re: [RFC][PATCH 4/6] arm, mm: Convert arm to generic tlb From: Peter Zijlstra In-Reply-To: References: <20110302175928.022902359@chello.nl> <20110302180259.109909335@chello.nl> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Date: Wed, 09 Mar 2011 16:19:24 +0100 Message-ID: <1299683964.2308.3075.camel@twins> Mime-Version: 1.0 Sender: owner-linux-mm@kvack.org List-ID: To: Catalin Marinas Cc: Andrea Arcangeli , Thomas Gleixner , Rik van Riel , Ingo Molnar , akpm@linux-foundation.org, Linus Torvalds , linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, linux-mm@kvack.org, Benjamin Herrenschmidt , David Miller , Hugh Dickins , Mel Gorman , Nick Piggin , Russell King , Chris Metcalf , Martin Schwidefsky On Wed, 2011-03-09 at 15:16 +0000, Catalin Marinas wrote: > Hi Peter, >=20 > On 2 March 2011 17:59, Peter Zijlstra wrote: > > --- linux-2.6.orig/arch/arm/include/asm/tlb.h > > +++ linux-2.6/arch/arm/include/asm/tlb.h > [...] > > +__pte_free_tlb(struct mmu_gather *tlb, pgtable_t pte, unsigned long ad= dr) > > { > > pgtable_page_dtor(pte); > > - tlb_add_flush(tlb, addr); > > tlb_remove_page(tlb, pte); > > } >=20 > I think we still need a tlb_track_range() call here. On the path to > pte_free_tlb() (for example shift_arg_pages ... free_pte_range) there > doesn't seem to be any code setting the tlb->start/end range. Did I > miss anything? Patch 3 included: -#define pte_free_tlb(tlb, ptep, address) \ - do { \ - tlb->need_flush =3D 1; \ - __pte_free_tlb(tlb, ptep, address); \ +#define pte_free_tlb(tlb, ptep, address) = \ + do { = \ + tlb->need_flush =3D 1; = \ + tlb_track_range(tlb, address, pmd_addr_end(address, TASK_SI= ZE));\ + __pte_free_tlb(tlb, ptep, address); = \ } while (0) Also, I posted a new version of this series here: https://lkml.org/lkml/2011/3/7/308 -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/ Don't email: email@kvack.org