From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752522AbZHaI11 (ORCPT ); Mon, 31 Aug 2009 04:27:27 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752395AbZHaI10 (ORCPT ); Mon, 31 Aug 2009 04:27:26 -0400 Received: from mx2.mail.elte.hu ([157.181.151.9]:35324 "EHLO mx2.mail.elte.hu" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752359AbZHaI10 (ORCPT ); Mon, 31 Aug 2009 04:27:26 -0400 Date: Mon, 31 Aug 2009 10:26:32 +0200 From: Ingo Molnar To: "H. Peter Anvin" 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 Message-ID: <20090831082632.GB15619@elte.hu> References: <4A90AADE.20307@gmail.com> <20090829110046.GA6812@elte.hu> <4A997088.60908@zytor.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4A997088.60908@zytor.com> User-Agent: Mutt/1.5.18 (2008-05-17) X-ELTE-SpamScore: -1.5 X-ELTE-SpamLevel: X-ELTE-SpamCheck: no X-ELTE-SpamVersion: ELTE 2.0 X-ELTE-SpamCheck-Details: score=-1.5 required=5.9 tests=BAYES_00 autolearn=no SpamAssassin version=3.2.5 -1.5 BAYES_00 BODY: Bayesian spam probability is 0 to 1% [score: 0.0000] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * H. Peter Anvin wrote: > 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. I guess it's still worth doing - what do you think? Ingo