From mboxrd@z Thu Jan 1 00:00:00 1970 Subject: Re: [PATCH] x86: fix PAE pmd_bad bootup warning From: Matt Mackall In-Reply-To: <1210288532.7905.89.camel@nimitz.home.sr71.net> References: <1210106579.4747.51.camel@nimitz.home.sr71.net> <20080508143453.GE12654@escobedo.amd.com> <1210258350.7905.45.camel@nimitz.home.sr71.net> <20080508151145.GG12654@escobedo.amd.com> <1210261882.7905.49.camel@nimitz.home.sr71.net> <20080508161925 <20080508200239.GJ12654@escobedo.amd.com> <1210288532.7905.89.camel@nimitz.home.sr71.net> Content-Type: text/plain Date: Wed, 14 May 2008 14:01:41 -0500 Message-Id: <1210791701.4093.29.camel@calx> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: owner-linux-mm@kvack.org Return-Path: To: Dave Hansen Cc: Hans Rosenfeld , Hugh Dickins , Nishanth Aravamudan , Ingo Molnar , Jeff Chua , Thomas Gleixner , "H. Peter Anvin" , Gabriel C , Arjan van de Ven , linux-kernel@vger.kernel.org, linux-mm@kvack.org List-ID: On Thu, 2008-05-08 at 16:15 -0700, Dave Hansen wrote: > Here's one quick stab at a solution. I figured that we already pass > that 'private' variable around. This patch just sticks that variable > *in* the mm_walk and also makes the caller fill in an 'mm' as well. > Then, we just pass the actual mm_walk around. > > Maybe we should just stick the VMA in the mm_walk as well, and have the > common code keep it up to date with the addresses currently being > walked. > > Sadly, I didn't quite get enough time to flesh this idea out very far > today, and I'll be offline for a couple of days now. But, if someone > wants to go this route, I thought this might be useful. This much looks reasonable. But the real test of course is to actually teach it about detecting huge pages efficiently. And I suspect that means tracking the current VMA all the time in the walk. Am I wrong? -- Mathematics is the supreme nostalgia of our time. -- 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/ . Don't email: email@kvack.org