lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <7676d80e-2310-47db-86fd-5711f7f19b89@igalia.com>
Date: Wed, 15 Jan 2025 11:49:50 -0300
From: André Almeida <andrealmeid@...lia.com>
To: Harry Wentland <harry.wentland@....com>,
 Alex Deucher <alexander.deucher@....com>
Cc: kernel-dev@...lia.com, Christian König
 <christian.koenig@....com>, Simona Vetter <simona@...ll.ch>,
 Rodrigo Siqueira <Rodrigo.Siqueira@....com>, Simon Ser
 <contact@...rsion.fr>, dmitry.baryshkov@...aro.org,
 Xinhui Pan <Xinhui.Pan@....com>, Thomas Zimmermann <tzimmermann@...e.de>,
 Xaver Hugl <xaver.hugl@...il.com>, Maxime Ripard <mripard@...nel.org>,
 Maarten Lankhorst <maarten.lankhorst@...ux.intel.com>,
 Daniel Stone <daniel@...ishbar.org>, dri-devel@...ts.freedesktop.org,
 joshua@...ggi.es, linux-kernel@...r.kernel.org,
 amd-gfx@...ts.freedesktop.org, David Airlie <airlied@...il.com>,
 Leo Li <sunpeng.li@....com>, ville.syrjala@...ux.intel.com
Subject: Re: [PATCH v11 2/2] drm/amdgpu: Enable async flip on overlay planes

Hey Harry,

Gentle ping on this one :)

Em 12/12/2024 16:19, André Almeida escreveu:
> amdgpu can handle async flips on overlay planes, so allow it for atomic
> async checks.
> 
> Signed-off-by: André Almeida <andrealmeid@...lia.com>
> ---
>   drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_plane.c | 11 +++++++----
>   1 file changed, 7 insertions(+), 4 deletions(-)
> 
> diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_plane.c b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_plane.c
> index 495e3cd70426db0182cb2811bc6d5d09f52f8a4b..2792d393157beec12d6e96843c43158c03f16027 100644
> --- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_plane.c
> +++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_plane.c
> @@ -1260,22 +1260,25 @@ static int amdgpu_dm_plane_atomic_check(struct drm_plane *plane,
>   }
>   
>   static int amdgpu_dm_plane_atomic_async_check(struct drm_plane *plane,
> -					      struct drm_atomic_state *state)
> +					      struct drm_atomic_state *state, bool flip)
>   {
>   	struct drm_crtc_state *new_crtc_state;
>   	struct drm_plane_state *new_plane_state;
>   	struct dm_crtc_state *dm_new_crtc_state;
>   
> -	/* Only support async updates on cursor planes. */
> -	if (plane->type != DRM_PLANE_TYPE_CURSOR)
> +	if (flip) {
> +		if (plane->type != DRM_PLANE_TYPE_OVERLAY)
> +			return -EINVAL;
> +	} else if (plane->type != DRM_PLANE_TYPE_CURSOR)
>   		return -EINVAL;
>   
>   	new_plane_state = drm_atomic_get_new_plane_state(state, plane);
>   	new_crtc_state = drm_atomic_get_new_crtc_state(state, new_plane_state->crtc);
>   	dm_new_crtc_state = to_dm_crtc_state(new_crtc_state);
>   	/* Reject overlay cursors for now*/
> -	if (dm_new_crtc_state->cursor_mode == DM_CURSOR_OVERLAY_MODE)
> +	if (!flip && dm_new_crtc_state->cursor_mode == DM_CURSOR_OVERLAY_MODE) {
>   		return -EINVAL;
> +	}
>   
>   	return 0;
>   }
> 


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ