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 0A296B6FB6 for ; Tue, 24 May 2011 12:52:56 +1000 (EST) Subject: Re: [PATCH 2/7] powerpc/mm: 64-bit 4k: use a PMD-based virtual page table From: Benjamin Herrenschmidt To: Scott Wood In-Reply-To: <20110523183100.36c54904@schlenkerla.am.freescale.net> References: <20110518210528.GA29524@schlenkerla.am.freescale.net> <1305754435.7481.3.camel@pasglop> <20110520155719.32e51635@schlenkerla.am.freescale.net> <1305929736.7481.188.camel@pasglop> <20110523135433.557e2d63@schlenkerla.am.freescale.net> <1306183861.7481.208.camel@pasglop> <20110523183100.36c54904@schlenkerla.am.freescale.net> Content-Type: text/plain; charset="UTF-8" Date: Tue, 24 May 2011 12:52:44 +1000 Message-ID: <1306205564.7481.210.camel@pasglop> Mime-Version: 1.0 Cc: linuxppc-dev@lists.ozlabs.org List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Mon, 2011-05-23 at 18:31 -0500, Scott Wood wrote: > On Tue, 24 May 2011 06:51:01 +1000 > Benjamin Herrenschmidt wrote: > > > Is your linear mapping bolted ? If it is you may be able to cut out most > > of the save/restore stuff (SRR0,1, ...) since with a normal walk you > > won't take nested misses. > > It is bolted -- we ignore anything we can't map with 16 entries. The only > semi-realistic case I can think of where we might bump into that (and thus > want non-bolted memory), especially with more than negligible loss compared > to the size of memory, is AMP with a non-zero start address where we have > to stick with smaller pages due to alignment. Even so, 16 times the > alignment of the start of RAM doesn't seem that unreasonable a limit. The > 32-bit limit of 3 entries for lowmem is a bit more troublesome there. Ok so in this case, it might be worth doing a separate of TLB miss handlers without all the context save/restore business... would also make re-entrant CRITs and MCs easier to deal with. Cheers, Ben.