From: "H. Peter Anvin" <hpa@zytor.com>
To: Matt Fleming <matt@console-pimps.org>, Yinghai Lu <yinghai@kernel.org>
Cc: "Matt Fleming" <matt.fleming@intel.com>,
"Ingo Molnar" <mingo@redhat.com>,
"Mantas Mikulėnas" <grawity@gmail.com>,
"Anders Darander" <anders@chargestorm.se>,
linux-efi@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH -v4] x86: only load initrd above 4g on second try
Date: Thu, 04 Sep 2014 13:59:05 -0700 [thread overview]
Message-ID: <5408D299.5000300@zytor.com> (raw)
In-Reply-To: <20140904100137.GK3001@console-pimps.org>
On 09/04/2014 03:01 AM, Matt Fleming wrote:
> On Wed, 03 Sep, at 09:50:07PM, Yinghai Lu wrote:
>> Mantas found that after commit 4bf7111f5016 ("x86/efi: Support initrd
>> loaded above 4G"), the kernel freezes at the earliest possible moment
>> when trying to boot via UEFI on Asus laptop.
>>
>> Revert to old way to load initrd under 4G on first try,
>> second try will use above 4G buffer when initrd is too big
>> and does not fit under 4G.
>>
>> -v2: add print out for second try, and print out files buf address.
>> -v3: can not snprintf
>> -v4: drop address print out for files buf
>>
>> Reported-by: Mantas Mikulėnas <grawity@gmail.com>
>> Tested-by: Anders Darander <anders@chargestorm.se>
>> Signed-off-by: Yinghai Lu <yinghai@kernel.org>
>>
>> ---
>> arch/x86/boot/compressed/eboot.c | 18 +++++++++++-------
>> 1 file changed, 11 insertions(+), 7 deletions(-)
>
> Thanks, I've picked this up and expanded on the commit message because a
> lot of useful information was discussed on the mailing list that we
> should definitely include.
>
> http://git.kernel.org/cgit/linux/kernel/git/mfleming/efi.git/commit/?h=urgent&id=b524e05df6d466af2f7eea1f044369109e48e641
>
I am fine with this patch, but at the same time I do want to note that
there is an alternative to double-buffer the patch and/or (if that
applies to the buggy BIOS) round up the size of the target buffer.
-hpa
next prev parent reply other threads:[~2014-09-04 20:59 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-09-04 4:50 [PATCH -v4] x86: only load initrd above 4g on second try Yinghai Lu
[not found] ` <20140904100137.GK3001@console-pimps.org>
2014-09-04 20:59 ` H. Peter Anvin [this message]
2014-09-04 21:29 ` Matt Fleming
[not found] ` <20140904212925.GL3001-HNK1S37rvNbeXh+fF434Mdi2O/JbrIOy@public.gmane.org>
2014-09-05 1:19 ` Yinghai Lu
[not found] ` <CAE9FiQUDLoARj-Z3ipPTf2sZgGn71SxrxM+FqLE1Cyb-OEoP+A-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2014-09-05 5:47 ` Anders Darander
2014-09-05 6:38 ` Laszlo Ersek
[not found] ` <54095A5B.4030606-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2014-09-05 17:03 ` Yinghai Lu
[not found] ` <CAE9FiQV7XLwKsYWprmKAkZGGyuFeK=o_b1_ABMbEGVZzZxtp2w-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2014-09-05 19:20 ` Laszlo Ersek
[not found] ` <5408D299.5000300-YMNOUZJC4hwAvxtiuMwx3w@public.gmane.org>
2014-09-05 22:16 ` Matt Fleming
[not found] ` <20140905221616.GP3001-HNK1S37rvNbeXh+fF434Mdi2O/JbrIOy@public.gmane.org>
2014-09-06 19:05 ` Anders Darander
2014-09-06 20:09 ` Mantas Mikulėnas
2014-09-06 20:10 ` Mantas Mikulėnas
[not found] ` <CAPWNY8V6Vw0JBZ=VE_ZLZ1hiKVhrDbYyWfkLXMQtKYHZjmewRA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2014-09-08 15:58 ` Matt Fleming
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=5408D299.5000300@zytor.com \
--to=hpa@zytor.com \
--cc=anders@chargestorm.se \
--cc=grawity@gmail.com \
--cc=linux-efi@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=matt.fleming@intel.com \
--cc=matt@console-pimps.org \
--cc=mingo@redhat.com \
--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