Skip to contentSkip to conversation

tests/amdgpu: Fix for HDMI Compliance Automation

PATCH New Fangzhi 1 participant 1 message Jul 17

lore
Share & tools
lore

Fangzhi

author
#0 lore raw

PATCH 2/3 tests/amdgpu: Fix for HDMI Compliance Automation

From: Mark Broadworth <[email protected]>

It is to fix hand shaking issue between DUT and the box. Need to block until SIGNALRM triggered.

---
 tools/amd_hdmi_compliance.c | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)
tools/amd_hdmi_compliance.c +6 -2
index dc24430dd..14f455320 100644
@@ -915,8 +915,12 @@ static void test_vic_mode(data_t *data, int vic, int conn_id)
 	igt_plane_set_fb(data->primary, &afb);
 	igt_display_commit_atomic(display, DRM_MODE_ATOMIC_ALLOW_MODESET, NULL);
 
-	igt_info("Press [Enter] to finish\n");
-	wait_for_keypress();
+	if (data->timeout_seconds > 0)
+		pause(); /* block until SIGALRM fires (works when detached) */
+	else {
+		igt_info("Press [Enter] to finish\n");
+		wait_for_keypress();
+	}
 
 	test_fini(data);
 }
Signature · 1 line
2.43.0