diff --git a/src/intel/perf/gen_perf.py b/src/intel/perf/gen_perf.py index 52e08f0c8c6..287cac77612 100644 --- a/src/intel/perf/gen_perf.py +++ b/src/intel/perf/gen_perf.py @@ -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: diff --git a/src/intel/perf/intel_perf.c b/src/intel/perf/intel_perf.c index ab3e7a433fc..7e56d40d9b0 100644 --- a/src/intel/perf/intel_perf.c +++ b/src/intel/perf/intel_perf.c @@ -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++) { diff --git a/src/intel/perf/intel_perf.h b/src/intel/perf/intel_perf.h index 4609bcf6111..8b789dc6feb 100644 --- a/src/intel/perf/intel_perf.h +++ b/src/intel/perf/intel_perf.h @@ -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 */