[igt-dev] [PATCH v3 2/2] lib/igt_kms: Check for other modes to fit on bw when ENOSPC failure
Modem, Bhanuprakash
bhanuprakash.modem at intel.com
Tue May 9 05:24:09 UTC 2023
On Mon-08-05-2023 01:09 am, Mohammed Thasleem wrote:
> 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)
> v3: Updated commit message.
>
> Signed-off-by: Mohammed Thasleem <mohammed.thasleem at intel.com>
Reviewed-by: Bhanuprakash Modem <bhanuprakash.modem 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;
More information about the igt-dev
mailing list