[igt-dev] [PATCH i-g-t 10/20] tests/i915/perf: Support only default_engine_group for xe
Ashutosh Dixit
ashutosh.dixit at intel.com
Tue Aug 8 01:00:07 UTC 2023
Engine groups are currently not supported for XE. Support only
default_engine_group.
Signed-off-by: Ashutosh Dixit <ashutosh.dixit at intel.com>
---
tests/i915/perf.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/tests/i915/perf.c b/tests/i915/perf.c
index ef2d56e319f8..6f10e1d035cb 100644
--- a/tests/i915/perf.c
+++ b/tests/i915/perf.c
@@ -5726,6 +5726,9 @@ static struct perf_engine_group *get_engine_groups(int i915, uint32_t *num_group
struct perf_engine_group *groups = NULL;
uint32_t id = UINT32_MAX, num_grps = 0, i = 0, j;
+ if (is_xe_device(drm_fd))
+ return default_engine_group(num_groups);
+
qinfo = query_engine_info(i915);
if (!qinfo)
return default_engine_group(num_groups);
@@ -5996,6 +5999,7 @@ igt_main
write_u64_file(i9xe.sysctl_path_max_sample_rate, 100000);
gt_max_freq_mhz = sysfs_read(RPS_RP0_FREQ_MHZ);
+
perf_oa_groups = get_engine_groups(drm_fd, &num_perf_oa_groups);
igt_assert(perf_oa_groups && num_perf_oa_groups);
--
2.41.0
More information about the igt-dev
mailing list