From: syed saba kareem <ssabakar@amd.com>
To: Marian Postevca <posteuca@mutex.one>
Cc: broonie@kernel.org, alsa-devel@alsa-project.org,
Vijendar.Mukunda@amd.com, Basavaraj.Hiregoudar@amd.com,
Sunil-kumar.Dommati@amd.com, Liam Girdwood <lgirdwood@gmail.com>,
Jaroslav Kysela <perex@perex.cz>, Takashi Iwai <tiwai@suse.com>,
Yang Yingliang <yangyingliang@huawei.com>,
Venkata Prasad Potturu <venkataprasad.potturu@amd.com>,
V sujith kumar Reddy <Vsujithkumar.Reddy@amd.com>,
ye xingchen <ye.xingchen@zte.com.cn>,
linux-kernel@vger.kernel.org
Subject: Re: Regression apparently caused by commit 088a40980efbc2c449b72f0f2c7ebd82f71d08e2 "ASoC: amd: acp: add pm ops support for acp pci driver"
Date: Fri, 4 Aug 2023 19:38:36 +0530 [thread overview]
Message-ID: <fcb8f03e-bad1-966c-d454-b7ef7cb62454@amd.com> (raw)
In-Reply-To: <87a5v8szhc.fsf@mutex.one>
On 8/4/23 00:52, Marian Postevca wrote:
> I'm trying to develop a sound machine driver based on the acp legacy driver.
> The first version of the driver was sent for review on the alsa mailing list this
> spring: https://lore.kernel.org/all/20230320203519.20137-1-posteuca@mutex.one
>
> I'm trying to fix some of the issues that were brought up during the review back then,
> but when I ported the patches to the latest commit on the for-next
> branch, I noticed a regression where I couldn't hear any sound at all.
>
> So I started a bisect session and found that the first bad commit is:
> ASoC: amd: acp: add pm ops support for acp pci driver
> commit 088a40980efbc2c449b72f0f2c7ebd82f71d08e2
> https://lore.kernel.org/lkml/20230622152406.3709231-11-Syed.SabaKareem@amd.com
>
> If I revert this commit sound works as expected. So I started tinkering a little bit
> with it and I believe that what happens is that the acp pci driver
> enters the autosuspend state and never leaves this state at all.
> I noticed this because if I increase the autosuspend delay to a much
> larger value, then the sound works until that delay passes.
> I added traces and I can see that when the delay expires the suspend callback snd_acp_suspend()
> gets called, but the resume callback snd_acp_resume() never gets called.
>
> I'm no expert in runtime power management (though I did read a bit on it), so I don't understand
> all the things that happen underneath, but one thing that is not clear to me is who's supposed
> to mark activity on this device and keep it from entering autosuspend if the user wants to play
> some sound? Shouldn't there be some counterpart that calls pm_runtime_mark_last_busy() ?
> I looked through the code and can't find who's calling pm_runtime_mark_last_busy().
>
> Some help here would be welcome. Is there something missing in my machine driver code, or
> is the runtime pm handling in acp pci driver wrong?
We haven't up streamed pm ops for Renoir platform.
That is the cause for the issue.
Will upstream them in a week.
next prev parent reply other threads:[~2023-08-04 14:10 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-08-03 19:22 Regression apparently caused by commit 088a40980efbc2c449b72f0f2c7ebd82f71d08e2 "ASoC: amd: acp: add pm ops support for acp pci driver" Marian Postevca
2023-08-03 19:42 ` Mark Brown
2023-08-04 14:08 ` syed saba kareem [this message]
2023-11-02 21:30 ` Marian Postevca
2023-11-02 23:11 ` Bagas Sanjaya
2023-11-03 13:30 ` syed saba kareem
2023-11-03 13:43 ` Bagas Sanjaya
2023-11-22 8:55 ` Linux regression tracking (Thorsten Leemhuis)
2023-11-22 9:32 ` syed saba kareem
2023-11-22 10:27 ` Linux regression tracking (Thorsten Leemhuis)
2023-11-22 21:55 ` Marian Postevca
2023-11-23 13:58 ` syed saba kareem
2023-12-05 13:32 ` Linux regression tracking (Thorsten Leemhuis)
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=fcb8f03e-bad1-966c-d454-b7ef7cb62454@amd.com \
--to=ssabakar@amd.com \
--cc=Basavaraj.Hiregoudar@amd.com \
--cc=Sunil-kumar.Dommati@amd.com \
--cc=Vijendar.Mukunda@amd.com \
--cc=Vsujithkumar.Reddy@amd.com \
--cc=alsa-devel@alsa-project.org \
--cc=broonie@kernel.org \
--cc=lgirdwood@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=perex@perex.cz \
--cc=posteuca@mutex.one \
--cc=tiwai@suse.com \
--cc=venkataprasad.potturu@amd.com \
--cc=yangyingliang@huawei.com \
--cc=ye.xingchen@zte.com.cn \
/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;
as well as URLs for NNTP newsgroup(s).