diff options
| author | Anshuman Gupta <anshuman.gupta@intel.com> | 2020-05-12 16:04:13 +0530 |
|---|---|---|
| committer | Swati Sharma <swati2.sharma@intel.com> | 2020-05-18 17:28:17 +0530 |
| commit | 3505fcaa792da5a48dd84642c8cfdbca22f62774 (patch) | |
| tree | f236feac52fb5d02b378d99e6a58c8b6282a55db /tests | |
| parent | 2c6dfecee0ec9fed6370fc7673d85cf0414e5033 (diff) | |
tests/i915_pm_lpsp: screens-disabled subtest use igt_wait
When all screens are disabled, it takes some time to release
eDP/DP AUX IO power domain ref count. Also, delayed audio codec
disabling takes time to release AUDIO power domain ref-count,
using igt_wait to check lpsp after disabling all screens.
v2:
- Added a code comment for delay of igt_wait. [Animesh]
Reviewed-by: Animesh Manna <animesh.manna@intel.com>
Signed-off-by: Anshuman Gupta <anshuman.gupta@intel.com>
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/i915/i915_pm_lpsp.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/i915/i915_pm_lpsp.c b/tests/i915/i915_pm_lpsp.c index 0e9452fd..12670f22 100644 --- a/tests/i915/i915_pm_lpsp.c +++ b/tests/i915/i915_pm_lpsp.c @@ -94,7 +94,9 @@ static void screens_disabled_subtest(data_t *data) } igt_require_f(valid_output, "No connected output found\n"); - igt_assert_f(lpsp_is_enabled(data), "lpsp is not enabled\n%s:\n%s\n", + /* eDP panel may have power_cycle_delay of 600ms, 1sec delay is safer */ + igt_assert_f(igt_wait(lpsp_is_enabled(data), 1000, 100), + "lpsp is not enabled\n%s:\n%s\n", PWR_DOMAIN_INFO, data->pwr_dmn_info = igt_sysfs_get(data->debugfs_fd, PWR_DOMAIN_INFO)); } |
