[igt-dev] [PATCH 2/2] tests/kms_panel_fitting: Skip atomic-fastset for non-i915

Rodrigo Siqueira Jordao Rodrigo.Siqueira at amd.com
Thu Apr 28 21:58:44 UTC 2022



On 2022-04-14 20:33, Alex Hung wrote:
> In kernel function drm_atomic_check_only checks allow_modeset,
> and it can return -EINVAL (-22) for non-i915 devices.
> 
> Therefore, let's skip atomic-fastset subtest for non-i915 until
> specific implementation is added for each gpu driver.
> 
> Signed-off-by: Alex Hung <alex.hung at amd.com>
> ---
>   tests/kms_panel_fitting.c | 1 +
>   1 file changed, 1 insertion(+)
> 
> diff --git a/tests/kms_panel_fitting.c b/tests/kms_panel_fitting.c
> index 7ed0d196..9f607376 100644
> --- a/tests/kms_panel_fitting.c
> +++ b/tests/kms_panel_fitting.c
> @@ -242,6 +242,7 @@ static void test_atomic_fastset(data_t *data)
>   	int valid_tests = 0;
>   	struct stat sb;
>   
> +	igt_require_f(is_i915_device(display->drm_fd), "not valid for non-i915 devices\n");
>   
>   	if (is_i915_device(display->drm_fd)) {
>   		/* Until this is force enabled, force modeset evasion. */

Reviewed-by: Rodrigo.Siqueira <Rodrigo.Siqueira at amd.com>


More information about the igt-dev mailing list