From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755067AbYAONhb (ORCPT ); Tue, 15 Jan 2008 08:37:31 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752059AbYAONhF (ORCPT ); Tue, 15 Jan 2008 08:37:05 -0500 Received: from mx3.mail.elte.hu ([157.181.1.138]:47672 "EHLO mx3.mail.elte.hu" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751862AbYAONhE (ORCPT ); Tue, 15 Jan 2008 08:37:04 -0500 Date: Tue, 15 Jan 2008 14:36:45 +0100 From: Ingo Molnar To: "Huang, Ying" Cc: venkatesh.pallipadi@intel.com, akpm@linux-foundation.org, "H. Peter Anvin" , Thomas Gleixner , Ingo Molnar , Andi Kleen , linux-kernel@vger.kernel.org Subject: Re: [PATCH -mm 0/3] i386 boot: replace boot_ioremap with enhanced bt_ioremap Message-ID: <20080115133645.GH7025@elte.hu> References: <1200375902.3505.29.camel@caritas-dev.intel.com> <20080115084417.GA16449@elte.hu> <1200390535.3505.62.camel@caritas-dev.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1200390535.3505.62.camel@caritas-dev.intel.com> User-Agent: Mutt/1.5.17 (2007-11-01) X-ELTE-VirusStatus: clean 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.3 -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 * Huang, Ying wrote: > > in latest x86.git#mm there's an early_ioremap() introduced as part > > of the PAT series - available on both 32-bit and 64-bit. Could you > > take a look at it and use that if it's OK for your purposes? > > After checking the early_ioremap() implementation in > arch/x86/kernel/setup_32.c, I found that it is a duplication of > bt_ioremap() implementation in arch/x86/mm/ioremap_32.c. Both > implementations use set_fixmap(), so they can be used only after > paging_init(). > > The early_ioremap implementation provided in this patchset works as > follow: > > - Enhances bt_ioremap, make it usable before paging_init() via a > dedicated PTE page. > - Rename bt_ioremap to early_ioremap > > So I think maybe we should replace the early_ioremap() implementation > in PAT series with that of this series. yep, agreed, that would be nice. Ingo