[Intel-gfx] [PATCH 09/10] drm/i915/gt: Reduce engine runtime stats from seqlock to a latch
andi at etezian.org
Thu Jan 14 03:02:45 UTC 2021
On Wed, Jan 13, 2021 at 12:45:59PM +0000, Chris Wilson wrote:
> Since we can compute the elapsed time to add to the total, during the
> PMU sample we only need to have a consistent view of the (start, total,
> active) tuple to be able to locally determine the runtime. That can be
> arrange by a pair of memory bariiers and carefully sequencing of the
> writes and reads.
> Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>
overall looks like a nice simplification...
Reviewed-by: Andi Shyti <andi.shyti at intel.com>
More information about the Intel-gfx