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:
Lionel Landwerlin
2019-09-20 21:11:33 +03:00
parent f140467b5b
commit 15b7b56eb2
4 changed files with 8611 additions and 0 deletions

View File

@@ -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