From: Leo Li <sunpeng.li@amd.com>
To: Mario Limonciello <superm1@kernel.org>, <amd-gfx@lists.freedesktop.org>
Cc: <Harry.Wentland@amd.com>, <alexander.deucher@amd.com>,
<stable@vger.kernel.org>
Subject: Re: [PATCH] drm/amd/display: Fix flip-done timeouts on mode1 reset
Date: Fri, 24 Jul 2026 10:23:57 -0400 [thread overview]
Message-ID: <21c843d2-a8fe-4e50-8101-a9b1b337eb80@amd.com> (raw)
In-Reply-To: <85f87f21-d04a-4d27-ae4c-9e0cd64517fe@kernel.org>
On 2026-07-23 15:55, Mario Limonciello wrote:
> On 7/23/26 14:47, Leo Li wrote:
>>
>>
>> On 2026-07-23 15:18, Mario Limonciello wrote:
>>>> diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_crtc.c b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_crtc.c
>>>> index 05d6915f9a6b0..079d4ccc88da6 100644
>>>> --- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_crtc.c
>>>> +++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_crtc.c
>>>> @@ -287,10 +287,19 @@ static inline int amdgpu_dm_crtc_set_vblank(struct drm_crtc *crtc, bool enable)
>>>> * is enabled. On DCE, vupdate is only needed in VRR mode.
>>>> */
>>>> if (amdgpu_ip_version(adev, DCE_HWIP, 0) != 0) {
>>>> - rc = amdgpu_dm_crtc_set_vupdate_irq(crtc, enable);
>>>> + if (enable) {
>>>> + rc = amdgpu_irq_get(adev, &adev->vupdate_irq, irq_type);
>>>> + drm_dbg_vbl(crtc->dev, "Get vupdate_irq ret=%d\n", rc);
>>>> + } else {
>>>> + rc = amdgpu_irq_put(adev, &adev->vupdate_irq, irq_type);
>>>> + drm_dbg_vbl(crtc->dev, "Put vupdate_irq ret=%d\n", rc);
>>>> + }
>>>
>>> For completeness in error handling, shouldn't you pass up the return code on non-zero? It looks like it could pass up to DRM core then.
>>
>> It's not shown in the context here, but the rc is passed up later:
>> https://elixir.bootlin.com/linux/v7.2-rc4/source/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_crtc.c#L295
>>
>> - Leo
>>
> Ah got it, thanks. No concerns.
>
> Reviewed-by: Mario Limonciello (AMD) <superm1@kernel.org>
Merged into asdn, thanks!
- Leo
>
>>>
>>>> } else if (dc_supports_vrr(dm->dc->ctx->dce_version)) {
>>>> if (enable) {
>>>> - /* vblank irq on -> Only need vupdate irq in vrr mode */
>>>> + /* vblank irq on -> Only need vupdate irq in vrr mode
>>>> + * Not ref-counted since we need explicit enable/disable
>>>> + * for DCE VRR handling
>>>> + */
>>>> if (amdgpu_dm_crtc_vrr_active(acrtc_state))
>>>> rc = amdgpu_dm_crtc_set_vupdate_irq(crtc, true);
>>>> } else {
>>
>
prev parent reply other threads:[~2026-07-24 14:24 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-23 18:01 [PATCH] drm/amd/display: Fix flip-done timeouts on mode1 reset sunpeng.li
2026-07-23 19:18 ` Mario Limonciello
2026-07-23 19:47 ` Leo Li
2026-07-23 19:55 ` Mario Limonciello
2026-07-24 14:23 ` Leo Li [this message]
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=21c843d2-a8fe-4e50-8101-a9b1b337eb80@amd.com \
--to=sunpeng.li@amd.com \
--cc=Harry.Wentland@amd.com \
--cc=alexander.deucher@amd.com \
--cc=amd-gfx@lists.freedesktop.org \
--cc=stable@vger.kernel.org \
--cc=superm1@kernel.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox