From: Toshi Kani <toshi.kani@hp.com>
To: Dave Young <dyoung@redhat.com>
Cc: mjg59@srcf.ucam.org, linux-efi@vger.kernel.org,
matt@console-pimps.org, greg@kroah.com, x86@kernel.org,
kexec@lists.infradead.org, James.Bottomley@HansenPartnership.com,
horms@verge.net.au, bp@alien8.de, ebiederm@xmission.com,
hpa@zytor.com, vgoyal@redhat.com
Subject: Re: [patch 0/4 v3] kexec-tools: efi runtime support
Date: Mon, 25 Nov 2013 08:30:51 -0700 [thread overview]
Message-ID: <1385393451.1791.168.camel@misato.fc.hp.com> (raw)
In-Reply-To: <20131124031228.GA1754@dhcp-16-126.nay.redhat.com>
On Sun, 2013-11-24 at 11:12 +0800, Dave Young wrote:
> Hi, Toshi
>
> Thanks for the testing, during my own testing this weekend I found two
> issues I need to fix and improve:
> 1. print original memmap #ifdef EFI_DEBUG does not make sense, will add
> a patch to only print runtime maps we saved in case kexec.
>
> 2. move e820_reserve_setup_data late after parse early param and setup
> the runtime mapping, otherwise kdump kernel will complains about
> ioremap a normal ram region.
>
> 3. should change the phys_to_virt to ioremap in parse_efi_setup, also
> should fix the arch/x86/kernel/kdebugfs.c, move __va to ioremap as
> well, because kexec does not works for using memmap=exactmap in
> 1st kernel, bug like below:
>
> [ 0.153726] BUG: unable to handle kernel paging request at ffff880000100008
> [ 0.156666] IP: [<ffffffff817beb54>] arch_kdebugfs_init+0x11a/0x201
> [ 0.156666] PGD 7e149067 PUD 7e14a067 PMD 7e14b067 PTE 0
> [ 0.156666] Oops: 0000 [#1] PREEMPT SMP
> [ 0.156666] Modules linked in:
> [ 0.156666] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 3.12.0+ #103
> [ 0.156666] task: ffff880037032000 ti: ffff88003706a000 task.ti: ffff88003706a000
> [ 0.156666] RIP: 0010:[<ffffffff817beb54>] [<ffffffff817beb54>] arch_kdebugfs_init+0x11a/0x201
> [ 0.156666] RSP: 0000:ffff88003706be30 EFLAGS: 00010286
> [ 0.156666] RAX: ffff880037002a00 RBX: ffff880037002a00 RCX: 0000000000000b90
> [ 0.156666] RDX: 0000000000000000 RSI: ffffffff81673a10 RDI: ffff88003706be50
> [ 0.156666] RBP: ffff88003706be90 R08: ffff880037002a00 R09: ffff880037002a10
> [ 0.156666] R10: 0000000000000000 R11: ffffffff817beb2a R12: ffff8800364033e0
> [ 0.156666] R13: 0000000000100000 R14: ffff880036403000 R15: ffff880000100000
> [ 0.156666] FS: 0000000000000000(0000) GS:ffff880037400000(0000) knlGS:0000000000000000
> [ 0.156666] CS: 0010 DS: 0000 ES: 0000 CR0: 000000008005003b
> [ 0.156666] CR2: ffff880000100008 CR3: 000000007d6fb000 CR4: 00000000000006f0
> [ 0.156666] Stack:
> [ 0.156666] ffffffff8176b0b0 ffff8800364030f8 ffff8800364031f0 0000000000000000
> [ 0.156666] ffff88003706be60 ffffffff8148e41d 00000000733b54fc ffffffff817bea3a
> [ 0.156666] ffffffff81868d90 0000000000000000 0000000000000000 0000000000000000
> [ 0.156666] Call Trace:
> [ 0.156666] [<ffffffff8148e41d>] ? mutex_unlock+0x9/0xb
> [ 0.156666] [<ffffffff817bea3a>] ? topology_init+0x36/0x36
> [ 0.156666] [<ffffffff81000296>] do_one_initcall+0xae/0x158
> [ 0.156666] [<ffffffff8107750a>] ? parameq+0x1d/0x1f
> [ 0.156666] [<ffffffff81077768>] ? parse_args+0x25c/0x33a
> [ 0.156666] [<ffffffff817b8e96>] kernel_init_freeable+0x115/0x19b
> [ 0.156666] [<ffffffff817b873d>] ? do_early_param+0x88/0x88
> [ 0.156666] [<ffffffff8147bfa9>] ? rest_init+0xbd/0xbd
> [ 0.156666] [<ffffffff8147bfb2>] kernel_init+0x9/0xcc
> [ 0.156666] [<ffffffff81491d8c>] ret_from_fork+0x7c/0xb0
> [ 0.156666] [<ffffffff8147bfa9>] ? rest_init+0xbd/0xbd
> [ 0.156666] Code: ff 48 85 c0 48 89 c3 0f 84 b9 00 00 00 49 bf 00 00 00 00 00 88 ff ff 4c 89 28 8b 55 bc 48 8d 7d c0 4d 01 ef 48 c7 c6 10 3a 67 81 <41> 8b 47 08 89 43 08 41 8b 47 0c 89 43 0c 31 c0 e8 2c 50 a7 ff
> [ 0.156666] RIP [<ffffffff817beb54>] arch_kdebugfs_init+0x11a/0x201
> [ 0.156666] RSP <ffff88003706be30>
> [ 0.156666] CR2: ffff880000100008
> [ 0.156666] ---[ end trace 2c6f39ce0b3f50b3 ]---
> [ 0.156738] swapper/0 (1) used greatest stack depth: 5240 bytes left
> [ 0.160061] Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000009
> [ 0.160061]
>
>
> I think these should be all the remain issue, I will fix them in next version.
> Appreciate your testing.
HI Dave,
I will test v4 again. This time, I will test "memmap=exactmap" option
as well. I have tested the following cases before. Are there any other
cases you'd like me to test?
- kdump
- multiple fast reboots and then kdump
- old kexec and new kernel w/ noefi & acpi_rsdp option
- new kexec and old kernel w/ noefi & acpi_rsdp option
Thanks,
-Toshi
_______________________________________________
kexec mailing list
kexec@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/kexec
WARNING: multiple messages have this Message-ID (diff)
From: Toshi Kani <toshi.kani-VXdhtT5mjnY@public.gmane.org>
To: Dave Young <dyoung-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
Cc: kexec-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org,
linux-efi-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
x86-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org,
mjg59-1xO5oi07KQx4cg9Nei1l7Q@public.gmane.org,
hpa-YMNOUZJC4hwAvxtiuMwx3w@public.gmane.org,
James.Bottomley-d9PhHud1JfjCXq6kfMZ53/egYHeGw8Jk@public.gmane.org,
vgoyal-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org,
ebiederm-aS9lmoZGLiVWk0Htik3J/w@public.gmane.org,
horms-/R6kz+dDXgpPR4JQBCEnsQ@public.gmane.org,
bp-Gina5bIWoIWzQB+pC5nmwQ@public.gmane.org,
greg-U8xfFu+wG4EAvxtiuMwx3w@public.gmane.org,
matt-HNK1S37rvNbeXh+fF434Mdi2O/JbrIOy@public.gmane.org
Subject: Re: [patch 0/4 v3] kexec-tools: efi runtime support
Date: Mon, 25 Nov 2013 08:30:51 -0700 [thread overview]
Message-ID: <1385393451.1791.168.camel@misato.fc.hp.com> (raw)
In-Reply-To: <20131124031228.GA1754-je1gSBvt1TcFLmT5oZ11vB/sF2h8X+2i0E9HWUfgJXw@public.gmane.org>
On Sun, 2013-11-24 at 11:12 +0800, Dave Young wrote:
> Hi, Toshi
>
> Thanks for the testing, during my own testing this weekend I found two
> issues I need to fix and improve:
> 1. print original memmap #ifdef EFI_DEBUG does not make sense, will add
> a patch to only print runtime maps we saved in case kexec.
>
> 2. move e820_reserve_setup_data late after parse early param and setup
> the runtime mapping, otherwise kdump kernel will complains about
> ioremap a normal ram region.
>
> 3. should change the phys_to_virt to ioremap in parse_efi_setup, also
> should fix the arch/x86/kernel/kdebugfs.c, move __va to ioremap as
> well, because kexec does not works for using memmap=exactmap in
> 1st kernel, bug like below:
>
> [ 0.153726] BUG: unable to handle kernel paging request at ffff880000100008
> [ 0.156666] IP: [<ffffffff817beb54>] arch_kdebugfs_init+0x11a/0x201
> [ 0.156666] PGD 7e149067 PUD 7e14a067 PMD 7e14b067 PTE 0
> [ 0.156666] Oops: 0000 [#1] PREEMPT SMP
> [ 0.156666] Modules linked in:
> [ 0.156666] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 3.12.0+ #103
> [ 0.156666] task: ffff880037032000 ti: ffff88003706a000 task.ti: ffff88003706a000
> [ 0.156666] RIP: 0010:[<ffffffff817beb54>] [<ffffffff817beb54>] arch_kdebugfs_init+0x11a/0x201
> [ 0.156666] RSP: 0000:ffff88003706be30 EFLAGS: 00010286
> [ 0.156666] RAX: ffff880037002a00 RBX: ffff880037002a00 RCX: 0000000000000b90
> [ 0.156666] RDX: 0000000000000000 RSI: ffffffff81673a10 RDI: ffff88003706be50
> [ 0.156666] RBP: ffff88003706be90 R08: ffff880037002a00 R09: ffff880037002a10
> [ 0.156666] R10: 0000000000000000 R11: ffffffff817beb2a R12: ffff8800364033e0
> [ 0.156666] R13: 0000000000100000 R14: ffff880036403000 R15: ffff880000100000
> [ 0.156666] FS: 0000000000000000(0000) GS:ffff880037400000(0000) knlGS:0000000000000000
> [ 0.156666] CS: 0010 DS: 0000 ES: 0000 CR0: 000000008005003b
> [ 0.156666] CR2: ffff880000100008 CR3: 000000007d6fb000 CR4: 00000000000006f0
> [ 0.156666] Stack:
> [ 0.156666] ffffffff8176b0b0 ffff8800364030f8 ffff8800364031f0 0000000000000000
> [ 0.156666] ffff88003706be60 ffffffff8148e41d 00000000733b54fc ffffffff817bea3a
> [ 0.156666] ffffffff81868d90 0000000000000000 0000000000000000 0000000000000000
> [ 0.156666] Call Trace:
> [ 0.156666] [<ffffffff8148e41d>] ? mutex_unlock+0x9/0xb
> [ 0.156666] [<ffffffff817bea3a>] ? topology_init+0x36/0x36
> [ 0.156666] [<ffffffff81000296>] do_one_initcall+0xae/0x158
> [ 0.156666] [<ffffffff8107750a>] ? parameq+0x1d/0x1f
> [ 0.156666] [<ffffffff81077768>] ? parse_args+0x25c/0x33a
> [ 0.156666] [<ffffffff817b8e96>] kernel_init_freeable+0x115/0x19b
> [ 0.156666] [<ffffffff817b873d>] ? do_early_param+0x88/0x88
> [ 0.156666] [<ffffffff8147bfa9>] ? rest_init+0xbd/0xbd
> [ 0.156666] [<ffffffff8147bfb2>] kernel_init+0x9/0xcc
> [ 0.156666] [<ffffffff81491d8c>] ret_from_fork+0x7c/0xb0
> [ 0.156666] [<ffffffff8147bfa9>] ? rest_init+0xbd/0xbd
> [ 0.156666] Code: ff 48 85 c0 48 89 c3 0f 84 b9 00 00 00 49 bf 00 00 00 00 00 88 ff ff 4c 89 28 8b 55 bc 48 8d 7d c0 4d 01 ef 48 c7 c6 10 3a 67 81 <41> 8b 47 08 89 43 08 41 8b 47 0c 89 43 0c 31 c0 e8 2c 50 a7 ff
> [ 0.156666] RIP [<ffffffff817beb54>] arch_kdebugfs_init+0x11a/0x201
> [ 0.156666] RSP <ffff88003706be30>
> [ 0.156666] CR2: ffff880000100008
> [ 0.156666] ---[ end trace 2c6f39ce0b3f50b3 ]---
> [ 0.156738] swapper/0 (1) used greatest stack depth: 5240 bytes left
> [ 0.160061] Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000009
> [ 0.160061]
>
>
> I think these should be all the remain issue, I will fix them in next version.
> Appreciate your testing.
HI Dave,
I will test v4 again. This time, I will test "memmap=exactmap" option
as well. I have tested the following cases before. Are there any other
cases you'd like me to test?
- kdump
- multiple fast reboots and then kdump
- old kexec and new kernel w/ noefi & acpi_rsdp option
- new kexec and old kernel w/ noefi & acpi_rsdp option
Thanks,
-Toshi
next prev parent reply other threads:[~2013-11-25 15:36 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-11-21 6:40 [patch 0/4 v3] kexec-tools: efi runtime support dyoung
2013-11-21 6:40 ` dyoung-H+wXaHxf7aLQT0dZR+AlfA
2013-11-21 6:40 ` [patch 1/4 v3] build fix: include x86-linux.h in x86-linux-setup.h dyoung
2013-11-21 6:40 ` dyoung-H+wXaHxf7aLQT0dZR+AlfA
2013-11-21 6:40 ` [patch 2/4 v3] Add function get_bootparam dyoung
2013-11-21 6:40 ` dyoung-H+wXaHxf7aLQT0dZR+AlfA
2013-11-21 6:40 ` [patch 3/4 v3] Add efi_info in x86 setup header dyoung
2013-11-21 6:40 ` dyoung-H+wXaHxf7aLQT0dZR+AlfA
2013-11-21 6:40 ` [patch 4/4 v3] Passing efi related data via setup_data dyoung
2013-11-21 6:40 ` dyoung-H+wXaHxf7aLQT0dZR+AlfA
2013-11-21 6:47 ` [patch 0/4 v3] kexec-tools: efi runtime support Dave Young
2013-11-21 6:47 ` Dave Young
2013-11-22 22:30 ` Toshi Kani
2013-11-22 22:30 ` Toshi Kani
2013-11-24 3:12 ` Dave Young
2013-11-24 3:12 ` Dave Young
2013-11-25 15:30 ` Toshi Kani [this message]
2013-11-25 15:30 ` Toshi Kani
2013-11-26 6:11 ` Dave Young
2013-11-26 6:11 ` Dave Young
2013-11-26 15:59 ` Toshi Kani
2013-11-26 15:59 ` Toshi Kani
2013-11-27 9:29 ` Dave Young
2013-11-27 9:29 ` Dave Young
2013-11-27 11:56 ` Borislav Petkov
2013-11-27 11:56 ` Borislav Petkov
2013-11-28 2:13 ` Dave Young
2013-11-28 2:13 ` Dave Young
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=1385393451.1791.168.camel@misato.fc.hp.com \
--to=toshi.kani@hp.com \
--cc=James.Bottomley@HansenPartnership.com \
--cc=bp@alien8.de \
--cc=dyoung@redhat.com \
--cc=ebiederm@xmission.com \
--cc=greg@kroah.com \
--cc=horms@verge.net.au \
--cc=hpa@zytor.com \
--cc=kexec@lists.infradead.org \
--cc=linux-efi@vger.kernel.org \
--cc=matt@console-pimps.org \
--cc=mjg59@srcf.ucam.org \
--cc=vgoyal@redhat.com \
--cc=x86@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 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.