intel/perf: Add LNL OA XML

Also added pec_offset to struct intel_perf_query_info and two new
hw variables needed by this XML, those changes are required to at
least compile with this new XML.

pec_offset will be set in the next patches.

Acked-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Signed-off-by: José Roberto de Souza <jose.souza@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29899>
This commit is contained in:
José Roberto de Souza 2024-05-23 09:32:59 -07:00 committed by Marge Bot
parent 5b8b4f7878
commit 6e1852981b
5 changed files with 6990 additions and 0 deletions

View file

@ -247,6 +247,8 @@ hw_vars["$GpuMinFrequency"] = "perf->sys_vars.gt_min_freq"
hw_vars["$GpuMaxFrequency"] = "perf->sys_vars.gt_max_freq"
hw_vars["$SkuRevisionId"] = "perf->devinfo->revision"
hw_vars["$QueryMode"] = "perf->sys_vars.query_mode"
hw_vars["$ComputeEngineTotalCount"] = "perf->devinfo->engine_class_supported_count[INTEL_ENGINE_CLASS_COMPUTE]"
hw_vars["$CopyEngineTotalCount"] = "perf->devinfo->engine_class_supported_count[INTEL_ENGINE_CLASS_COPY]"
def resolve_variable(name, set, allow_counters):
if name in hw_vars:

View file

@ -445,6 +445,8 @@ get_register_queries_function(const struct intel_device_info *devinfo)
if (intel_device_info_eu_total(devinfo) <= 128)
return intel_oa_register_queries_mtlgt3;
return NULL;
case INTEL_PLATFORM_LNL:
return intel_oa_register_queries_lnl;
default:
return NULL;
}

View file

@ -262,6 +262,7 @@ struct intel_perf_query_info {
int c_offset;
int perfcnt_offset;
int rpstat_offset;
int pec_offset;
struct intel_perf_registers config;
};

View file

@ -9,6 +9,7 @@ intel_hw_metrics = [
'tglgt1', 'tglgt2', 'rkl', 'dg1', 'adl',
'acmgt1', 'acmgt2', 'acmgt3',
'mtlgt2', 'mtlgt3',
'lnl',
]
intel_hw_metrics_xml_files = []

6984
src/intel/perf/oa-lnl.xml Normal file

File diff suppressed because it is too large Load diff