[igt-dev] [PATCH v2 2/2] lib/igt_kms: Return false on ENOSPC bandwidth failure

Mohammed Thasleem mohammed.thasleem at intel.com
Thu May 4 20:13:34 UTC 2023


Return false on ENOSPC bandwidth failure in MST config.

It check other then ENOSPC failure and if its ENOSPC then check all
active outputs modes to fit possible bw and return false if not found
any suitable bw.

v2: Check for other then ENOSPC failure. (Bhanu)

Signed-off-by: Mohammed Thasleem <mohammed.thasleem at intel.com>
---
 lib/igt_kms.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/lib/igt_kms.c b/lib/igt_kms.c
index a6e91f982..5047d4b1b 100644
--- a/lib/igt_kms.c
+++ b/lib/igt_kms.c
@@ -4574,6 +4574,8 @@ bool __override_all_active_output_modes_to_fit_bw(igt_display_t *display,
 
 		if (!ret)
 			return true;
+		else if (ret != -ENOSPC)
+			return false;
 	}
 
 	return false;
-- 
2.25.1



More information about the igt-dev mailing list