[PATCH i-g-t] tests/kms_display_modes: Skip test if big joiner display is connected

Sharma, Swati2 swati2.sharma at intel.com
Fri Nov 15 06:21:28 UTC 2024


Hi Jeevan,

We are doing similar thing in following patch

https://patchwork.freedesktop.org/patch/624329/?series=140349&rev=3

Lets have a lib func() for joiner mode.

Cc: santhosh.reddy.guddati at intel.com

On 14-11-2024 11:46 pm, Jeevan B wrote:
> High-resolution displays that support big joiner can cause extended mode
> tests to fail. This commit introduces a check to skip these tests if a
> big joiner display is connected, ensuring the test suite runs smoothly
> without unnecessary failures.
>
> v2: Add ultra joiner check.
>
> Signed-off-by: Jeevan B <jeevan.b at intel.com>
> ---
>   tests/kms_display_modes.c | 8 ++++++++
>   1 file changed, 8 insertions(+)
>
> diff --git a/tests/kms_display_modes.c b/tests/kms_display_modes.c
> index f1d8ab03d..eefe4e85e 100644
> --- a/tests/kms_display_modes.c
> +++ b/tests/kms_display_modes.c
> @@ -318,6 +318,14 @@ igt_main
>   		igt_display_require_output(&data.display);
>   
>   		for_each_connected_output(&data.display, output) {
> +			drmModeConnector *connector = output->config.connector;
> +			drmModeModeInfo mode;
> +			int max_dotclock = igt_get_max_dotclock(data.drm_fd);
> +
> +			igt_require_f(!bigjoiner_mode_found(data.drm_fd, connector, max_dotclock, &mode),
> +				      "Big Joiner Connector Found Unsupported Config\n");
> +			igt_require_f(!ultrajoiner_mode_found(data.drm_fd, connector, max_dotclock, &mode),
> +				      "Ultra Joiner Connector Found Unsupported Config\n");
>   			data.mst_output[count++] = output;
>   			if (output_is_dp_mst(&data, output, dp_mst_outputs))
>   				dp_mst_outputs++;


More information about the igt-dev mailing list