linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: Corey Minyard <minyard@acm.org>
To: Cort Dougan <cort@persephone.cs.nmt.edu>
Cc: Troy Benjegerdes <hozer@drgw.net>, Dan Malek <dmalek@jlc.net>,
	linuxppc-dev@lists.linuxppc.org
Subject: Re: PReP RTC vs Decrementer accuracy...
Date: 09 Dec 1998 22:20:20 -0600	[thread overview]
Message-ID: <m2d85sk4qj.fsf@wf-rch.cirr.com> (raw)
In-Reply-To: Corey Minyard's message of 09 Dec 1998 17:52:04 -0600


Corey Minyard <minyard@acm.org> writes:

> Cort Dougan <cort@persephone.cs.nmt.edu> writes:
> 
> > No, this would tend to make it slower if anything.
> > 
> > }Okay, would this cause the clock to be fast? (mine was about 45 minutes
> > }fast) (And, is it feasable to make it 'impossible' to miss a decr?)
> > 
> > Rebooting a lot would affect it.  Are you running the code that sync's the
> > rtc with the system clock every 11 minutes?  If so, turning it off and
> > seeing which clock was accurate after a while would be a useful
> > experiment.
> > 
> > }I have also rebooted the machine quite a bit.. This may also be the
> > }reason.
> > 
> 
> I'm having this same problem on an MVME2700 (233MHZ 750).  With the
> default configuration the clock gains about 1.5 seconds every 30
> minutes.  LinuxPPC on my PowerMac keeps great time.
> 
> I removed the hardcoding of the decrementer setting but the computed
> values stayed pretty much the same.  I have modified the hardcoded
> frequency value to be 999950000 (after some experimentation with
> xntpd) from the old value of 998700000.  This keeps time pretty well
> (<16ppm error) and the stability is very good.
> 
> Also, I'm not seeing the time being written to the RTC at all.  I just
> left my card up all day and it made no difference in the time in the
> RTC, it is about 600 seconds off (and that value is growing quite
> rapidly, probably 30 seconds a day, which might explain why the
> calculated value is so far off).  But why isn't the RTC being written?
> Maybe I'll look at this tomorrow.
> 

I done some more research.  From the looks of things, the MK48T59 is
not register-compatible (even with mapping) with the MC146818.  Most
of the control bits are not in the same place.  I'm going to try to
rewrite this, but...

I would like to make things in the arch/ppc/kernel directory more
"polymorphic", meaning I'd like to have a table of function pointers
that point to the various procedures to handle things, much like a
device driver or filesystem entry.  The detection code would fill in
all the proper functions, and there would be no more checks all over
the place for various architectures.  I think it would make the code
much cleaner and make it much easier to add new boards.

Cort, who would I contact for more info on this?

-- 
Corey Minyard               Internet:  minyard@acm.org
  Work: minyard@nortel.ca       UUCP:  minyard@wf-rch.cirr.com

[[ This message was sent via the linuxppc-dev mailing list. Replies are ]]
[[ not forced back to the list, so be sure to  Cc linuxppc-dev  if your ]]
[[ reply is of general interest. To unsubscribe from linuxppc-dev, send ]]
[[ the message 'unsubscribe' to linuxppc-dev-request@lists.linuxppc.org ]]

  reply	other threads:[~1998-12-10  4:20 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-12-07 12:31 USB, PCI and registers Benjamin Herrenschmidt
1998-12-07 21:02 ` PReP RTC vs Decrementer accuracy Troy Benjegerdes
1998-12-08  5:00   ` Cort Dougan
1998-12-08 20:32     ` Dan Malek
1998-12-08 23:52       ` Cort Dougan
1998-12-09  7:30         ` Troy Benjegerdes
1998-12-09  8:25           ` Cort Dougan
1998-12-09 23:52             ` Corey Minyard
1998-12-10  4:20               ` Corey Minyard [this message]
1998-12-10  5:48                 ` Cort Dougan
1998-12-10 10:58                   ` Geert Uytterhoeven
1998-12-10 16:00                   ` Corey Minyard
1998-12-09 20:37         ` Dan Malek
1998-12-10  5:57           ` Guy G. Sotomayor, Jr.
1998-12-10 17:53             ` Dan Malek
1998-12-10 19:26               ` Guy G. Sotomayor, Jr.
1998-12-11  5:53                 ` Dan Malek
1998-12-13 17:05               ` Gabriel Paubert
1998-12-14  6:45                 ` Dan Malek
1998-12-15 20:12                 ` Dan Malek

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=m2d85sk4qj.fsf@wf-rch.cirr.com \
    --to=minyard@acm.org \
    --cc=cort@persephone.cs.nmt.edu \
    --cc=dmalek@jlc.net \
    --cc=hozer@drgw.net \
    --cc=linuxppc-dev@lists.linuxppc.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;
as well as URLs for NNTP newsgroup(s).