On 22/12/17 09:30, Sagar Arun Kamble
wrote:
I think the arithmetic in timecounter is inherently lossy and that's why we're seeing a drift. Could we be using it wrong? In the patch above, I think there is still a drift because of the potential fractional part loss at every delta we add. But it should only be a fraction of a nanosecond multiplied by the number of reports over a period of time. With a report every 1us, that should still be much less than a 1ms of drift over 1s. We can probably do better by always computing the clock using the entire delta rather than the accumulated delta. agree on this. Delta ns1-ns0 can be interpreted as max drift. I don't actually know much on this point. if spin_lock is the best we can do, then that's it :)
|
_______________________________________________ Intel-gfx mailing list Intel-gfx@xxxxxxxxxxxxxxxxxxxxx https://lists.freedesktop.org/mailman/listinfo/intel-gfx