Skip to content
Snippets Groups Projects
Unverified Commit c33030d3 authored by Olivia Lee's avatar Olivia Lee
Browse files

panthor/drm: accumulate counters from HW-triggered samples


Because counter values are written as deltas since the previous sample,
we need to sum the values from all samples since the previous manual
sample in order to pass accurate counts to userspace. This is especially
important when counters are disabled in between manual samples.

The main alternative approach would be to pass the HW-triggered samples
to userspace, and let the userspace program decide how it wants to
handle them. This would mean a more complicated uapi, and means that the
ringbuffer will overflow if userspace does not sample frequently enough.

Signed-off-by: default avatarBenjamin Lee <benjamin.lee@collabora.com>
parent 1ad1e345
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment