From: Feng Tang <feng.tang@intel.com>
To: Matthew Garrett <mjg59@srcf.ucam.org>
Cc: "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"tglx@linutronix.de" <tglx@linutronix.de>
Subject: Re: [REGRESSION] EFI boot on x86 fails in .32
Date: Tue, 20 Oct 2009 12:54:02 +0800 [thread overview]
Message-ID: <20091020125402.028d66d5@feng-desktop> (raw)
In-Reply-To: <20091020030656.GA30139@srcf.ucam.org>
Hi Matthew,
Could you try the following patch? I guess the bug is related to
x86_32/64.
Thanks,
Feng
----------------------------------------------------------------
diff --git a/arch/x86/kernel/efi.c b/arch/x86/kernel/efi.c
index ad5bd98..cdcfb12 100644
--- a/arch/x86/kernel/efi.c
+++ b/arch/x86/kernel/efi.c
@@ -454,8 +454,10 @@ void __init efi_init(void)
if (add_efi_memmap)
do_add_efi_memmap();
+#ifdef CONFIG_X86_32
x86_platform.get_wallclock = efi_get_time;
x86_platform.set_wallclock = efi_set_rtc_mmss;
+#endif
/* Setup for EFI runtime service */
reboot_type = BOOT_EFI;
On Tue, 20 Oct 2009 11:06:57 +0800
Matthew Garrett <mjg59@srcf.ucam.org> wrote:
> This seems to be caused by 7bd867dfb4e0357e06a3211ab2bd0e714110def3 -
> reverting that results in a booting kernel. Can't say I understand how
> or why, but...
>
> On Tue, Oct 20, 2009 at 01:34:00AM +0100, Matthew Garrett wrote:
> > 2.6.32-rc5 (and some earlier git checkout I had) fail to boot on my
> > HP 2530p when using EFI - they boot fine with the BIOS emulation
> > instead. I get an early exception when print_efi_memmap() is
> > called, which implies that the memory map is broken somehow. Here's
> > the dmesg for a working boot:
> >
> > Initializing cgroup subsys cpuset
> > Initializing cgroup subsys cpu
> > Linux version 2.6.30.8-64.fc11.x86_64
> > (mockbuild@x86-5.fedora.phx.redhat.com) (gcc version 4.4.1 20090725
> > (Red Hat 4.4.1-2) (GCC) ) #1 SMP Fri Sep 25 04:43:32 EDT 2009
> > Command line: ro root=UUID=fd334e23-080a-449d-8993-07758e5cd581
> > rhgb quiet KERNEL supported cpus: Intel GenuineIntel AMD
> > AuthenticAMD Centaur CentaurHauls
> > BIOS-provided physical RAM map:
> > BIOS-e820: 0000000000000000 - 00000000000a0000 (usable)
> > BIOS-e820: 0000000000100000 - 0000000075a4c000 (usable)
> > BIOS-e820: 0000000075a4c000 - 0000000075a4e000 (reserved)
> > BIOS-e820: 0000000075a4e000 - 0000000076870000 (usable)
> > BIOS-e820: 0000000076870000 - 0000000076880000 (ACPI NVS)
> > BIOS-e820: 0000000076880000 - 0000000078fb1000 (usable)
> > BIOS-e820: 0000000078fb1000 - 00000000791b1000 (ACPI NVS)
> > BIOS-e820: 00000000791b1000 - 000000007a88f000 (usable)
> > BIOS-e820: 000000007a88f000 - 000000007a9cf000 (reserved)
> > BIOS-e820: 000000007a9cf000 - 000000007aacf000 (ACPI NVS)
> > BIOS-e820: 000000007aacf000 - 000000007aaff000 (ACPI data)
> > BIOS-e820: 000000007aaff000 - 000000007ab00000 (usable)
> > BIOS-e820: 00000000fed1c000 - 00000000fed20000 (reserved)
> > BIOS-e820: 00000000fffa0000 - 00000000fffa7000 (reserved)
> > EFI v2.00 by INTEL
> > ACPI=0x7aafe000 ACPI 2.0=0x7aafe014 SMBIOS=0x7a99f718
> > Kernel-defined memdesc doesn't match the one from EFI!
next prev parent reply other threads:[~2009-10-20 4:55 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-10-20 0:34 [REGRESSION] EFI boot on x86 fails in .32 Matthew Garrett
2009-10-20 3:06 ` Matthew Garrett
2009-10-20 4:54 ` Feng Tang [this message]
2009-10-27 11:39 ` [tip:x86/urgent] x86: Make EFI RTC function depend on 32bit again tip-bot for Feng Tang
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=20091020125402.028d66d5@feng-desktop \
--to=feng.tang@intel.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mjg59@srcf.ucam.org \
--cc=tglx@linutronix.de \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.