Skip to contentSkip to conversation

tests/i915/kms_frontbuffer_tracking: Increase the poll timeout for simulation platform

PATCH In review Nidhi Gupta 2 participants 2 messages Jul 18, 2022

lore
Share & tools
lore
#0 lore raw

PATCH v3 1/1 tests/i915/kms_frontbuffer_tracking: Increase the poll timeout for simulation platform

Currently the poll timeout value is 1000ms which is very less for simulation, hence increased it to 10000ms.

---
 tests/i915/kms_frontbuffer_tracking.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
tests/i915/kms_frontbuffer_tracking.c +3 -1
index 814ddb46..248ff36b 100644
@@ -36,6 +36,8 @@
 #include "igt_sysfs.h"
 #include "igt_psr.h"
 
+#define TIME SLOW_QUICK(1000, 10000)
+
 IGT_TEST_DESCRIPTION("Test the Kernel's frontbuffer tracking mechanism and "
 		     "its related features: FBC, PSR and DRRS");
 
@@ -2306,7 +2308,7 @@ static void wait_flip_event(void)
 	pfd.events = POLLIN;
 	pfd.revents = 0;
 
-	rc = poll(&pfd, 1, 1000);
+	rc = poll(&pfd, 1, TIME);
 	switch (rc) {
 	case 0:
 		igt_assert_f(false, "Poll timeout\n");
Signature · 1 line
2.26.2
#1 lore raw
Quoted 4 lines · Nidhi Gupta

Currently the poll timeout value is 1000ms which is very less for simulation, hence increased it to 10000ms.

It seems, you tagged a wrong issue.

- Bhanu

Quoted 28 lines
---
  tests/i915/kms_frontbuffer_tracking.c | 4 +++-
  1 file changed, 3 insertions(+), 1 deletion(-)
tests/i915/kms_frontbuffer_tracking.c +3 -1
index 814ddb46..248ff36b 100644
@@ -36,6 +36,8 @@
  #include "igt_sysfs.h"
  #include "igt_psr.h"
 
+#define TIME SLOW_QUICK(1000, 10000)
+
  IGT_TEST_DESCRIPTION("Test the Kernel's frontbuffer tracking mechanism and "
  		     "its related features: FBC, PSR and DRRS");
 
@@ -2306,7 +2308,7 @@ static void wait_flip_event(void)
  	pfd.events = POLLIN;
  	pfd.revents = 0;
 
-	rc = poll(&pfd, 1, 1000);
+	rc = poll(&pfd, 1, TIME);
  	switch (rc) {
  	case 0:
  		igt_assert_f(false, "Poll timeout\n");