From: Randy Dunlap <randy.dunlap@oracle.com>
To: Yinghai Lu <yinghai@kernel.org>
Cc: "H. Peter Anvin" <hpa@zytor.com>, Ingo Molnar <mingo@elte.hu>,
Thomas Gleixner <tglx@linutronix.de>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
Pekka Enberg <penberg@cs.helsinki.fi>,
Peter Jones <pjones@redhat.com>,
Konrad Rzeszutek Wilk <konrad@kernel.org>,
Jan Beulich <jbeulich@novell.com>
Subject: Re: [PATCH -v2] ibft, x86: Change reserve_ibft_region() to find_ibft_region()
Date: Thu, 1 Apr 2010 15:03:26 -0700 [thread overview]
Message-ID: <20100401150326.4b068c09.randy.dunlap@oracle.com> (raw)
In-Reply-To: <n2n86802c441004011500z441e91d8nc4453d6e85c82d5@mail.gmail.com>
On Thu, 1 Apr 2010 15:00:05 -0700 Yinghai Lu wrote:
> On Thu, Apr 1, 2010 at 2:54 PM, Randy Dunlap <randy.dunlap@oracle.com> 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 <konrad@darnok.org>
> >
> >
> >> Signed-off-by: Yinghai Lu <yinghai@kernel.org>
> >> Cc: Pekka Enberg <penberg@cs.helsinki.fi>
> >> Cc: Peter Jones <pjones@redhat.com>
> >> Cc: Konrad Rzeszutek Wilk <konrad@kernel.org>
> >> CC: Jan Beulich <jbeulich@novell.com>
> >>
> >> ---
> >> 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");
Thanks. My eyes are blurry. ;)
---
~Randy
next prev parent reply other threads:[~2010-04-01 22:06 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-04-01 2:07 [PATCH] " Yinghai Lu
2010-04-01 20:12 ` Konrad Rzeszutek Wilk
2010-04-01 20:59 ` Yinghai Lu
2010-04-01 21:32 ` [PATCH -v2] " Yinghai Lu
2010-04-01 21:54 ` Randy Dunlap
2010-04-01 22:00 ` Yinghai Lu
2010-04-01 22:03 ` Randy Dunlap [this message]
2010-04-01 23:51 ` [tip:x86/urgent] " tip-bot for Yinghai Lu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20100401150326.4b068c09.randy.dunlap@oracle.com \
--to=randy.dunlap@oracle.com \
--cc=hpa@zytor.com \
--cc=jbeulich@novell.com \
--cc=konrad@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@elte.hu \
--cc=penberg@cs.helsinki.fi \
--cc=pjones@redhat.com \
--cc=tglx@linutronix.de \
--cc=yinghai@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome