[igt-dev] [PATCH i-g-t] tests/kms_big_joiner: Check if sequential pipe is enabled

Modem, Bhanuprakash bhanuprakash.modem at intel.com
Mon Jun 19 07:29:04 UTC 2023


Hi Karthik,

On Mon-19-06-2023 11:28 am, Karthik B S wrote:
> As big joiner is only possible on sequential pipe combinations,
> check that the required pipe is enabled before attempting
> a big joiner modeset.
> 
> Signed-off-by: Karthik B S <karthik.b.s at intel.com>
> ---
>   tests/i915/kms_big_joiner.c | 7 +++++--
>   1 file changed, 5 insertions(+), 2 deletions(-)
> 
> diff --git a/tests/i915/kms_big_joiner.c b/tests/i915/kms_big_joiner.c
> index b9dda58f..47c1f5aa 100644
> --- a/tests/i915/kms_big_joiner.c
> +++ b/tests/i915/kms_big_joiner.c
> @@ -225,8 +225,11 @@ igt_main
>   	igt_subtest_with_dynamic("basic") {
>   		for (i = 0; i < data.n_pipes - 1; i++) {
>   			data.pipe1 = pipe_seq[i];
> -			igt_dynamic_f("pipe-%s", kmstest_pipe_name(pipe_seq[i]))
> -				test_basic_modeset(&data);
> +			/* Check if the consecutive pipe is enabled*/
> +			if (pipe_seq[i + 1] == data.pipe1 + 1) {

Is there any way to use igt_check_bigjoiner_support() which is having 
all bigjoiner constraints?

- Bhanu

> +				igt_dynamic_f("pipe-%s", kmstest_pipe_name(pipe_seq[i]))
> +					test_basic_modeset(&data);
> +			}
>   		}
>   	}
>   


More information about the igt-dev mailing list