public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: "Hinko Kočevar" <hinko.kocevar@cetrtapot.si>
To: Gabriel C <nix.or.die@googlemail.com>
Cc: David Miller <davem@davemloft.net>, linux-kernel@vger.kernel.org
Subject: Re: time stamped printks
Date: Thu, 08 May 2008 14:10:21 +0200	[thread overview]
Message-ID: <4822EDAD.5010502@cetrtapot.si> (raw)
In-Reply-To: <4822DF3F.7050506@googlemail.com>

Gabriel C wrote:
> David Miller wrote:
>> From: Hinko Kočevar <hinko.kocevar@cetrtapot.si>
>> Date: Thu, 08 May 2008 10:26:01 +0200
>>
>>> Hi all,
>>>
>>> I'm building latest GIT tree kernel for CRIS architecture. Right now I'm seeing 
>>> some strange values with printk stamps - at the start they are initialized to 0, 
>>> but quickly change to 42949372 - 0x028F5AFC.
>>>
>>> Any thoughts to where to look for fix?
>> Very early in the boot, the timestamp counter fetching infrastructure
>> isn't setup yet.  So zero is reported for the timestamp.
>>
>> So early on in the boot, it is often not even possible to setup
>> such things yet.  Because infrastructure they need for probing
>> etc. isn't even available yet.
>>
>> This happens on basically every single Linux platform, there
>> isn't really anything to fix.

Hmm, I was under the impression that this was not an issue (at least not in 2.6.25).

> 
> For the early boot 0's it is normal but not for the following strange values :)

I agree.

> 
> I got the same problem on my 64bit box with latest git head and bisected it down to 3e51f33fcc7f55e6df25d15b55ed10c8b4da84cd
> 
> http://lkml.org/lkml/2008/5/8/146

Well, cris architecture does not have CONFIG_HAVE_UNSTABLE_SCHED_CLOCK. I guess 
sched rework broker something since it was touched by the above commit, or..:

# CONFIG_CGROUPS is not set
CONFIG_GROUP_SCHED=y
CONFIG_FAIR_GROUP_SCHED=y
# CONFIG_RT_GROUP_SCHED is not set
CONFIG_USER_SCHED=y
# CONFIG_CGROUP_SCHED is not set



 From the 3e51f33fcc7f55e6df25d15b55ed10c8b4da84cd commit Changelog:
  - architectures that have an 'imperfect' hardware clock can set
    CONFIG_HAVE_UNSTABLE_SCHED_CLOCK

How can one do that? Just add it to the .config?

Regards,
Hinko


-- 
ČETRTA POT, d.o.o., Kranj
Planina 3
4000 Kranj
Slovenia, Europe
Tel. +386 (0) 4 280 66 03
E-mail: hinko.kocevar@cetrtapot.si
Http: www.cetrtapot.si


      reply	other threads:[~2008-05-08 12:11 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-05-08  8:26 time stamped printks Hinko Kočevar
2008-05-08  9:01 ` David Miller
2008-05-08 11:08   ` Gabriel C
2008-05-08 12:10     ` Hinko Kočevar [this message]

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=4822EDAD.5010502@cetrtapot.si \
    --to=hinko.kocevar@cetrtapot.si \
    --cc=davem@davemloft.net \
    --cc=linux-kernel@vger.kernel.org \
    --cc=nix.or.die@googlemail.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox