From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <42F87E1C.2040300@yahoo.com.au> Date: Tue, 09 Aug 2005 19:57:48 +1000 From: Nick Piggin MIME-Version: 1.0 Subject: Re: [RFC][patch 0/2] mm: remove PageReserved References: <42F57FCA.9040805@yahoo.com.au> <200508090710.00637.phillips@arcor.de> <1123562392.4370.112.camel@localhost> <42F83849.9090107@yahoo.com.au> <20050809080853.A25492@flint.arm.linux.org.uk> <1123576719.3839.13.camel@laptopd505.fenrus.org> <42F877FF.9000803@yahoo.com.au> <1123580985.3839.16.camel@laptopd505.fenrus.org> In-Reply-To: <1123580985.3839.16.camel@laptopd505.fenrus.org> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: owner-linux-mm@kvack.org Return-Path: To: Arjan van de Ven Cc: Russell King , ncunningham@cyclades.com, Daniel Phillips , Linux Kernel Mailing List , Linux Memory Management , Hugh Dickins , Linus Torvalds , Andrew Morton , Andrea Arcangeli , Benjamin Herrenschmidt List-ID: Arjan van de Ven wrote: > On Tue, 2005-08-09 at 19:31 +1000, Nick Piggin wrote: > >>Arjan van de Ven wrote: >> >>>and..... can we make a general page_is_ram() function that does what it >>>says? on x86 it can go via the e820 table, other architectures can do >>>whatever they need.... >>> >> >>That would be very helpful. That should cover the remaining (ab)users >>of PageReserved. >> >>It would probably be fastest to implement this with a page flag, >>however if swsusp and ioremap are the only users then it shouldn't >>be a problem to go through slower lookups (and this would remove the >>need for the PageValidRAM flag that I had worried about earlier). > > > if you want I have implementations of this for x86, x86_64 and iirc ia64 > (not 100% sure about the later). None of these use a page flag, but use > the same information the kernel uses during bootup to find ram. > It seems like a good idea to me, if the arch guys are up for it. If you have a copy of the patch handy, sure send it over. Thanks Nick -- SUSE Labs, Novell Inc. Send instant messages to your online friends http://au.messenger.yahoo.com -- 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