Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1724202
| Path | csiph.com!news.redatomik.org!aioe.org!bofh.it!news.nic.it!robomod |
|---|---|
| From | Linus Walleij <linus.walleij@linaro.org> |
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH] tty: xilinx_uartps: move to arch_initcall for earlier console |
| Date | Thu, 31 Aug 2017 15:00:01 +0200 |
| Message-ID | <ukxeF-5K2-1@gated-at.bofh.it> (permalink) |
| References | <uhNfY-6XI-19@gated-at.bofh.it> <uhNfY-6XI-17@gated-at.bofh.it> <ukxeF-5K2-3@gated-at.bofh.it> |
| X-Original-To | Michal Simek <michal.simek@xilinx.com> |
| Dkim-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=L5jISQHlSVgr1EtTopYJMTRkZ87o4r4X3m4rzKLBxaY=; b=Ov+l5VuHp3YEmLMF4wL+peB2N7fZZksqpXyrN9QwzZziKIhyNvmD2nL0fCaB46NOtq UHObsd0Xa7ORdCtSro928NqgTWJ2t3kU3AUNnjyc6NFDA9YRYtNivJLV8EI1EyF6TYFV 7BdY40/Jwzbleu3oA2RDHO43+ArrdBUhT2IB0= |
| X-Google-Dkim-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=L5jISQHlSVgr1EtTopYJMTRkZ87o4r4X3m4rzKLBxaY=; b=pCgM8ndiEVAf6DC+KHBBTA0jGEhsCe+YurcYhIgarCedTaw5vRvML6p7k8QrHGnRT4 a/qgsJk3qB1YmEwMvH9zk+UmZQewV3emgg2sCEc6be2VuNJWpettllm9uI09IR33WZm9 V4TQ4VwRGxeGlLgtrXJ4DgFC4p4yvRpZbKhDVGXH1o+RU2OJ7qARTu6vBGiq09vPK3mA uM6IWwsacMFb6KwcawpY4Zc+0n5lsKop5SPXjeH5qZ9VVdq0B4OWfFa19BPAW4CceW+W 2BR+jpIBfv6aD6csEh7+CmBoh2/hCgIRPHzeg2LsOtX2c3FD3nM1L3+I16Gq8PBbvBsl 2VQA== |
| X-Gm-Message-State | AHYfb5iXQAlO9AAsnQDaDvi8U7RtAcK1lBpujf3aCOkWC4EgazZZSKir l4C9vuE3nwqhlH63rWUFlFEIGJTrfLjs |
| X-Received | by 10.202.229.207 with SMTP id c198mr6426874oih.17.1504184349040; Thu, 31 Aug 2017 05:59:09 -0700 (PDT) |
| MIME-Version | 1.0 |
| Content-Type | text/plain; charset="UTF-8" |
| Sender | robomod@news.nic.it |
| List-ID | <linux-kernel.vger.kernel.org> |
| X-Mailing-List | linux-kernel@vger.kernel.org |
| Approved | robomod@news.nic.it |
| Lines | 79 |
| Organization | linux.* mail to news gateway |
| X-Original-Cc | Greg KH <gregkh@linuxfoundation.org>, Shubhrajyoti Datta <shubhrajyoti.datta@xilinx.com>, "linux-serial@vger.kernel.org" <linux-serial@vger.kernel.org>, "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>, shubhrajyoti.datta@gmail.com |
| X-Original-Date | Thu, 31 Aug 2017 14:59:08 +0200 |
| X-Original-Message-ID | <CACRpkdZ2kNxM_MLFTXUy6bVxh5q2a_cFd+kwVWMHmOSDzG-cOQ@mail.gmail.com> |
| X-Original-References | <1503487221-17950-1-git-send-email-shubhrajyoti.datta@xilinx.com> <20170823232424.GA9546@kroah.com> <62daa70c-0c6f-7628-efa4-308cfe93709c@xilinx.com> |
| X-Original-Sender | linux-kernel-owner@vger.kernel.org |
| Xref | csiph.com linux.kernel:1724202 |
Show key headers only | View raw
On Thu, Aug 24, 2017 at 11:32 AM, Michal Simek <michal.simek@xilinx.com> wrote:
> On 24.8.2017 01:24, Greg KH wrote:
>> On Wed, Aug 23, 2017 at 04:50:21PM +0530, Shubhrajyoti Datta wrote:
>>> Signed-off-by: Shubhrajyoti Datta <shubhrajyoti.datta@xilinx.com>
>>
>> I can't take patches without any changelog text at all :(
>
> ok. I see you have also commented this.
>
> Anyway this is kind of old discussion about moving serial drivers to
> arch_initcall from module_init.
>
> There is one patch in the tree.
>
> commit 4dd9e742df98f8f600b4302d3adbb087a68237f7
> Author: Alessandro Rubini <rubini@gnudd.com>
> AuthorDate: Tue May 5 05:54:13 2009 +0100
> Commit: Russell King <rmk+kernel@arm.linux.org.uk>
> CommitDate: Sun May 31 14:58:11 2009 +0100
>
> [ARM] 5505/1: serial amba-pl011: move to arch_initcall for earlier
> console
>
> Signed-off-by: Alessandro Rubini <rubini@unipv.it>"
> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
>
>
> and then there was one patch (also sent to linux-serial but don't have link)
> https://patches.linaro.org/patch/14633/
>
> where that discussion wasn't finished.
Yeah Alessandro never came back on that.
I *guess* it is to get the console up really early, simply becaus it is
quite helpful for spotting early boot problems.
It is not for earlydebug, because for that we use another routine
that hammers out the characters on the console. That is what we use
before even going to console, with printascii(), I usually use a patch
like this:
--- a/init/main.c
+++ b/init/main.c
@@ -515,6 +515,12 @@ asmlinkage __visible void __init start_kernel(void)
smp_setup_processor_id();
debug_objects_early_init();
+#ifdef CONFIG_ARM
+ {
+ extern void printascii(char *);
+ printascii("start_kernel\n");
+ }
+#endif
/*
* Set up the initial canary ASAP:
*/
diff --git a/kernel/printk/printk.c b/kernel/printk/printk.c
index fc47863f629c..85edd1401406 100644
--- a/kernel/printk/printk.c
+++ b/kernel/printk/printk.c
@@ -1726,6 +1726,13 @@ asmlinkage int vprintk_emit(int facility, int level,
lflags |= LOG_NEWLINE;
}
+#ifdef CONFIG_ARM
+ {
+ extern void printascii(char *);
+ printascii(textbuf);
+ }
+#endif
+
/* strip kernel syslog prefix and extract log level or control flags */
if (facility == 0) {
int kern_level;
Yours,
Linus Walleij
Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread
Re: [PATCH] tty: xilinx_uartps: move to arch_initcall for earlier console Linus Walleij <linus.walleij@linaro.org> - 2017-08-31 15:00 +0200 Re: [PATCH] tty: xilinx_uartps: move to arch_initcall for earlier console Shubhrajyoti Datta <shubhrajyoti.datta@gmail.com> - 2017-09-07 08:20 +0200
csiph-web