diff options
author | Umesh Nerlige Ramappa <umesh.nerlige.ramappa@intel.com> | 2023-03-23 15:55:14 -0700 |
---|---|---|
committer | Kamil Konieczny <kamil.konieczny@linux.intel.com> | 2023-03-24 13:31:39 +0100 |
commit | 79dcdea6cd08b304679a523ed94aa0cc97ab569f (patch) | |
tree | 77d2a7e51a921b3192675743db420eee4b9844e5 | |
parent | e0d31dc2c2bf0a54f66fbfba2cdd4a27624aa2ab (diff) |
i915/perf: Add OAM format type
Similar to OAG (Global) and OAR (Render), OAM (Observability
Architecture for Media) adds some new OA formats that require different
metrics configurations for B and C counters. Don't do a sanity check for
B and C counters for OAM formats until such metrics are available.
v2: Improve commit message (Kamil)
Signed-off-by: Umesh Nerlige Ramappa <umesh.nerlige.ramappa@intel.com>
Reviewed-by: Kamil Konieczny <kamil.konieczny@linux.intel.com>
-rw-r--r-- | tests/i915/perf.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/i915/perf.c b/tests/i915/perf.c index d116667df..a2bc6dc1d 100644 --- a/tests/i915/perf.c +++ b/tests/i915/perf.c @@ -91,6 +91,7 @@ struct accumulator { enum { OAG, OAR, + OAM, MAX_OA_TYPE, }; @@ -1022,7 +1023,7 @@ gen8_sanity_check_test_oa_reports(const uint32_t *oa_report0, /* The TestOa metric set defines all B counters to be a * multiple of the gpu clock */ - if (format.n_b) { + if (format.n_b && (format.oa_type == OAG || format.oa_type == OAR)) { if (clock_delta > 0) { b = rpt1_b[0] - rpt0_b[0]; igt_debug("B0: delta = %"PRIu32"\n", b); |