[igt-dev] [PATCH i-g-t v4 5/6] tests/i915_pm_lpsp: screens-disabled subtest use igt_wait
Anshuman Gupta
anshuman.gupta at intel.com
Tue Mar 31 10:33:29 UTC 2020
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.
Signed-off-by: Anshuman Gupta <anshuman.gupta at intel.com>
---
tests/i915/i915_pm_lpsp.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/tests/i915/i915_pm_lpsp.c b/tests/i915/i915_pm_lpsp.c
index 74752f2f..a049a49e 100644
--- a/tests/i915/i915_pm_lpsp.c
+++ b/tests/i915/i915_pm_lpsp.c
@@ -89,7 +89,8 @@ 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), "%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));
}
--
2.26.0
More information about the igt-dev
mailing list