Messages in this thread Patch in this message | | | Date | Thu, 24 Apr 2014 17:36:58 +0800 | From | Dave Young <> | Subject | [PATCH] ignore ,keep for efi earlyprintk |
| |
earlyprint=efi,keep results a kernel hang after "Freeing unused kernel memory"
Actually efi earlyprintk is using __init functions such as early_ioremap etc. Thus efi earlyconsole can not be kept.
So just ignore it and give out a warning to user.
Signed-off-by: Dave Young <dyoung@redhat.com> --- arch/x86/kernel/early_printk.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-)
Index: linux-2.6/arch/x86/kernel/early_printk.c =================================================================== --- linux-2.6.orig/arch/x86/kernel/early_printk.c +++ linux-2.6/arch/x86/kernel/early_printk.c @@ -237,8 +237,11 @@ static int __init setup_early_printk(cha } #endif #ifdef CONFIG_EARLY_PRINTK_EFI - if (!strncmp(buf, "efi", 3)) - early_console_register(&early_efi_console, keep); + if (!strncmp(buf, "efi", 3)) { + if (keep) + pr_warn("Ignoring ,keep for earlyprintk=efi\n"); + early_console_register(&early_efi_console, 0); + } #endif buf++;
| |