summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnshuman Gupta <anshuman.gupta@intel.com>2020-07-16 19:45:57 +0530
committerSwati Sharma <swati2.sharma@intel.com>2020-07-22 11:27:23 +0530
commitf0ddc00a492f49faceaebafec7e55adbf62e46fb (patch)
treea4ad5ffef111d7ca664f9970f02c2e4e743d694b
parent540f9de91ab2816885a9076a4c0835cb3dc67a97 (diff)
tests/i915_pm_lpsp: Add igt_wait to test lpsp
Sometimes LPSP test may fail due to HOTPLUG events, which initiates AUX transaction in order to detect a Connector status, these ongoing AUX transaction may fail the LPSP igt test. Adding a igt_wait will avoid such failures. Some eDP panel may have power_cycle_delay of 600ms, therefore 1sec delay is safer. Cc: Animesh Manna <animesh.manna@intel.com> Signed-off-by: Anshuman Gupta <anshuman.gupta@intel.com> Reviewed-by: Animesh Manna <animesh.manna@intel.com>
-rw-r--r--tests/i915/i915_pm_lpsp.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/i915/i915_pm_lpsp.c b/tests/i915/i915_pm_lpsp.c
index 12670f22..e9a59307 100644
--- a/tests/i915/i915_pm_lpsp.c
+++ b/tests/i915/i915_pm_lpsp.c
@@ -163,7 +163,8 @@ static void test_lpsp(data_t *data)
data->mode->vdisplay <= 2160);
setup_lpsp_output(data);
- igt_assert_f(lpsp_is_enabled(data), "%s: lpsp is not enabled\n%s:\n%s\n",
+ igt_assert_f(igt_wait(lpsp_is_enabled(data), 1000, 100),
+ "%s: lpsp is not enabled\n%s:\n%s\n",
data->output->name, PWR_DOMAIN_INFO, data->pwr_dmn_info =
igt_sysfs_get(data->debugfs_fd, PWR_DOMAIN_INFO));
}