From: Helge Deller <deller@gmx.de>
To: Mikulas Patocka <mpatocka@redhat.com>
Cc: Aaro Koskinen <aaro.koskinen@iki.fi>,
"linux-parisc@vger.kernel.org" <linux-parisc@vger.kernel.org>
Subject: Re: invalid printk time during boot on PA-RISC
Date: Tue, 7 Jun 2016 18:47:19 +0200 [thread overview]
Message-ID: <5756FA97.403@gmx.de> (raw)
In-Reply-To: <alpine.LRH.2.02.1606061250160.22217@file01.intranet.prod.int.rdu2.redhat.com>
On 06.06.2016 18:51, Mikulas Patocka wrote:
>
>
> On Fri, 3 Jun 2016, Helge Deller wrote:
>
>> * Aaro Koskinen <aaro.koskinen@iki.fi>:
>>> Hi,
>>>
>>> On Wed, Jun 01, 2016 at 11:12:48PM +0200, Helge Deller wrote:
>>>> It fixes the problem mostly for me, there is just one little glitch
>>>> left, which is that the lines "FP[x] enabled" will still print an
>>>> invalid time. I assume it's because when this text is printed, the
>>>> clock/interrupts for the just booted CPU aren't enabled yet.
>>>>
>>>> I'm not sure it's worth trying to fix that.
>>>> One could print out that info at a later time, or just disabled it.
>>>>
>>>> Helge
>>>>
>>>> [ 5.720014] Enabling PDC_PAT chassis codes support v0.05
>>>> [ 6.644542] Releasing cpu 1 now, hpa=fffffffffe781000
>>>> [ 0.196000] FP[1] enabled: Rev 1 Model 20
>>>> [ 7.088432] CPU(s): 2 out of 2 PA8800 (Mako) at 900.000000 MHz online
>>>
>>> Some tools that analyze boot time based on dmesg might get confused.
>>
>> Yes, valid point.
>> Updated patch below.
>>
>> Helge
>>
>> __________
>>
>>
>> parisc: Fix printk time during boot
>>
>> Avoid showing invalid printk time stamps during boot.
>>
>> Signed-off-by: Helge Deller <deller@gmx.de>
>>
>> diff --git a/arch/parisc/kernel/processor.c b/arch/parisc/kernel/processor.c
>> index e81ccf1..5adc339 100644
>> --- a/arch/parisc/kernel/processor.c
>> +++ b/arch/parisc/kernel/processor.c
>> @@ -324,8 +324,9 @@ int init_per_cpu(int cpunum)
>> per_cpu(cpu_data, cpunum).fp_rev = coproc_cfg.revision;
>> per_cpu(cpu_data, cpunum).fp_model = coproc_cfg.model;
>>
>> - printk(KERN_INFO "FP[%d] enabled: Rev %ld Model %ld\n",
>> - cpunum, coproc_cfg.revision, coproc_cfg.model);
>> + if (cpunum == 0)
>> + printk(KERN_INFO "FP[%d] enabled: Rev %ld Model %ld\n",
>> + cpunum, coproc_cfg.revision, coproc_cfg.model);
>
> BTW. you could also remove "[%d] cpunum" from printk --- if cpunum is
> always 0 here.
Right. But I pushed my patch already upstream.
Maybe in the next round, or we drop this line completely.
Helge
next prev parent reply other threads:[~2016-06-07 16:47 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-05-31 11:44 invalid printk time during boot on PA-RISC Mikulas Patocka
2016-06-01 21:12 ` Helge Deller
2016-06-01 21:36 ` Aaro Koskinen
2016-06-03 17:22 ` Helge Deller
2016-06-03 21:56 ` Aaro Koskinen
2016-06-06 16:51 ` Mikulas Patocka
2016-06-07 16:47 ` Helge Deller [this message]
2016-06-14 16:20 ` Mikulas Patocka
2016-06-14 21:23 ` Helge Deller
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=5756FA97.403@gmx.de \
--to=deller@gmx.de \
--cc=aaro.koskinen@iki.fi \
--cc=linux-parisc@vger.kernel.org \
--cc=mpatocka@redhat.com \
/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.