drm/i915/perf: better pipeline aged/aging tail updates
authorRobert Bragg <robert@sixbynine.org>
Thu, 11 May 2017 15:43:30 +0000 (16:43 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Sat, 13 May 2017 10:03:17 +0000 (11:03 +0100)
commit4117ebc74cb3ca25966488b8da6157a299f02e92
treefed4f5ba39af96f55cbe8b15dccc44e6ec9ce42a
parent52c57c263f14f90ebf43705d1c9cc4d53229fd7c
drm/i915/perf: better pipeline aged/aging tail updates

This updates the tail pointer race workaround handling to updating the
'aged' pointer before looking to start aging a new one. There's the
possibility that there is already new data available and so we can
immediately start aging a new pointer without having to first wait for a
later hrtimer callback (and then another to age).

Signed-off-by: Robert Bragg <robert@sixbynine.org>
Reviewed-by: Matthew Auld <matthew.auld@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20170511154345.962-8-lionel.g.landwerlin@intel.com
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
drivers/gpu/drm/i915/i915_perf.c