From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752301AbZH2SSH (ORCPT ); Sat, 29 Aug 2009 14:18:07 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752261AbZH2SSG (ORCPT ); Sat, 29 Aug 2009 14:18:06 -0400 Received: from terminus.zytor.com ([198.137.202.10]:35361 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752101AbZH2SSG (ORCPT ); Sat, 29 Aug 2009 14:18:06 -0400 Message-ID: <4A997088.60908@zytor.com> Date: Sat, 29 Aug 2009 11:16:40 -0700 From: "H. Peter Anvin" User-Agent: Thunderbird 2.0.0.21 (X11/20090320) MIME-Version: 1.0 To: Ingo Molnar CC: Xiao Guangrong , Andrew Morton , Rusty Russell , Jens Axboe , Xiao Guangrong , LKML , linux-mm@kvack.org, x86@kernel.org, Jeremy Fitzhardinge , Thomas Gleixner Subject: Re: [PATCH] x86: reuse the boot-time mappings of fixed_addresses References: <4A90AADE.20307@gmail.com> <20090829110046.GA6812@elte.hu> In-Reply-To: <20090829110046.GA6812@elte.hu> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Ingo Molnar wrote: > * Xiao Guangrong wrote: > >> From: Xiao Guangrong >> >> Some fixed_addresses items are only used when system boot, after >> boot, they are free but no way to use, like early ioremap area. >> They are wasted for us, we can reuse them after system boot. >> >> In this patch, we put them in permanent kmap's area and expand >> vmalloc's address range. In boot time, reserve them in >> permanent_kmaps_init() to avoid multiple used, after system boot, >> we unreserved them then user can use it. >> >> Signed-off-by: Xiao Guangrong >> --- >> arch/x86/include/asm/fixmap.h | 2 ++ >> arch/x86/include/asm/pgtable_32_types.h | 4 ++-- >> arch/x86/mm/init_32.c | 8 ++++++++ >> include/linux/highmem.h | 2 ++ >> mm/highmem.c | 26 ++++++++++++++++++++++++++ >> 5 files changed, 40 insertions(+), 2 deletions(-) > > I'm wondering, how much space do we save this way, on a typical > bootup on a typical PC? > Not a huge lot... a few dozen pages. -hpa