Created
June 19, 2025 11:41
-
-
Save kode54/6b5697d1dc13180701226e480ed8bac9 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From de29251a8c899dd0522c63c5b55b677e52f9c449 Mon Sep 17 00:00:00 2001 | |
From: Christopher Snowhill <[email protected]> | |
Date: Thu, 19 Jun 2025 04:33:24 -0700 | |
Subject: [PATCH] drm/amdgpu: Enable async flip for cursor planes | |
amdgpu apparently fudges atomic flips if some software is also tweaking | |
the cursor planes during flips, which results in lovely fallback to non- | |
atomic flips. | |
Fixes: 41129e236f14 ("drm/amdgpu: Enable async flip on overlay planes") | |
Signed-off-by: Christopher Snowhill <[email protected]> | |
--- | |
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_plane.c | 3 ++- | |
1 file changed, 2 insertions(+), 1 deletion(-) | |
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 b7c6e8d13435..f0c98d67e1f3 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 | |
@@ -1268,7 +1268,8 @@ static int amdgpu_dm_plane_atomic_async_check(struct drm_plane *plane, | |
struct dm_crtc_state *dm_new_crtc_state; | |
if (flip) { | |
- if (plane->type != DRM_PLANE_TYPE_OVERLAY) | |
+ if (plane->type != DRM_PLANE_TYPE_OVERLAY && | |
+ plane->type != DRM_PLANE_TYPE_CURSOR) | |
return -EINVAL; | |
} else if (plane->type != DRM_PLANE_TYPE_CURSOR) { | |
return -EINVAL; | |
-- | |
2.50.0 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment