From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ingo Molnar Subject: Re: [PATCH] build fix for generic debug pagealloc Date: Wed, 8 Apr 2009 15:05:10 +0200 Message-ID: <20090408130510.GM18581@elte.hu> References: <20090402094522.b29004c8.akpm@linux-foundation.org> <20090403164450.GC3047@elte.hu> <200904032238.55438.rjw@sisk.pl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mx3.mail.elte.hu ([157.181.1.138]:34964 "EHLO mx3.mail.elte.hu" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1765315AbZDHNGO (ORCPT ); Wed, 8 Apr 2009 09:06:14 -0400 Content-Disposition: inline In-Reply-To: <200904032238.55438.rjw@sisk.pl> Sender: linux-arch-owner@vger.kernel.org List-ID: To: "Rafael J. Wysocki" Cc: Andrew Morton , Akinobu Mita , Alexander Beregalov , "linux-next@vger.kernel.org" , LKML , linux-arch@vger.kernel.org, "David S. Miller" , Benjamin Herrenschmidt , Paul Mackerras , Martin Schwidefsky , Heiko Carstens , Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" * Rafael J. Wysocki wrote: > On Friday 03 April 2009, Ingo Molnar wrote: > > > > * Andrew Morton wrote: > > > > > > +config DEBUG_PAGEALLOC > > > > + bool "Debug page memory allocations" > > > > + depends on DEBUG_KERNEL && ARCH_SUPPORTS_DEBUG_PAGEALLOC > > > > + depends on !HIBERNATION || !PPC && !SPARC > > > > + ---help--- > > > > + Unmap pages from the kernel linear mapping after free_pages(). > > > > + This results in a large slowdown, but helps to find certain types > > > > + of memory corruptions. > > > > + > > > > > > I guess this is why it wasn't discovered in my compile testing. > > > It's quite regrettable that `make allmodconfig' didn't enable the > > > feature. That's what allmodconfig is for. > > > > Hm, i _do_ remember some hibernation magic fix from Rafael, in the > > area of debugalloc. Many months ago. > > > > Rafael, is it supposed to work? If yes, i think we should unblock > > it. > > Yes, it is, at least on x86. > > ISTR using DEBUG_PAGEALLOC with hibernation quite some time ago > already. Could you please send a patch to Andrew then to remove the above dependency? Ingo