diff options
author | Lionel Landwerlin <[email protected]> | 2017-03-30 15:46:40 +0100 |
---|---|---|
committer | Lionel Landwerlin <[email protected]> | 2017-06-27 14:10:29 +0300 |
commit | 31b11f69f75ff92cb42a13bb2f6740c183f761df (patch) | |
tree | 31ee091210f7ff0a61a4f2d713c2ec6f6e20c086 /include | |
parent | 1fc7b951278428bd0fbbe040226737a44742f353 (diff) |
i965: perf: keep on reading reports until delimiting timestamp
Due to an underlying hardware race condition, we have no guarantee
that all the reports coming from the OA buffer related to the workload
we're trying to measure have landed to memory by the time all the work
submitted has completed. That means we need to keep on reading the OA
stream until we read a report with a timestamp more recent than the
timestamp recored by the MI_REPORT_PERF_COUNT at the end of the
performance query.
v2: fix uninitialized offset variable to 0 (Lionel)
v3: rework the reading to avoid blocking the user of the API unless
requested (Rob)
v4: fix a bug that makes the i965 driver reading the perf stream when
not necessary, leading to very long counter accumulation times
(Lionel)
Signed-off-by: Lionel Landwerlin <[email protected]>
Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions