summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJouni Högander <jouni.hogander@intel.com>2024-06-14 08:38:39 +0300
committerJouni Högander <jouni.hogander@intel.com>2024-06-24 14:07:15 +0300
commit9119f9c5dbbb969438b3424dc2f3b30f3b442aab (patch)
tree11c2faa04089b4466b5d8f18969e041893be01ee
parent488cee8412f75243a7c2c3b731e5989ac30c562e (diff)
lib/igt_psr: Adjust igt_wait intervals
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@intel.com> Reviewed-by: Kunal Joshi <kunal1.joshi@intel.com>
-rw-r--r--lib/igt_psr.c4
1 files 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)