]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitfb04adaa766b0d9f889f85abc937138d5c04cbfb
treefed4f5ba39af96f55cbe8b15dccc44e6ec9ce42a
parentc02b6bfc6d8d24f5c39a4a078212c1967aa98315
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