Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753280AbZGTKLP (ORCPT ); Mon, 20 Jul 2009 06:11:15 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753245AbZGTKLO (ORCPT ); Mon, 20 Jul 2009 06:11:14 -0400 Received: from gate.crashing.org ([63.228.1.57]:42388 "EHLO gate.crashing.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753152AbZGTKLN (ORCPT ); Mon, 20 Jul 2009 06:11:13 -0400 Subject: Re: [RFC/PATCH] mm: Pass virtual address to [__]p{te,ud,md}_free_tlb() From: Benjamin Herrenschmidt To: Nick Piggin Cc: Linux Memory Management , Linux-Arch , linux-kernel@vger.kernel.org, linuxppc-dev@ozlabs.org, Hugh Dickins In-Reply-To: <20090720081054.GH7298@wotan.suse.de> References: <20090715074952.A36C7DDDB2@ozlabs.org> <20090715135620.GD7298@wotan.suse.de> <1247709255.27937.5.camel@pasglop> <20090720081054.GH7298@wotan.suse.de> Content-Type: text/plain Date: Mon, 20 Jul 2009 20:00:41 +1000 Message-Id: <1248084041.30899.7.camel@pasglop> Mime-Version: 1.0 X-Mailer: Evolution 2.26.1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 966 Lines: 26 On Mon, 2009-07-20 at 10:10 +0200, Nick Piggin wrote: > > Maybe I don't understand your description correctly. The TLB contains > PMDs, but you say the HW still logically performs another translation > step using entries in the PMD pages? If I understand that correctly, > then generic mm does not actually care and would logically fit better > if those entries were "linux ptes". They are :-) > The pte invalidation routines > give the virtual address, which you could use to invalidate the TLB. For PTEs, yes, but not for those PMD entries. IE. I need the virtual address when destroying PMDs so that I can invalidate those "indirect" pages. PTEs are already taken care of by existing mechanisms. Cheers, Ben. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/