linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: Gabriel Paubert <paubert@iram.es>
To: Alessandro Zummo <alessandro.zummo@towertech.it>
Cc: akpm@osdl.org, Kim@ozlabs.org, linuxppc-dev@ozlabs.org,
	Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
	ralf@linux-mips.org, David Brownell <david-b@pacbell.net>,
	Andi Kleen <ak@muc.de>,
	lethal@linux-sh.org, paulus@samba.org, kkojima@rr.iij4u.or.jp,
	hackers@lists.ntp.isc.org, davem@davemloft.net,
	rmk@arm.linux.org.uk, mills@udel.edu
Subject: Re: NTP time sync
Date: Thu, 23 Nov 2006 02:48:48 +0100	[thread overview]
Message-ID: <20061123014848.GA8675@iram.es> (raw)
In-Reply-To: <20061122212355.046de470@inspiron>

On Wed, Nov 22, 2006 at 09:23:55PM +0100, Alessandro Zummo wrote:
> On Wed, 22 Nov 2006 11:55:23 -0800
> David Brownell <david-b@pacbell.net> wrote:
>=20
> > >=20
> > >  So, if the arch maintainers agree,=20
> > >  I would suggest to schedule it for removal.
> > >=20
> > > [1] http://lkml.org/lkml/2006/3/28/358
> >=20
> > Suggested time of removal: one year after two relevant software
> > package releases get updated:
> >=20
> >   - NTPD, to call hwclock specifying the relevant RTC;
>=20
>  This might introduce delays. ntpd might open the device
>  and update the time itself.
>=20

Indeed, the update should be at least _triggered_ by ntp.

In the end it will be the kernel that accesses the hardware,
the fundamental problem is that with RTC chips with very slow=20
access like I2C it cannot be done from an interrupt.

But it nevertheless has to be done as close as possible
to the half-second or second boundary (depending on the chip)=20
boundary if we want to keep some precision. You can't expect=20
miracles from RTC chips in this respect, since the crystal
period is about 30=B5s to boot and from some tests I did a long
time ago it seems that most do not reset the first bits of
the divider when written to, so the precision is much worse
(something like 30ms IIRC). It is still much better than 1
second in any case.

How can ntp know if the RTC chip has to be updated at the=20
half-second or second boundary? That is the kind of knowledge
that is better left to the driver.

	Regards,
	Gabriel

  reply	other threads:[~2006-11-23  1:49 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-11-22 19:36 NTP time sync Alessandro Zummo
2006-11-22 19:51 ` Russell King
2006-11-22 20:26   ` Alessandro Zummo
2006-11-22 19:55 ` David Brownell
2006-11-22 20:23   ` Alessandro Zummo
2006-11-23  1:48     ` Gabriel Paubert [this message]
2006-11-23 10:54 ` Andi Kleen
2006-11-23 11:00   ` Benjamin Herrenschmidt
2006-11-25 23:22     ` David Brownell
2006-11-26 11:04       ` Joakim Tjernlund
2006-11-26 19:21         ` Alessandro Zummo
2006-11-26 21:37           ` Joakim Tjernlund
2006-11-26 22:53             ` Alessandro Zummo
2006-11-27  1:21               ` [Bulk] " David Brownell

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=20061123014848.GA8675@iram.es \
    --to=paubert@iram.es \
    --cc=Kim@ozlabs.org \
    --cc=ak@muc.de \
    --cc=akpm@osdl.org \
    --cc=alessandro.zummo@towertech.it \
    --cc=davem@davemloft.net \
    --cc=david-b@pacbell.net \
    --cc=hackers@lists.ntp.isc.org \
    --cc=kkojima@rr.iij4u.or.jp \
    --cc=lethal@linux-sh.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linuxppc-dev@ozlabs.org \
    --cc=mills@udel.edu \
    --cc=paulus@samba.org \
    --cc=ralf@linux-mips.org \
    --cc=rmk@arm.linux.org.uk \
    /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;
as well as URLs for NNTP newsgroup(s).