From: Mario Limonciello <superm1@kernel.org>
To: "Przemysław Kopa" <prz.kopa@gmail.com>,
"Harry Wentland" <harry.wentland@amd.com>
Cc: amd-gfx@lists.freedesktop.org
Subject: Re: [REGRESSION] AMD HDMI/DP audio broken after suspend since commit 50e0bae34fa6
Date: Thu, 4 Sep 2025 22:37:18 -0500 [thread overview]
Message-ID: <1cea0d56-7739-4ad9-bf8e-c9330faea2bb@kernel.org> (raw)
In-Reply-To: <13cba029-8c3d-48df-9f76-8b2ed0fff85d@gmail.com>
On 9/4/2025 8:03 AM, Przemysław Kopa wrote:
>> I'm attaching two new dmesg logs.
>
> Sorry, I attached wrong files to my previous message. The proper ones
> are attached to this one.
I'm guessing what's going on is a race between the HDMI device going to
D3 through snd-hda-intel (which provides HDMI) and the prepare() callback.
The easiest solution will be to drop the prepare() and complete()
callbacks, but I will need to think about this because we had a variety
of reasons for adding them.
Have a try with this diff on 6.17-rc4.
diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
index a0ca3b2c6bd8..d83aeeaf5653 100644
--- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
+++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
@@ -3127,25 +3127,6 @@ static void dm_destroy_cached_state(struct
amdgpu_device *adev)
dm->cached_state = NULL;
}
-static void dm_complete(struct amdgpu_ip_block *ip_block)
-{
- struct amdgpu_device *adev = ip_block->adev;
-
- dm_destroy_cached_state(adev);
-}
-
-static int dm_prepare_suspend(struct amdgpu_ip_block *ip_block)
-{
- struct amdgpu_device *adev = ip_block->adev;
-
- if (amdgpu_in_reset(adev))
- return 0;
-
- WARN_ON(adev->dm.cached_state);
-
- return dm_cache_state(adev);
-}
-
static int dm_suspend(struct amdgpu_ip_block *ip_block)
{
struct amdgpu_device *adev = ip_block->adev;
@@ -3571,10 +3552,8 @@ static const struct amd_ip_funcs amdgpu_dm_funcs = {
.early_fini = amdgpu_dm_early_fini,
.hw_init = dm_hw_init,
.hw_fini = dm_hw_fini,
- .prepare_suspend = dm_prepare_suspend,
.suspend = dm_suspend,
.resume = dm_resume,
- .complete = dm_complete,
.is_idle = dm_is_idle,
.wait_for_idle = dm_wait_for_idle,
.check_soft_reset = dm_check_soft_reset,
next prev parent reply other threads:[~2025-09-05 3:37 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-08-31 10:12 [REGRESSION] AMD HDMI/DP audio broken after suspend since commit 50e0bae34fa6 Przemysław Kopa
2025-09-03 3:35 ` Mario Limonciello
2025-09-03 12:21 ` Przemysław Kopa
2025-09-03 18:22 ` Mario Limonciello
2025-09-04 12:24 ` Przemysław Kopa
2025-09-04 13:03 ` Przemysław Kopa
2025-09-05 3:37 ` Mario Limonciello [this message]
2025-09-05 13:49 ` Przemysław Kopa
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=1cea0d56-7739-4ad9-bf8e-c9330faea2bb@kernel.org \
--to=superm1@kernel.org \
--cc=amd-gfx@lists.freedesktop.org \
--cc=harry.wentland@amd.com \
--cc=prz.kopa@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.