[igt-dev] [PATCH i-g-t] lib/i915/perf: reenable perf tests on cometlake

Lionel Landwerlin
2020-02-26T08:23:52Z

The perf code coming from gputop assumed that devinfo for
cometlake/coffeelake used the same entry (devinfo->is_coffeelake).

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Fixes: 53f8f541ca ("lib: Add i915_perf library")
---
lib/i915/perf.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/i915/perf.c b/lib/i915/perf.c
index a5dd3eab..babfe633 100644
--- a/lib/i915/perf.c
+++ b/lib/i915/perf.c
@@ -219,7 +219,7 @@ intel_perf_for_devinfo(uint32_t device_id,
} else if (devinfo->is_geminilake) {
perf->devinfo.eu_threads_count = 6;
intel_perf_load_metrics_glk(perf);
- } else if (devinfo->is_coffeelake) {
+ } else if (devinfo->is_coffeelake || devinfo->is_cometlake) {
switch (devinfo->gt) {
case 2:
intel_perf_load_metrics_cflgt2(perf);
--
2.25.1