All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ignore ,keep for efi earlyprintk
@ 2014-04-24  9:36 Dave Young
  2014-04-24 10:45 ` Ingo Molnar
       [not found] ` <20140424093658.GA7158-je1gSBvt1Tc/CGXRbJeUwh/sF2h8X+2i0E9HWUfgJXw@public.gmane.org>
  0 siblings, 2 replies; 15+ messages in thread
From: Dave Young @ 2014-04-24  9:36 UTC (permalink / raw)
  To: matt.fleming, hpa, akpm, x86, linux-kernel

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++;

^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2014-04-30  1:12 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-04-24  9:36 [PATCH] ignore ,keep for efi earlyprintk Dave Young
2014-04-24 10:45 ` Ingo Molnar
2014-04-25  1:53   ` Dave Young
     [not found] ` <20140424093658.GA7158-je1gSBvt1Tc/CGXRbJeUwh/sF2h8X+2i0E9HWUfgJXw@public.gmane.org>
2014-04-25 11:53   ` Matt Fleming
2014-04-25 11:53     ` Matt Fleming
     [not found]     ` <20140425115345.GC26088-HNK1S37rvNbeXh+fF434Mdi2O/JbrIOy@public.gmane.org>
2014-04-26  7:28       ` Dave Young
2014-04-26  7:28         ` Dave Young
     [not found]         ` <20140426072821.GA2286-4/PLUo9XfK/1wF9wiOj0lkEOCMrvLtNR@public.gmane.org>
2014-04-29  9:45           ` Matt Fleming
2014-04-29  9:45             ` Matt Fleming
     [not found]             ` <20140429094539.GD26088-HNK1S37rvNbeXh+fF434Mdi2O/JbrIOy@public.gmane.org>
2014-04-29 10:03               ` Dave Young
2014-04-29 10:03                 ` Dave Young
2014-04-29 10:21               ` Thomas Gleixner
2014-04-29 10:21                 ` Thomas Gleixner
     [not found]                 ` <alpine.DEB.2.02.1404291217380.6261-3cz04HxQygjZikZi3RtOZ1XZhhPuCNm+@public.gmane.org>
2014-04-30  1:12                   ` Dave Young
2014-04-30  1:12                     ` Dave Young

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.