On 12/22/2017 3:46 PM, Lionel
Landwerlin wrote:
Could you share details about platform, scenario in which 2ms drift per second is being seen with timecounter. I did not observe this on SKL. Could we be using it wrong?if we use two changes highlighted above with timecounter maybe we will get same results as your current implementation. In the patch above, I think there is still a drift because of the potential fractional part loss at every delta we add.timecounter interface takes care of fractional parts so that should help us. we can either go with timecounter or our own implementation provided conversions are precise. We can probably do better by always computing the clock using the entire delta rather than the accumulated delta.issue is that the reported clock cycles in the OA report is 32bits LSB of GPU TS whereas counter is 36bits. Hence we will need to accumulate the delta. ofc there is assumption that two reports can't be spaced with count value of 0xffffffff apart. agree on this. Delta ns1-ns0 can be interpreted as max drift. |
_______________________________________________ Intel-gfx mailing list Intel-gfx@xxxxxxxxxxxxxxxxxxxxx https://lists.freedesktop.org/mailman/listinfo/intel-gfx