From: Sahara <keun-o.park@windriver.com>
To: Rusty Russell <rusty@rustcorp.com.au>, <kpark3469@gmail.com>,
<akpm@linux-foundation.org>
Cc: <hpa@zytor.com>, <rafael.j.wysocki@intel.com>,
<peterz@infradead.org>, <kirill.shutemov@linux.intel.com>,
<oleg@redhat.com>, <prarit@redhat.com>,
<linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] earlyprintk: re-enable earlyprintk calling early_param
Date: Mon, 18 Aug 2014 12:13:38 +0900 [thread overview]
Message-ID: <53F16F62.2090902@windriver.com> (raw)
In-Reply-To: <87lhqp8uvu.fsf@rustcorp.com.au>
2014년 08월 16일 03:34, Rusty Russell 쓴 글:
> kpark3469@gmail.com writes:
>> From: Sahara <keun-o.park@windriver.com>
>>
>> Although there are many obs_kernel_param and its names are
>> earlyprintk and also EARLY_PRINTK is also enabled, we could not
>> see the early_printk output properly until now. This patch
>> considers earlycon as well as earlyprintk.
> Hmm, the initial "earlycon" hack slipped in when I wasn't looking.
> I don't think we should extend it.
>
> Why not make the thing(s) you want early_param()s?
>
> Cheers,
> Rusty.
The earlycon and the earlyprintk are scattered and used in many
architectures.
It looks earlycon just could be a subset of earlyprintk.
The earlycon is for uart specific, while the earlyprintk is to support
vga, efi, xen, serial, and so on. Especially ARM uses earlyprintk in
many places. And, I am not sure if this is a good chance to replace all
the earlyprintk with the earlycon. As of now, it's fair for both
earlycon and earlyprintk.
Or perhaps removing case#2, see in my previous email to Andrew Morton,
is better?, so users be forced to specify earlycon and earlyprintk in
cmdline if they want to see early_printk() output.
Thanks.
Best Regards,
Sahara.
>
>> --- a/init/main.c
>> +++ b/init/main.c
>> @@ -426,7 +426,8 @@ static int __init do_early_param(char *param, char *val, const char *unused)
>> for (p = __setup_start; p < __setup_end; p++) {
>> if ((p->early && parameq(param, p->str)) ||
>> (strcmp(param, "console") == 0 &&
>> - strcmp(p->str, "earlycon") == 0)
>> + ((strcmp(p->str, "earlycon") == 0) ||
>> + (strcmp(p->str, "earlyprintk") == 0)))
>> ) {
>> if (p->setup_func(val) != 0)
>> pr_warn("Malformed early option '%s'\n", param);
>> --
>> 1.7.9.5
next prev parent reply other threads:[~2014-08-18 3:14 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-08-14 10:13 [PATCH] earlyprintk: re-enable earlyprintk calling early_param kpark3469
2014-08-14 20:34 ` Andrew Morton
2014-08-18 2:51 ` Sahara
2014-08-15 18:34 ` Rusty Russell
2014-08-18 3:13 ` Sahara [this message]
2014-08-19 2:14 ` Keun-O Park
2014-08-27 15:15 ` Thierry Reding
2014-08-29 5:28 ` Sahara
2014-08-29 15:56 ` Stephen Warren
2014-09-01 2:28 ` Sahara
2014-09-02 15:12 ` Stephen Warren
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=53F16F62.2090902@windriver.com \
--to=keun-o.park@windriver.com \
--cc=akpm@linux-foundation.org \
--cc=hpa@zytor.com \
--cc=kirill.shutemov@linux.intel.com \
--cc=kpark3469@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=oleg@redhat.com \
--cc=peterz@infradead.org \
--cc=prarit@redhat.com \
--cc=rafael.j.wysocki@intel.com \
--cc=rusty@rustcorp.com.au \
/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.