Skip to content
Snippets Groups Projects
Commit 79f028ce authored by Lionel Landwerlin's avatar Lionel Landwerlin Committed by Ashutosh Dixit
Browse files

lib/i915/perf: configure OA timestamp shift and mask for ACM


OA reports have the timestamp value shifted to the right by 1 bits, it
also means we cannot use the top bit for comparison. Configure OA
timestamp shift and mask for ACM.

Signed-off-by: default avatarLionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: default avatarUmesh Nerlige Ramappa <umesh.nerlige.ramappa@intel.com>
parent e44f85aa
No related branches found
No related tags found
No related merge requests found
Pipeline #724190 passed
......@@ -377,6 +377,12 @@ intel_perf_for_devinfo(uint32_t device_id,
intel_perf_load_metrics_adl(perf);
} else if (devinfo->is_dg2) {
perf->devinfo.eu_threads_count = 8;
/* OA reports have the timestamp value shifted to the
* right by 1 bits, it also means we cannot use the
* top bit for comparison.
*/
perf->devinfo.oa_timestamp_shift = -1;
perf->devinfo.oa_timestamp_mask = 0x7fffffff;
if (is_acm_gt1(&perf->devinfo))
intel_perf_load_metrics_acmgt1(perf);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment