From: "H. Peter Anvin" <hpa@zytor.com>
To: "Huang, Ying" <ying.huang@intel.com>
Cc: Paul Jackson <pj@sgi.com>,
mingo@elte.hu, andi@firstfloor.org, mingo@redhat.com,
tglx@linutronix.de, linux-kernel@vger.kernel.org,
yhlu.kernel@gmail.com
Subject: Re: [PATCH] x86 boot: Pass E820 memory map entries more than 128 via linked list of setup data
Date: Mon, 23 Jun 2008 22:45:53 -0700 [thread overview]
Message-ID: <48608A11.8070605@zytor.com> (raw)
In-Reply-To: <1214269774.31773.13.camel@caritas-dev.intel.com>
Huang, Ying wrote:
> On Mon, 2008-06-23 at 04:48 -0500, Paul Jackson wrote:
>> Huang wrote:
>>> 4. Current EFI memmap based code does not work properly in all
>>> situation, for example it can not works with kernel parameter:
>>> "memmap=exactmap, memmap=<xxx>, ...", "mem=<xxx>" or "noefi".
>> With "noefi" parameter, my EFI memmap based code is not supposed
>> to do anything. The "noefi" parameter asks the kernel to ignore
>> any EFI support in the firmware it is booting from.
>
> "noefi" is used to specify that the EFI runtime services should be
> disabled in kernel. But the memmap should be complete.
>
>> Could you tell me more what you mean by "does not work properly?"
>
> OK. It is OK for your code with "noefi". The remaining issues:
>
> If "memmap=exactmap memmap=<xxx>" is specified in kernel command line.
> The user defined memmap should override that from firmware. But your
> code is executed after the user defined memmap is parsed, so the memmap
> from firmware will override that from user. This does not conform the
> semantics of "memmap=exactmap ...". Same issue for "mem=<xxx>".
>
> Another issue is that the size of E820 memmap required on EFI system
> must be two times bigger than that really needed. Because at first the
> E820 memmap is filled with the entries from E820 and E820_EXT, then that
> from EFI memmap is appended.
>
Hello,
I discussed this with Ingo earlier today, and we came to the following
conclusion:
1. The EFI memmap code as a backup to the bootloader is fine.
2. Ying's memmap= objection needs to be addressed. Violating user
overrides is not appropriate.
3. It is important that we don't override the bootloader when the
bootloader really does know best. For example, kexec may want to
control exactly what memory the target kernel uses. As a result, we
need a flag somewhere to disable *any* attempts at obtaining memory
information from the environment, be it EFI, OpenFirmware or what have
you. The easiest way to do this is probably via a command-line flag,
e.g. "noauxmem".
What do you guys think?
-hpa
next prev parent reply other threads:[~2008-06-24 5:46 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-06-11 3:33 [PATCH] x86 boot: Pass E820 memory map entries more than 128 via linked list of setup data Huang, Ying
2008-06-18 11:45 ` Ingo Molnar
2008-06-23 5:54 ` Huang, Ying
2008-06-23 6:53 ` Paul Jackson
2008-06-23 7:21 ` Huang, Ying
2008-06-23 8:47 ` Paul Jackson
2008-06-23 9:14 ` Huang, Ying
2008-06-23 9:48 ` Paul Jackson
2008-06-24 1:09 ` Huang, Ying
2008-06-24 5:45 ` H. Peter Anvin [this message]
2008-06-24 7:03 ` Huang, Ying
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=48608A11.8070605@zytor.com \
--to=hpa@zytor.com \
--cc=andi@firstfloor.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@elte.hu \
--cc=mingo@redhat.com \
--cc=pj@sgi.com \
--cc=tglx@linutronix.de \
--cc=yhlu.kernel@gmail.com \
--cc=ying.huang@intel.com \
/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