[PATCH i-g-t v3 7/7] lib/igt_psr: Adjust igt_wait intervals
Jouni Högander
jouni.hogander at intel.com
Fri Jun 14 05:38:39 UTC 2024
Currently we are observing problems with psr_wait_update. Poll interval is
10 ms. With eDP Panel Replay we are seeing scenario where on first poll PSR
status haven't yet changed to !SLEEP. Then we are waiting 10ms before next
check. During this 10ms sleep status changes to !SLEEP and back to SLEEP
and this is not noticed by psr_wait update and causing failure.
Fix this by adjusting poll intervals to 1ms.
Signed-off-by: Jouni Högander <jouni.hogander at intel.com>
---
lib/igt_psr.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/lib/igt_psr.c b/lib/igt_psr.c
index 42012243d..bc8e0e830 100644
--- a/lib/igt_psr.c
+++ b/lib/igt_psr.c
@@ -100,12 +100,12 @@ bool psr_wait_entry(int debugfs_fd, enum psr_mode mode, igt_output_t *output)
bool psr_wait_update(int debugfs_fd, enum psr_mode mode, igt_output_t *output)
{
- return igt_wait(!psr_active_check(debugfs_fd, mode, output), 40, 10);
+ return igt_wait(!psr_active_check(debugfs_fd, mode, output), 40, 1);
}
bool psr_long_wait_update(int debugfs_fd, enum psr_mode mode, igt_output_t *output)
{
- return igt_wait(!psr_active_check(debugfs_fd, mode, output), 500, 10);
+ return igt_wait(!psr_active_check(debugfs_fd, mode, output), 500, 1);
}
static ssize_t psr_write(int debugfs_fd, const char *buf, igt_output_t *output)
--
2.34.1
More information about the igt-dev
mailing list