* [RFC PATCH] Add an earlyprintk debug console
@ 2009-11-05 12:35 Catalin Marinas
2009-11-05 13:43 ` Sascha Hauer
` (4 more replies)
0 siblings, 5 replies; 9+ messages in thread
From: Catalin Marinas @ 2009-11-05 12:35 UTC (permalink / raw)
To: linux-arm-kernel
This patch allows an earlyprintk console if CONFIG_DEBUG_LL is enabled,
using the printch asm function.
The patch is based on the original work by Sascha Hauer.
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Cc: Sascha Hauer <s.hauer@pengutronix.de>
Cc: Uwe Kleine-K?nig <u.kleine-koenig@pengutronix.de>
---
The first variant of this patch was posted earlier this year -
http://thread.gmane.org/gmane.linux.ports.arm.kernel/52478 - and there
were a few comments but no follow-up patch. I implemented those
comments and I think we should merge this (it's much easier to pass
earlyprintk on the kernel command line than hacking the printk code to
do a printascii).
arch/arm/Kconfig.debug | 8 ++++++
arch/arm/kernel/Makefile | 1 +
arch/arm/kernel/early_printk.c | 57 ++++++++++++++++++++++++++++++++++++++++
3 files changed, 66 insertions(+), 0 deletions(-)
create mode 100644 arch/arm/kernel/early_printk.c
diff --git a/arch/arm/Kconfig.debug b/arch/arm/Kconfig.debug
index 1a6f70e..feb7b11 100644
--- a/arch/arm/Kconfig.debug
+++ b/arch/arm/Kconfig.debug
@@ -71,6 +71,14 @@ config DEBUG_LL
in the kernel. This is helpful if you are debugging code that
executes before the console is initialized.
+config EARLY_PRINTK
+ bool "Early printk"
+ depends on DEBUG_LL
+ help
+ Say Y here if you want to have an early console using the
+ kernel low-level debugging functions. Add earlyprintk to your
+ kernel parameters to enable this console.
+
config DEBUG_ICEDCC
bool "Kernel low-level debugging via EmbeddedICE DCC channel"
depends on DEBUG_LL
diff --git a/arch/arm/kernel/Makefile b/arch/arm/kernel/Makefile
index 79087dd..d0e40b7 100644
--- a/arch/arm/kernel/Makefile
+++ b/arch/arm/kernel/Makefile
@@ -52,5 +52,6 @@ endif
head-y := head$(MMUEXT).o
obj-$(CONFIG_DEBUG_LL) += debug.o
+obj-$(CONFIG_EARLY_PRINTK) += early_printk.o
extra-y := $(head-y) init_task.o vmlinux.lds
diff --git a/arch/arm/kernel/early_printk.c b/arch/arm/kernel/early_printk.c
new file mode 100644
index 0000000..85aa2b2
--- /dev/null
+++ b/arch/arm/kernel/early_printk.c
@@ -0,0 +1,57 @@
+/*
+ * linux/arch/arm/kernel/early_printk.c
+ *
+ * Copyright (C) 2009 Sascha Hauer <s.hauer@pengutronix.de>
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation.
+ */
+
+#include <linux/kernel.h>
+#include <linux/console.h>
+#include <linux/init.h>
+
+extern void printch(int);
+
+static void early_write(const char *s, unsigned n)
+{
+ while (n-- > 0) {
+ if (*s == '\n')
+ printch('\r');
+ printch(*s);
+ s++;
+ }
+}
+
+static void early_console_write(struct console *con, const char *s, unsigned n)
+{
+ early_write(s, n);
+}
+
+static struct console early_console = {
+ .name = "earlycon",
+ .write = early_console_write,
+ .flags = CON_PRINTBUFFER | CON_BOOT,
+ .index = -1,
+};
+
+asmlinkage void early_printk(const char *fmt, ...)
+{
+ char buf[512];
+ int n;
+ va_list ap;
+
+ va_start(ap, fmt);
+ n = vscnprintf(buf, sizeof(buf), fmt, ap);
+ early_write(buf, n);
+ va_end(ap);
+}
+
+static int __init setup_early_printk(char *buf)
+{
+ register_console(&early_console);
+ return 0;
+}
+
+early_param("earlyprintk", setup_early_printk);
^ permalink raw reply related [flat|nested] 9+ messages in thread
* [RFC PATCH] Add an earlyprintk debug console
2009-11-05 12:35 [RFC PATCH] Add an earlyprintk debug console Catalin Marinas
@ 2009-11-05 13:43 ` Sascha Hauer
2009-11-05 13:55 ` Pandita, Vikram
` (3 subsequent siblings)
4 siblings, 0 replies; 9+ messages in thread
From: Sascha Hauer @ 2009-11-05 13:43 UTC (permalink / raw)
To: linux-arm-kernel
On Thu, Nov 05, 2009 at 12:35:12PM +0000, Catalin Marinas wrote:
> This patch allows an earlyprintk console if CONFIG_DEBUG_LL is enabled,
> using the printch asm function.
>
> The patch is based on the original work by Sascha Hauer.
>
> Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
> Cc: Sascha Hauer <s.hauer@pengutronix.de>
> Cc: Uwe Kleine-K?nig <u.kleine-koenig@pengutronix.de>
> ---
>
> The first variant of this patch was posted earlier this year -
> http://thread.gmane.org/gmane.linux.ports.arm.kernel/52478 - and there
> were a few comments but no follow-up patch. I implemented those
> comments and I think we should merge this (it's much easier to pass
> earlyprintk on the kernel command line than hacking the printk code to
> do a printascii).
Nice :)
Sascha
--
Pengutronix e.K. | |
Industrial Linux Solutions | http://www.pengutronix.de/ |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
^ permalink raw reply [flat|nested] 9+ messages in thread
* [RFC PATCH] Add an earlyprintk debug console
2009-11-05 12:35 [RFC PATCH] Add an earlyprintk debug console Catalin Marinas
2009-11-05 13:43 ` Sascha Hauer
@ 2009-11-05 13:55 ` Pandita, Vikram
2009-11-05 18:17 ` Uwe Kleine-König
2009-11-05 18:15 ` Uwe Kleine-König
` (2 subsequent siblings)
4 siblings, 1 reply; 9+ messages in thread
From: Pandita, Vikram @ 2009-11-05 13:55 UTC (permalink / raw)
To: linux-arm-kernel
>-----Original Message-----
From: linux-arm-kernel-bounces@lists.infradead.org [mailto:linux-arm-kernel-
>bounces at lists.infradead.org] On Behalf Of Catalin Marinas
>Sent: Thursday, November 05, 2009 4:35 AM
>To: linux-arm-kernel at lists.infradead.org
>Cc: Sascha Hauer; Uwe Kleine-K?nig
>Subject: [RFC PATCH] Add an earlyprintk debug console
>
>This patch allows an earlyprintk console if CONFIG_DEBUG_LL is enabled,
>using the printch asm function.
>
>The patch is based on the original work by Sascha Hauer.
Nice work...
Linux-omap has been using for couple of years this hackery, which finally has a solution now:
diff --git a/kernel/printk.c b/kernel/printk.c
index f38b07f..1def076 100644
--- a/kernel/printk.c
+++ b/kernel/printk.c
@@ -36,6 +36,10 @@
+#ifdef CONFIG_DEBUG_LL
+ printascii(printk_buf);
+#endif
p = printk_buf;
>
>Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
>Cc: Sascha Hauer <s.hauer@pengutronix.de>
>Cc: Uwe Kleine-K?nig <u.kleine-koenig@pengutronix.de>
>---
^ permalink raw reply related [flat|nested] 9+ messages in thread
* [RFC PATCH] Add an earlyprintk debug console
2009-11-05 12:35 [RFC PATCH] Add an earlyprintk debug console Catalin Marinas
2009-11-05 13:43 ` Sascha Hauer
2009-11-05 13:55 ` Pandita, Vikram
@ 2009-11-05 18:15 ` Uwe Kleine-König
2009-11-06 12:22 ` Catalin Marinas
2009-11-05 20:36 ` Kristoffer Ericson
2009-11-10 7:56 ` Pavel Machek
4 siblings, 1 reply; 9+ messages in thread
From: Uwe Kleine-König @ 2009-11-05 18:15 UTC (permalink / raw)
To: linux-arm-kernel
Hello Catalin,
On Thu, Nov 05, 2009 at 12:35:12PM +0000, Catalin Marinas wrote:
> This patch allows an earlyprintk console if CONFIG_DEBUG_LL is enabled,
> using the printch asm function.
>
> The patch is based on the original work by Sascha Hauer.
>
> Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
> Cc: Sascha Hauer <s.hauer@pengutronix.de>
> Cc: Uwe Kleine-K?nig <u.kleine-koenig@pengutronix.de>
> ---
>
> The first variant of this patch was posted earlier this year -
> http://thread.gmane.org/gmane.linux.ports.arm.kernel/52478 - and there
> were a few comments but no follow-up patch. I implemented those
> comments and I think we should merge this (it's much easier to pass
> earlyprintk on the kernel command line than hacking the printk code to
> do a printascii).
Great that you pick that up!
> arch/arm/Kconfig.debug | 8 ++++++
> arch/arm/kernel/Makefile | 1 +
> arch/arm/kernel/early_printk.c | 57 ++++++++++++++++++++++++++++++++++++++++
> 3 files changed, 66 insertions(+), 0 deletions(-)
> create mode 100644 arch/arm/kernel/early_printk.c
>
> diff --git a/arch/arm/Kconfig.debug b/arch/arm/Kconfig.debug
> index 1a6f70e..feb7b11 100644
> --- a/arch/arm/Kconfig.debug
> +++ b/arch/arm/Kconfig.debug
> @@ -71,6 +71,14 @@ config DEBUG_LL
> in the kernel. This is helpful if you are debugging code that
> executes before the console is initialized.
>
> +config EARLY_PRINTK
> + bool "Early printk"
> + depends on DEBUG_LL
> + help
> + Say Y here if you want to have an early console using the
> + kernel low-level debugging functions. Add earlyprintk to your
> + kernel parameters to enable this console.
> +
> config DEBUG_ICEDCC
> bool "Kernel low-level debugging via EmbeddedICE DCC channel"
> depends on DEBUG_LL
> diff --git a/arch/arm/kernel/Makefile b/arch/arm/kernel/Makefile
> index 79087dd..d0e40b7 100644
> --- a/arch/arm/kernel/Makefile
> +++ b/arch/arm/kernel/Makefile
> @@ -52,5 +52,6 @@ endif
>
> head-y := head$(MMUEXT).o
> obj-$(CONFIG_DEBUG_LL) += debug.o
> +obj-$(CONFIG_EARLY_PRINTK) += early_printk.o
>
> extra-y := $(head-y) init_task.o vmlinux.lds
> diff --git a/arch/arm/kernel/early_printk.c b/arch/arm/kernel/early_printk.c
> new file mode 100644
> index 0000000..85aa2b2
> --- /dev/null
> +++ b/arch/arm/kernel/early_printk.c
> @@ -0,0 +1,57 @@
> +/*
> + * linux/arch/arm/kernel/early_printk.c
> + *
> + * Copyright (C) 2009 Sascha Hauer <s.hauer@pengutronix.de>
<nitpick>
remove one space before "linux" and "Copyright"
</nitpick>
> + *
> + * This program is free software; you can redistribute it and/or modify
> + * it under the terms of the GNU General Public License version 2 as
> + * published by the Free Software Foundation.
> + */
> +
> +#include <linux/kernel.h>
> +#include <linux/console.h>
> +#include <linux/init.h>
> +
> +extern void printch(int);
> +
> +static void early_write(const char *s, unsigned n)
> +{
> + while (n-- > 0) {
> + if (*s == '\n')
> + printch('\r');
> + printch(*s);
> + s++;
> + }
> +}
Can you better use uart_console_write here? (If yes, don't forget to
select CONFIG_SERIAL_CORE.)
Best regards
Uwe
--
Pengutronix e.K. | Uwe Kleine-K?nig |
Industrial Linux Solutions | http://www.pengutronix.de/ |
^ permalink raw reply [flat|nested] 9+ messages in thread
* [RFC PATCH] Add an earlyprintk debug console
2009-11-05 13:55 ` Pandita, Vikram
@ 2009-11-05 18:17 ` Uwe Kleine-König
0 siblings, 0 replies; 9+ messages in thread
From: Uwe Kleine-König @ 2009-11-05 18:17 UTC (permalink / raw)
To: linux-arm-kernel
Hello,
On Thu, Nov 05, 2009 at 07:25:45PM +0530, Pandita, Vikram wrote:
>
> >-----Original Message-----
> >From: linux-arm-kernel-bounces at lists.infradead.org [mailto:linux-arm-kernel-
> >bounces at lists.infradead.org] On Behalf Of Catalin Marinas
> >Sent: Thursday, November 05, 2009 4:35 AM
> >To: linux-arm-kernel at lists.infradead.org
> >Cc: Sascha Hauer; Uwe Kleine-K?nig
> >Subject: [RFC PATCH] Add an earlyprintk debug console
> >
> >This patch allows an earlyprintk console if CONFIG_DEBUG_LL is enabled,
> >using the printch asm function.
> >
> >The patch is based on the original work by Sascha Hauer.
>
> Nice work...
> Linux-omap has been using for couple of years this hackery, which finally has a solution now:
>
> diff --git a/kernel/printk.c b/kernel/printk.c
> index f38b07f..1def076 100644
> --- a/kernel/printk.c
> +++ b/kernel/printk.c
> @@ -36,6 +36,10 @@
>
> +#ifdef CONFIG_DEBUG_LL
> + printascii(printk_buf);
> +#endif
>
> p = printk_buf;
I guess this won't be accepted, as kernel/printk.c is generic code,
CONFIG_DEBUG_LL is ARM specific. (And IIRC you need to declare
printascii first.)
Best regards
Uwe
--
Pengutronix e.K. | Uwe Kleine-K?nig |
Industrial Linux Solutions | http://www.pengutronix.de/ |
^ permalink raw reply [flat|nested] 9+ messages in thread
* [RFC PATCH] Add an earlyprintk debug console
2009-11-05 12:35 [RFC PATCH] Add an earlyprintk debug console Catalin Marinas
` (2 preceding siblings ...)
2009-11-05 18:15 ` Uwe Kleine-König
@ 2009-11-05 20:36 ` Kristoffer Ericson
2009-11-10 7:56 ` Pavel Machek
4 siblings, 0 replies; 9+ messages in thread
From: Kristoffer Ericson @ 2009-11-05 20:36 UTC (permalink / raw)
To: linux-arm-kernel
On Thu, 05 Nov 2009 12:35:12 +0000
Catalin Marinas <catalin.marinas@arm.com> wrote:
> This patch allows an earlyprintk console if CONFIG_DEBUG_LL is enabled,
> using the printch asm function.
>
> The patch is based on the original work by Sascha Hauer.
>
> Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
> Cc: Sascha Hauer <s.hauer@pengutronix.de>
> Cc: Uwe Kleine-K?nig <u.kleine-koenig@pengutronix.de>
> ---
Finally :) Hate having to hacking in printascii everytime I want debuginfo.
>
> The first variant of this patch was posted earlier this year -
> http://thread.gmane.org/gmane.linux.ports.arm.kernel/52478 - and there
> were a few comments but no follow-up patch. I implemented those
> comments and I think we should merge this (it's much easier to pass
> earlyprintk on the kernel command line than hacking the printk code to
> do a printascii).
>
>
> arch/arm/Kconfig.debug | 8 ++++++
> arch/arm/kernel/Makefile | 1 +
> arch/arm/kernel/early_printk.c | 57 ++++++++++++++++++++++++++++++++++++++++
> 3 files changed, 66 insertions(+), 0 deletions(-)
> create mode 100644 arch/arm/kernel/early_printk.c
>
> diff --git a/arch/arm/Kconfig.debug b/arch/arm/Kconfig.debug
> index 1a6f70e..feb7b11 100644
> --- a/arch/arm/Kconfig.debug
> +++ b/arch/arm/Kconfig.debug
> @@ -71,6 +71,14 @@ config DEBUG_LL
> in the kernel. This is helpful if you are debugging code that
> executes before the console is initialized.
>
> +config EARLY_PRINTK
> + bool "Early printk"
> + depends on DEBUG_LL
> + help
> + Say Y here if you want to have an early console using the
> + kernel low-level debugging functions. Add earlyprintk to your
> + kernel parameters to enable this console.
> +
> config DEBUG_ICEDCC
> bool "Kernel low-level debugging via EmbeddedICE DCC channel"
> depends on DEBUG_LL
> diff --git a/arch/arm/kernel/Makefile b/arch/arm/kernel/Makefile
> index 79087dd..d0e40b7 100644
> --- a/arch/arm/kernel/Makefile
> +++ b/arch/arm/kernel/Makefile
> @@ -52,5 +52,6 @@ endif
>
> head-y := head$(MMUEXT).o
> obj-$(CONFIG_DEBUG_LL) += debug.o
> +obj-$(CONFIG_EARLY_PRINTK) += early_printk.o
>
> extra-y := $(head-y) init_task.o vmlinux.lds
> diff --git a/arch/arm/kernel/early_printk.c b/arch/arm/kernel/early_printk.c
> new file mode 100644
> index 0000000..85aa2b2
> --- /dev/null
> +++ b/arch/arm/kernel/early_printk.c
> @@ -0,0 +1,57 @@
> +/*
> + * linux/arch/arm/kernel/early_printk.c
> + *
> + * Copyright (C) 2009 Sascha Hauer <s.hauer@pengutronix.de>
> + *
> + * This program is free software; you can redistribute it and/or modify
> + * it under the terms of the GNU General Public License version 2 as
> + * published by the Free Software Foundation.
> + */
> +
> +#include <linux/kernel.h>
> +#include <linux/console.h>
> +#include <linux/init.h>
> +
> +extern void printch(int);
> +
> +static void early_write(const char *s, unsigned n)
> +{
> + while (n-- > 0) {
> + if (*s == '\n')
> + printch('\r');
> + printch(*s);
> + s++;
> + }
> +}
> +
> +static void early_console_write(struct console *con, const char *s, unsigned n)
> +{
> + early_write(s, n);
> +}
> +
> +static struct console early_console = {
> + .name = "earlycon",
> + .write = early_console_write,
> + .flags = CON_PRINTBUFFER | CON_BOOT,
> + .index = -1,
> +};
> +
> +asmlinkage void early_printk(const char *fmt, ...)
> +{
> + char buf[512];
> + int n;
> + va_list ap;
> +
> + va_start(ap, fmt);
> + n = vscnprintf(buf, sizeof(buf), fmt, ap);
> + early_write(buf, n);
> + va_end(ap);
> +}
> +
> +static int __init setup_early_printk(char *buf)
> +{
> + register_console(&early_console);
> + return 0;
> +}
> +
> +early_param("earlyprintk", setup_early_printk);
>
>
> _______________________________________________
> linux-arm-kernel mailing list
> linux-arm-kernel at lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
--
Kristoffer Ericson <kristoffer.ericson@gmail.com>
^ permalink raw reply [flat|nested] 9+ messages in thread
* [RFC PATCH] Add an earlyprintk debug console
2009-11-05 18:15 ` Uwe Kleine-König
@ 2009-11-06 12:22 ` Catalin Marinas
2009-11-07 22:05 ` Uwe Kleine-König
0 siblings, 1 reply; 9+ messages in thread
From: Catalin Marinas @ 2009-11-06 12:22 UTC (permalink / raw)
To: linux-arm-kernel
Hi Uwe,
On Thu, 2009-11-05 at 18:15 +0000, Uwe Kleine-K?nig wrote:
> On Thu, Nov 05, 2009 at 12:35:12PM +0000, Catalin Marinas wrote:
> > diff --git a/arch/arm/kernel/early_printk.c b/arch/arm/kernel/early_printk.c
> > new file mode 100644
> > index 0000000..85aa2b2
> > --- /dev/null
> > +++ b/arch/arm/kernel/early_printk.c
> > @@ -0,0 +1,57 @@
> > +/*
> > + * linux/arch/arm/kernel/early_printk.c
> > + *
> > + * Copyright (C) 2009 Sascha Hauer <s.hauer@pengutronix.de>
>
> <nitpick>
> remove one space before "linux" and "Copyright"
> </nitpick>
That's how many other files with Russell's copyright were written (e.g.
drivers/serial/serial_core.c, mmu.c etc.), so we just follow the
tradition :-).
> > +static void early_write(const char *s, unsigned n)
> > +{
> > + while (n-- > 0) {
> > + if (*s == '\n')
> > + printch('\r');
> > + printch(*s);
> > + s++;
> > + }
> > +}
>
> Can you better use uart_console_write here? (If yes, don't forget to
> select CONFIG_SERIAL_CORE.)
This early console should work with ICE DCC as well, so adding the
uart_* calls may be a bit confusing (plus one more indirection of calls
to drop the first argument passed to printch by uart_console_write). The
x86 variant doesn't do this either.
--
Catalin
^ permalink raw reply [flat|nested] 9+ messages in thread
* [RFC PATCH] Add an earlyprintk debug console
2009-11-06 12:22 ` Catalin Marinas
@ 2009-11-07 22:05 ` Uwe Kleine-König
0 siblings, 0 replies; 9+ messages in thread
From: Uwe Kleine-König @ 2009-11-07 22:05 UTC (permalink / raw)
To: linux-arm-kernel
Hello,
On Fri, Nov 06, 2009 at 12:22:10PM +0000, Catalin Marinas wrote:
> On Thu, 2009-11-05 at 18:15 +0000, Uwe Kleine-K?nig wrote:
> > On Thu, Nov 05, 2009 at 12:35:12PM +0000, Catalin Marinas wrote:
> > > diff --git a/arch/arm/kernel/early_printk.c b/arch/arm/kernel/early_printk.c
> > > new file mode 100644
> > > index 0000000..85aa2b2
> > > --- /dev/null
> > > +++ b/arch/arm/kernel/early_printk.c
> > > @@ -0,0 +1,57 @@
> > > +/*
> > > + * linux/arch/arm/kernel/early_printk.c
> > > + *
> > > + * Copyright (C) 2009 Sascha Hauer <s.hauer@pengutronix.de>
> >
> > <nitpick>
> > remove one space before "linux" and "Copyright"
> > </nitpick>
>
> That's how many other files with Russell's copyright were written (e.g.
> drivers/serial/serial_core.c, mmu.c etc.), so we just follow the
> tradition :-).
OK, will check and send a few patches :-) Honestly, I don't care much.
Wouldn't have bothered without my comment below.
> > > +static void early_write(const char *s, unsigned n)
> > > +{
> > > + while (n-- > 0) {
> > > + if (*s == '\n')
> > > + printch('\r');
> > > + printch(*s);
> > > + s++;
> > > + }
> > > +}
> >
> > Can you better use uart_console_write here? (If yes, don't forget to
> > select CONFIG_SERIAL_CORE.)
>
> This early console should work with ICE DCC as well, so adding the
> uart_* calls may be a bit confusing (plus one more indirection of calls
> to drop the first argument passed to printch by uart_console_write).
My comment was a question on purpose. If you don't like it it's OK for
me, too.
> The
> x86 variant doesn't do this either.
You have no ambition to be better than x86? :-)
Anyhow:
Acked-by: Uwe Kleine-K?nig <u.kleine-koenig@pengutronix.de>
Best regards and thanks for picking that patch up
Uwe
--
Pengutronix e.K. | Uwe Kleine-K?nig |
Industrial Linux Solutions | http://www.pengutronix.de/ |
^ permalink raw reply [flat|nested] 9+ messages in thread
* [RFC PATCH] Add an earlyprintk debug console
2009-11-05 12:35 [RFC PATCH] Add an earlyprintk debug console Catalin Marinas
` (3 preceding siblings ...)
2009-11-05 20:36 ` Kristoffer Ericson
@ 2009-11-10 7:56 ` Pavel Machek
4 siblings, 0 replies; 9+ messages in thread
From: Pavel Machek @ 2009-11-10 7:56 UTC (permalink / raw)
To: linux-arm-kernel
On Thu 2009-11-05 12:35:12, Catalin Marinas wrote:
> This patch allows an earlyprintk console if CONFIG_DEBUG_LL is enabled,
> using the printch asm function.
>
> The patch is based on the original work by Sascha Hauer.
>
> Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
> Cc: Sascha Hauer <s.hauer@pengutronix.de>
> Cc: Uwe Kleine-K??nig <u.kleine-koenig@pengutronix.de>
Yes, please. Figuring out debug_ll means earlyprintk is non-trivial
and having to patch the code to get the output is unnice.
ACK.
Pavel
--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2009-11-10 7:56 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-11-05 12:35 [RFC PATCH] Add an earlyprintk debug console Catalin Marinas
2009-11-05 13:43 ` Sascha Hauer
2009-11-05 13:55 ` Pandita, Vikram
2009-11-05 18:17 ` Uwe Kleine-König
2009-11-05 18:15 ` Uwe Kleine-König
2009-11-06 12:22 ` Catalin Marinas
2009-11-07 22:05 ` Uwe Kleine-König
2009-11-05 20:36 ` Kristoffer Ericson
2009-11-10 7:56 ` Pavel Machek
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.