intel/perf: add new perf consts to support more metrics

Reviewed-by: Francisco Jerez <currojerez@riseup.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32909>
This commit is contained in:
Felix DeGrood
2024-07-30 18:27:49 +00:00
committed by Marge Bot
parent 10f04dc3df
commit 0ff8534008
3 changed files with 10 additions and 0 deletions
+4
View File
@@ -249,6 +249,10 @@ 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]"
hw_vars["$L3BankTotalCount"] = "perf->sys_vars.n_l3_banks"
hw_vars["$L3BankMaxCount"] = "perf->sys_vars.n_l3_banks"
hw_vars["$L3NodeTotalCount"] = "perf->sys_vars.n_l3_nodes"
hw_vars["$SqidiTotalCount"] = "perf->sys_vars.n_sq_idis"
def resolve_variable(name, set, allow_counters):
if name in hw_vars:
+3
View File
@@ -322,6 +322,9 @@ compute_topology_builtins(struct intel_perf_config *perf)
perf->sys_vars.slice_mask = devinfo->slice_masks;
perf->sys_vars.n_eu_slices = devinfo->num_slices;
perf->sys_vars.n_l3_banks = devinfo->l3_banks;
perf->sys_vars.n_l3_nodes = devinfo->l3_banks / 4;
perf->sys_vars.n_sq_idis = devinfo->num_slices;
perf->sys_vars.n_eu_slice0123 = 0;
for (int s = 0; s < MIN2(4, devinfo->max_slices); s++) {
+3
View File
@@ -367,6 +367,9 @@ struct intel_perf_config {
uint64_t n_eu_slices; /** $EuSlicesTotalCount */
uint64_t n_eu_sub_slices; /** $EuSubslicesTotalCount */
uint64_t n_eu_slice0123; /** $EuDualSubslicesSlice0123Count */
uint64_t n_l3_banks; /** $L3BankTotalCount */
uint64_t n_l3_nodes; /** $L3NodeTotalCount */
uint64_t n_sq_idis; /** $SqidiTotalCount */
uint64_t slice_mask; /** $SliceMask */
uint64_t subslice_mask; /** $SubsliceMask */
uint64_t gt_min_freq; /** $GpuMinFrequency */