Messages in this thread | | | Date | Wed, 10 Jun 2015 08:56:16 -0700 | Subject | Re: Discussion: quick_pit_calibrate is slow | From | Arjan van de Ven <> |
| |
> If my plan survives contact with reality, it should work better 100% > of the time and obsolete the old code. > > You said it should fail back to the old code, but there's not a lot of > difference between failures I can detect and failures I can work around. > > I know it's a fatal error to underestimate the perversity of PC hardware > (virtualized hardware even more so) but I'm trying to mitigate that by > really deeply understanding what the current code does and all the error > conditions is can handle. > >> (and RTC if that can be managed.) >
btw one thing to think about; if you calibrate VERY quickly, you need to consider spread spectrum clocking. various systems have different clocks on different SSC domains, and while on a bit larger timewindow you can completely ignore SSC, once you go into very short time windows you can't. Now... you can do a quick calibration and then a longer calibration in the background (we do that already after 1 second or so.. but that's 900 msec after userspace finished booting so probably too late if the first calibration is too coarse)
also note that normally people kind of expect around 100ppm to not have their clocks deviate too much during the day. (but this can be the result of the longer term calibration)
| |