From: "Wu, David" <David.Wu3@amd.com>
To: Alex Deucher <alexdeucher@gmail.com>,
"Deucher, Alexander" <Alexander.Deucher@amd.com>
Cc: "amd-gfx@lists.freedesktop.org" <amd-gfx@lists.freedesktop.org>
Subject: Re: [PATCH] drm/amdgpu/vcn: drop extra cancel_delayed_work_sync()
Date: Wed, 20 Aug 2025 19:29:26 +0000 [thread overview]
Message-ID: <45a4074e-860a-4c82-8fa2-6423286a2268@amd.com> (raw)
In-Reply-To: <CADnq5_PqnUUxF7Suj0fg4Q6F6ELa8ugT78gFWHd5Djg1GGB8hg@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1439 bytes --]
[AMD Official Use Only - AMD Internal Distribution Only]
one thing I noticed:
amdgpu_vcn_suspend() also gets called in vcn_v2_5_sw_fini() for example
where there isn't cancel_delayed_work_sync() call. Does the removal work in this case?
David
On 8/20/2025 2:36 PM, Alex Deucher wrote:
Ping?
On Wed, Aug 13, 2025 at 3:37 PM Alex Deucher <alexander.deucher@amd.com><mailto:alexander.deucher@amd.com> wrote:
We already call this in the hw_fini() methods for all
VCN instances, so no need to call it again in
amdgpu_vcn_suspend().
Signed-off-by: Alex Deucher <alexander.deucher@amd.com><mailto:alexander.deucher@amd.com>
---
drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c
index 9a76e11d1c184..fd8ebf4b5a824 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c
@@ -357,8 +357,6 @@ int amdgpu_vcn_suspend(struct amdgpu_device *adev, int i)
if (adev->vcn.harvest_config & (1 << i))
return 0;
- cancel_delayed_work_sync(&adev->vcn.inst[i].idle_work);
-
/* err_event_athub and dpc recovery will corrupt VCPU buffer, so we need to
* restore fw data and clear buffer in amdgpu_vcn_resume() */
if (in_ras_intr || adev->pcie_reset_ctx.in_link_reset)
--
2.50.1
[-- Attachment #2: Type: text/html, Size: 2392 bytes --]
next prev parent reply other threads:[~2025-08-20 19:29 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-08-13 19:36 [PATCH] drm/amdgpu/vcn: drop extra cancel_delayed_work_sync() Alex Deucher
2025-08-20 18:36 ` Alex Deucher
2025-08-20 19:29 ` Wu, David [this message]
2025-08-20 19:43 ` Alex Deucher
2025-08-21 20:12 ` David Wu
2025-08-21 14:56 ` Liu, Leo
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=45a4074e-860a-4c82-8fa2-6423286a2268@amd.com \
--to=david.wu3@amd.com \
--cc=Alexander.Deucher@amd.com \
--cc=alexdeucher@gmail.com \
--cc=amd-gfx@lists.freedesktop.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