PReP RTC vs Decrementer accuracy...

Corey Minyard minyard at acm.org
Thu Dec 10 10:52:04 EST 1998


Cort Dougan <cort at 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.

-- 
Corey Minyard               Internet:  minyard at acm.org
  Work: minyard at nortel.ca       UUCP:  minyard at 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 at lists.linuxppc.org ]]




More information about the Linuxppc-dev mailing list