Ville Syrjälä 3bb403bf42 drm: Stop using linedur_ns and pixeldur_ns for vblank timestamps
linedur_ns, and especially pixeldur_ns are becoming rather inaccurate
to be used for the vblank timestamp correction. With 4k@60 the pixel
duration is already below 2ns, so the amount of error due to the
truncation to nanoseconds is introducing quite a bit of error.

We can avoid such problems if we instead calculate the timestamp
delta_ns directly from the dislay timings, avoiding the use of
these intermediate truncated values.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
[danvet: Squash in fixup from Thierry Reding for amdgpu.]
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2015-09-24 20:14:21 +02:00
..
2015-05-26 15:09:03 +02:00
2015-01-22 10:42:19 -05:00
2015-04-13 11:17:58 -04:00
2013-09-11 11:44:38 -04:00
2013-09-11 11:44:38 -04:00
2015-05-26 10:31:21 -04:00
2011-03-31 11:26:23 -03:00
2014-03-06 16:46:56 -05:00
2014-12-02 10:58:33 +10:00
2013-12-18 11:35:01 +10:00
2013-12-18 11:35:01 +10:00
2015-05-07 11:00:15 -04:00