2008-07-04 14:21:03

by Alexander Beregalov

[permalink] [raw]
Subject: next-0704: x86_64 panics on booting

Hi


Booting the kernel.

Kernel alive
Kernel really alive
PANIC: early exception 0e rip 10:ffffffff80604f47 error 2 cr2 ffffffffff300000

It is x86_64 SMP (opteron).


2008-07-04 14:24:38

by Ingo Molnar

[permalink] [raw]
Subject: Re: next-0704: x86_64 panics on booting


* Alexander Beregalov <[email protected]> wrote:

> Hi
>
>
> Booting the kernel.
>
> Kernel alive
> Kernel really alive
> PANIC: early exception 0e rip 10:ffffffff80604f47 error 2 cr2 ffffffffff300000
>
> It is x86_64 SMP (opteron).

does the patch below fix it?

Ingo

-------------->
commit 181b3601a1a7d2ac3ace6b23cb3204450a4f9a27
Author: Jeremy Fitzhardinge <[email protected]>
Date: Sun Jun 29 20:02:44 2008 -0700

x86: setup_arch() && early_ioremap_init()

Looks like the setup.c unification missed the early_ioremap init from
the early_ioremap unification. Unconditionally call early_ioremap_init().

needed for "x86/paravirt: groundwork for 64-bit Xen support".

Signed-off-by: Jeremy Fitzhardinge <[email protected]>
Cc: Nick Piggin <[email protected]>
Cc: Mark McLoughlin <[email protected]>
Cc: xen-devel <[email protected]>
Cc: Eduardo Habkost <[email protected]>
Cc: Vegard Nossum <[email protected]>
Cc: Stephen Tweedie <[email protected]>
Cc: Yinghai Lu <[email protected]>
Signed-off-by: Ingo Molnar <[email protected]>

diff --git a/arch/x86/kernel/setup.c b/arch/x86/kernel/setup.c
index fb318ed..caec79f 100644
--- a/arch/x86/kernel/setup.c
+++ b/arch/x86/kernel/setup.c
@@ -523,12 +523,13 @@ void __init setup_arch(char **cmdline_p)
memcpy(&boot_cpu_data, &new_cpu_data, sizeof(new_cpu_data));
pre_setup_arch_hook();
early_cpu_init();
- early_ioremap_init();
reserve_setup_data();
#else
printk(KERN_INFO "Command line: %s\n", boot_command_line);
#endif

+ early_ioremap_init();
+
ROOT_DEV = old_decode_dev(boot_params.hdr.root_dev);
screen_info = boot_params.screen_info;
edid_info = boot_params.edid_info;

2008-07-04 14:31:21

by Stephen Rothwell

[permalink] [raw]
Subject: Re: next-0704: x86_64 panics on booting

Hi Alexander,

On Fri, 4 Jul 2008 18:20:47 +0400 "Alexander Beregalov" <[email protected]> wrote:
>
> Booting the kernel.
>
> Kernel alive
> Kernel really alive
> PANIC: early exception 0e rip 10:ffffffff80604f47 error 2 cr2 ffffffffff300000
>
> It is x86_64 SMP (opteron).

Config?

--
Cheers,
Stephen Rothwell [email protected]
http://www.canb.auug.org.au/~sfr/


Attachments:
(No filename) (393.00 B)
(No filename) (197.00 B)
Download all attachments

2008-07-04 14:54:03

by Alexander Beregalov

[permalink] [raw]
Subject: Re: next-0704: x86_64 panics on booting

2008/7/4 Ingo Molnar <[email protected]>:
> does the patch below fix it?
>
> Ingo
>
> -------------->
> commit 181b3601a1a7d2ac3ace6b23cb3204450a4f9a27
> Author: Jeremy Fitzhardinge <[email protected]>
> Date: Sun Jun 29 20:02:44 2008 -0700
>
> x86: setup_arch() && early_ioremap_init()

Yes, thanks!