From: "john stultz" <johnstul@us.ibm.com>
To: "David Miller" <davem@davemloft.net>
Cc: lkml <linux-kernel@vger.kernel.org>
Subject: Re: radeon breaks with clocksource_jiffies
Date: Fri, 23 Feb 2007 14:13:07 -0800 [thread overview]
Message-ID: <1f1b08da0702231413s21613fa0nf2b1df5d23fef440@mail.gmail.com> (raw)
In-Reply-To: <1f1b08da0702231408l19207805o5555ee3ebf6bd426@mail.gmail.com>
Crud, my poor gmail skills dropped lkml on the CC list for this one.
On 2/23/07, john stultz <johnstul@us.ibm.com> wrote:
> On 2/23/07, David Miller <davem@davemloft.net> wrote:
> > While probeing PLL information via radeon_get_pllinfo(), it does a
> > "gettimeofday(); do_something(); gettimeofday();" type sequence
> > explicitly with interrupts disabled, so ends up with a zero
> > measurement which then results in a bunch of divisions by zero.
>
> This is at module init time? If so I just sent out a patch yesterday
> to akpm that might help this issue (assuming other clocksources are
> available on the hardware).
>
>
> > We should decide whether gettimeofday() can be expected to advance with
> > interrupts disabled, or that clocksource_jiffies is simply invalid because
> > of this behavior.
>
> Some arches have no fine-grained timekeeping, so I don't think it can
> always be assumed, but where hardware is available it should function.
>
> It should be noted that with older kernels, if interrupts were
> disabled right before a tick, it would be possible that
> gettimeofday()'s limiting code would cause time to stop advancing
> until interrupts were re-enabled. So theoretically its not really a
> new issue.
>
> The timekeeping_is_continuous() function could be used to flag this
> sort of "software driven vs continuous" clocksource cases.
>
> thanks
> -john
>
prev parent reply other threads:[~2007-02-23 22:13 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-02-23 21:45 David Miller
2007-02-23 22:03 ` David Miller
2007-02-23 22:10 ` john stultz-lkml
2007-02-23 22:32 ` David Miller
[not found] ` <1f1b08da0702231408l19207805o5555ee3ebf6bd426@mail.gmail.com>
2007-02-23 22:13 ` john stultz [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=1f1b08da0702231413s21613fa0nf2b1df5d23fef440@mail.gmail.com \
--to=johnstul@us.ibm.com \
--cc=davem@davemloft.net \
--cc=linux-kernel@vger.kernel.org \
/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
all inboxes | Powered by JetHome®