From: "Christopher Snowhill" <chris@kode54.net>
To: "Christopher Snowhill" <kode54@gmail.com>,
<amd-gfx@lists.freedesktop.org>
Cc: "Alex Deucher" <alexander.deucher@amd.com>,
"Christian König" <christian.koenig@amd.com>,
"Christopher Snowhill" <chris@kode54.net>
Subject: Re: [RFC PATCH] drm/amdgpu: Enable async flip for cursor planes
Date: Fri, 20 Jun 2025 03:10:08 -0700 [thread overview]
Message-ID: <DARA1U86AS72.QOIEVZWCFPYC@kode54.net> (raw)
In-Reply-To: <20250619125507.54384-1-kode54@gmail.com>
Here's another alternative change, which may be more thorough. It does
seem to fix the issue, at least. The issue does indeed appear to be
no-op plane changes sent to the cursor plane.
If anyone wants to propose style changes, and suggest a proper commit
message, if this is indeed a welcome fix for the problem, please let me
know.
diff --git a/drivers/gpu/drm/drm_atomic_uapi.c b/drivers/gpu/drm/drm_atomic_uapi.c
index c2726af6698e..b741939698e8 100644
--- a/drivers/gpu/drm/drm_atomic_uapi.c
+++ b/drivers/gpu/drm/drm_atomic_uapi.c
@@ -1087,17 +1087,22 @@ int drm_atomic_set_property(struct drm_atomic_state *state,
}
/* ask the driver if this non-primary plane is supported */
- if (plane->type != DRM_PLANE_TYPE_PRIMARY) {
- ret = -EINVAL;
+ else if (plane->type != DRM_PLANE_TYPE_PRIMARY) {
+ ret = drm_atomic_plane_get_property(plane, plane_state,
+ prop, &old_val);
+
+ if (ret || old_val != prop_value) {
+ ret = -EINVAL;
- if (plane_funcs && plane_funcs->atomic_async_check)
- ret = plane_funcs->atomic_async_check(plane, state, true);
+ if (plane_funcs && plane_funcs->atomic_async_check)
+ ret = plane_funcs->atomic_async_check(plane, state, true);
- if (ret) {
- drm_dbg_atomic(prop->dev,
- "[PLANE:%d:%s] does not support async flips\n",
- obj->id, plane->name);
- break;
+ if (ret) {
+ drm_dbg_atomic(prop->dev,
+ "[PLANE:%d:%s] does not support async flips\n",
+ obj->id, plane->name);
+ break;
+ }
}
}
}
next prev parent reply other threads:[~2025-06-20 10:10 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-06-19 12:55 [RFC PATCH] drm/amdgpu: Enable async flip for cursor planes Christopher Snowhill
2025-06-20 9:22 ` Christopher Snowhill
2025-06-20 10:10 ` Christopher Snowhill [this message]
2025-06-23 10:46 ` Christopher Snowhill
2025-06-23 11:06 ` Christopher Snowhill
2025-06-23 13:38 ` Christopher Snowhill
2025-06-23 15:33 ` Alex Deucher
2025-08-15 13:17 ` Alex Deucher
2025-08-15 23:21 ` Christopher Snowhill
2025-08-15 16:11 ` Leo Li
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=DARA1U86AS72.QOIEVZWCFPYC@kode54.net \
--to=chris@kode54.net \
--cc=alexander.deucher@amd.com \
--cc=amd-gfx@lists.freedesktop.org \
--cc=christian.koenig@amd.com \
--cc=kode54@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.