[PATCH i-g-t 5/7] lib/igt_kms: Handle EINVAL error as well
Kunal Joshi
kunal1.joshi at intel.com
Wed Sep 25 18:29:42 UTC 2024
Previously, only -ENOSPC was handled, but -EINVAL
can also occur under certain conditions when the
mode can't be set.
Signed-off-by: Kunal Joshi <kunal1.joshi at intel.com>
Suggested-by: Imre Deak <imre.deak at intel.com>
---
lib/igt_kms.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/igt_kms.c b/lib/igt_kms.c
index ca5fc92cd..c96008577 100644
--- a/lib/igt_kms.c
+++ b/lib/igt_kms.c
@@ -4927,7 +4927,7 @@ bool __override_all_active_output_modes_to_fit_bw(igt_display_t *display,
if (!ret)
return true;
- else if (ret != -ENOSPC)
+ else if (ret != -ENOSPC && ret != -EINVAL)
return false;
}
--
2.43.0
More information about the igt-dev
mailing list