[igt-dev] [PATCH i-g-t 3/3] tests/kms_cursor_legacy: Add dependency size for spinner creation

Kamil Konieczny kamil.konieczny at linux.intel.com
Thu Jan 12 13:23:31 UTC 2023


On 2023-01-11 at 19:12:05 +0100, Zbigniew Kempczyński wrote:
> Fix the bug where lack of information about dependency object size
> during spinner creation may lead to object overlapping and failing
> with ENOSPC.
> 
> Fixes: https://gitlab.freedesktop.org/drm/intel/-/issues/7681
> 
> Signed-off-by: Zbigniew Kempczyński <zbigniew.kempczynski at intel.com>

Reviewed-by: Kamil Konieczny <kamil.konieczny at linux.intel.com>

> ---
>  tests/kms_cursor_legacy.c | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/tests/kms_cursor_legacy.c b/tests/kms_cursor_legacy.c
> index 6b75e98cb8..f1e55906a0 100644
> --- a/tests/kms_cursor_legacy.c
> +++ b/tests/kms_cursor_legacy.c
> @@ -1471,7 +1471,8 @@ static void flip_vs_cursor_busy_crc(igt_display_t *display, bool atomic)
>  
>  		spin = igt_spin_new(display->drm_fd,
>  				    .ahnd = ahnd,
> -				    .dependency = fb_info[1].gem_handle);
> +				    .dependency = fb_info[1].gem_handle,
> +				    .dependency_size = fb_info[1].size);
>  
>  		vblank_start = kmstest_get_vblank(display->drm_fd, pipe, DRM_VBLANK_NEXTONMISS);
>  
> -- 
> 2.34.1
> 


More information about the igt-dev mailing list