[i-g-t,11/12] tests/intel/kms_dp_fallback: add test for validating fallback

Joshi, Kunal1 kunal1.joshi at intel.com
Wed Aug 21 07:16:14 UTC 2024


Hello Santosh,

+
+static int check_condition_with_timeout(int drm_fd, igt_output_t *output,
+					condition_check_fn check_fn,
+					double interval, double timeout)
+{
+	struct timespec start_time, current_time;
+	double elapsed_time;
+
+	clock_gettime(CLOCK_MONOTONIC, &start_time);
+
+	while (1) {
+		if (igt_get_dp_pending_retrain(drm_fd, output) == 0) {
+			return 0;
+		}
Thanks for the catch will update in next revision.


Regards
Kunal Joshi


More information about the igt-dev mailing list