From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758158Ab0DAWAJ (ORCPT ); Thu, 1 Apr 2010 18:00:09 -0400 Received: from mail-pz0-f201.google.com ([209.85.222.201]:44161 "EHLO mail-pz0-f201.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756767Ab0DAWAG convert rfc822-to-8bit (ORCPT ); Thu, 1 Apr 2010 18:00:06 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; b=tPUCJkUsKzI8ytKirMAf72WFXcdFATF8Mh3i6JrCx9RfF1BfpSzwWYJvHxo+i5xKWj CpIKaQRjawYnzI/X659NYGkVmQWgOgu5ALegtRLaALPb3EX8Yca8Wi2g4rVep2bySkKF V/VStfZkp1y9dsfHT1BM/QxfjYMVqkERKCGOU= MIME-Version: 1.0 In-Reply-To: <20100401145448.31e56d0e.randy.dunlap@oracle.com> References: <4BB3FFE4.4010909@kernel.org> <4BB510FB.80601@kernel.org> <20100401145448.31e56d0e.randy.dunlap@oracle.com> Date: Thu, 1 Apr 2010 15:00:05 -0700 X-Google-Sender-Auth: fa9eec153801f167 Message-ID: Subject: Re: [PATCH -v2] ibft, x86: Change reserve_ibft_region() to find_ibft_region() From: Yinghai Lu To: Randy Dunlap Cc: "H. Peter Anvin" , Ingo Molnar , Thomas Gleixner , "linux-kernel@vger.kernel.org" , Pekka Enberg , Peter Jones , Konrad Rzeszutek Wilk , Jan Beulich Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Apr 1, 2010 at 2:54 PM, Randy Dunlap wrote: > On Thu, 01 Apr 2010 14:32:43 -0700 Yinghai Lu wrote: > >> >> >> So arch code could decide the way to reserve the ibft. >> >> And We should reserve ibft as early as possible, instead of BOOTMEM stage, >> in case the table is in RAM range and is not reserved by BIOS. >> >> move that just sfter find_smp_config() >> >> Also when CONFIG_NO_BOOTMEM=y, We will not have reserve_bootmem() anymorea >> >> -v2: fix typo about ibft pointed by Konrad Rzeszutek Wilk > > >> Signed-off-by: Yinghai Lu >> Cc: Pekka Enberg >> Cc: Peter Jones >> Cc: Konrad Rzeszutek Wilk >> CC: Jan Beulich >> >> --- >>  arch/x86/kernel/setup.c            |   14 ++++++++++++-- >>  drivers/firmware/iscsi_ibft_find.c |   11 ++++++++--- >>  include/linux/iscsi_ibft.h         |    8 ++++++-- >>  3 files changed, 26 insertions(+), 7 deletions(-) >> >> Index: linux-2.6/arch/x86/kernel/setup.c >> =================================================================== >> --- linux-2.6.orig/arch/x86/kernel/setup.c >> +++ linux-2.6/arch/x86/kernel/setup.c >> @@ -608,6 +608,16 @@ static int __init setup_elfcorehdr(char >>  early_param("elfcorehdr", setup_elfcorehdr); >>  #endif >> >> +static __init void reserve_ibft_region(void) >> +{ >> +     unsigned long addr, size = 0; >> + >> +     addr = find_ibft_region(&size); >> + >> +     if (size) >> +             reserve_early_overlap_ok(addr, addr + size, "ibft"); > >        where is the correction? -v1 has + if (size) + reserve_early_overlap_ok(addr, addr + size, "ifbt"); Yinghai