From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755503AbYLKDpf (ORCPT ); Wed, 10 Dec 2008 22:45:35 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754412AbYLKDpZ (ORCPT ); Wed, 10 Dec 2008 22:45:25 -0500 Received: from mx1.suse.de ([195.135.220.2]:56363 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753023AbYLKDpY (ORCPT ); Wed, 10 Dec 2008 22:45:24 -0500 Date: Wed, 10 Dec 2008 19:31:05 -0800 From: Greg KH To: Yinghai Lu Cc: Zachary Amsden , Huang Ying , Jeremy Fitzhardinge , "H. Peter Anvin" , Thomas Gleixner , Ingo Molnar , Andrew Morton , "norman@thebacks.co.uk" , Linux Kernel Mailing List , Linus Torvalds , Alok Kataria , , "xl@xlsigned.net" , "dsd@gentoo.org" Subject: Re: [PATCH] Fix VMI crash on boot in 2.6.27+ kernels Message-ID: <20081211033105.GA31972@suse.de> References: <1228870222.8766.15.camel@bodhitayantram.eng.vmware.com> <86802c440812091715r775d514eh3acf9add9e24184e@mail.gmail.com> <1228953980.8766.42.camel@bodhitayantram.eng.vmware.com> <49405CB6.6010006@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <49405CB6.6010006@kernel.org> User-Agent: Mutt/1.5.16 (2007-06-09) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Dec 10, 2008 at 04:20:06PM -0800, Yinghai Lu wrote: > Zachary Amsden wrote: > > On Tue, 2008-12-09 at 17:15 -0800, Yinghai Lu wrote: > > > >> you can not move that late, > >> > >> parse_setup_data==>early_memremap==>__early_ioremap > > > > How does this look? > > > > diff --git a/arch/x86/kernel/setup.c b/arch/x86/kernel/setup.c > index 9d5674f..4c381cb 100644 > --- a/arch/x86/kernel/setup.c > +++ b/arch/x86/kernel/setup.c > @@ -794,6 +794,11 @@ void __init setup_arch(char **cmdline_p) > printk(KERN_INFO "Command line: %s\n", boot_command_line); > #endif > > +#ifdef CONFIG_VMI > + /* VMI may relocate the fixmap; do this before touching ioremap area */ > + vmi_init(); > +#endif Shouldn't the #ifdef not be needed here if the .h files are set up properly for the vmi_init prototype? Please try to keep them out of .c files wherever possible. thanks, greg k-h