intel/perf: add TGL support
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Acked-by: Kenneth Graunke <kenneth@whitecape.org>
This commit is contained in:
@@ -789,6 +789,8 @@ get_register_queries_function(const struct gen_device_info *devinfo)
|
||||
return gen_oa_register_queries_cnl;
|
||||
if (devinfo->gen == 11)
|
||||
return gen_oa_register_queries_icl;
|
||||
if (devinfo->gen == 12)
|
||||
return gen_oa_register_queries_tgl;
|
||||
|
||||
return NULL;
|
||||
}
|
||||
@@ -2254,6 +2256,14 @@ accumulate_oa_reports(struct gen_perf_context *perf_ctx,
|
||||
goto error;
|
||||
}
|
||||
|
||||
/* On Gen12+ OA reports are sourced from per context counters, so we don't
|
||||
* ever have to look at the global OA buffer. Yey \o/
|
||||
*/
|
||||
if (perf_ctx->devinfo->gen >= 12) {
|
||||
last = start;
|
||||
goto end;
|
||||
}
|
||||
|
||||
/* See if we have any periodic reports to accumulate too... */
|
||||
|
||||
/* N.B. The oa.samples_head was set when the query began and
|
||||
|
Reference in New Issue
Block a user