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

Petri Latvala petri.latvala at intel.com
Fri Apr 29 07:23:50 UTC 2022


On Thu, Apr 14, 2022 at 06:33:28PM -0600, 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)) {

This if becomes redundant now.


-- 
Petri Latvala



>  		/* Until this is force enabled, force modeset evasion. */
> -- 
> 2.35.1
> 


More information about the igt-dev mailing list