summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMohammed Thasleem <mohammed.thasleem@intel.com>2022-06-20 16:28:16 +0530
committerSwati Sharma <swati2.sharma@intel.com>2022-06-22 22:11:15 +0530
commitb89efa8048e5866e67264a7a0064d14d415574f6 (patch)
treeceee9ed6d4c90dd47fb51b93cc868e0654044913
parentc39caed3b207e058409f5e2b548a4f940b6283c6 (diff)
tests/i915/i915_pm_dc: Check dc3co count to skip the test
If dc3co is not enabled in driver, counter will always be zero and we can simply skip the test. Fixes: https://gitlab.freedesktop.org/drm/intel/-/issues/4364 Signed-off-by: Mohammed Thasleem <mohammed.thasleem@intel.com> Reviewed-by: Swati Sharma <swati2.sharma@intel.com>
-rw-r--r--tests/i915/i915_pm_dc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/i915/i915_pm_dc.c b/tests/i915/i915_pm_dc.c
index 2c2c5086..a780f2cb 100644
--- a/tests/i915/i915_pm_dc.c
+++ b/tests/i915/i915_pm_dc.c
@@ -274,7 +274,8 @@ static void check_dc3co_with_videoplayback_like_load(data_t *data)
usleep(delay);
}
- check_dc_counter(data, CHECK_DC3CO, dc3co_prev_cnt);
+ igt_require_f(dc_state_wait_entry(data->debugfs_fd,
+ CHECK_DC3CO, dc3co_prev_cnt), "dc3co-vpb-simulation not enabled\n");
}
static void require_dc_counter(int debugfs_fd, int dc_flag)