Skip to contentSkip to conversation

kms_psr_sink_crc: Reduce our time out for PSR active.

PATCH New Rodrigo Vivi 1 participant 2 messages Dec 8, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 kms_psr_sink_crc: Reduce our time out for PSR active.

Using same timeout value as kms_fronbuffer_tracking and for same reasons exposed at 'commit 83582f9b ("kms_frontbuffer_tracking:
Increase the time we wait for PSR.")'

---
 tests/kms_psr_sink_crc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tests/kms_psr_sink_crc.c +1 -1
index 8843ed8..8cd11a7 100644
@@ -260,7 +260,7 @@ static bool psr_active(data_t *data)
 
 static bool wait_psr_entry(data_t *data)
 {
-	int timeout = 10;
+	int timeout = 5;
 	while (timeout--) {
 		if (psr_active(data))
 			return true;
Signature · 6 lines
2.4.3

_______________________________________________
Intel-gfx mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/intel-gfx
#1 lore raw

PATCH 2/2 kms_psr_sink_crc: Add BAT test for PSR active.

It takes from 2 to 5 seconds to run.

---
 tests/kms_psr_sink_crc.c | 5 +++++
 1 file changed, 5 insertions(+)
tests/kms_psr_sink_crc.c +5 -0
index 8cd11a7..5fad9b5 100644
@@ -569,6 +569,11 @@ int main(int argc, char *argv[])
 		display_init(&data);
 	}
 
+	igt_subtest("psr_basic") {
+		setup_test_plane(&data);
+		igt_assert(wait_psr_entry(&data));
+	}
+
 	for (op = PAGE_FLIP; op <= RENDER; op++) {
 		igt_subtest_f("primary_%s", op_str(op)) {
 			data.test_plane = PRIMARY;
Signature · 6 lines
2.4.3

_______________________________________________
Intel-gfx mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/intel-gfx