From: Takashi Iwai <tiwai@suse.de>
To: Kai-Heng Feng <kai.heng.feng@canonical.com>
Cc: "Rafael J. Wysocki" <rjw@rjwysocki.net>,
"Kenneth R . Crudup" <kenny@panix.com>,
Pavel Machek <pavel@ucw.cz>, Len Brown <len.brown@intel.com>,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
"open list:HIBERNATION (aka Software Suspend,
aka swsusp)" <linux-pm@vger.kernel.org>,
open list <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] PM: sleep: core: Resume suspended device if direct-complete is disabled
Date: Thu, 28 Jan 2021 09:19:58 +0100 [thread overview]
Message-ID: <s5h35ylxykx.wl-tiwai@suse.de> (raw)
In-Reply-To: <CAAd53p5cg=ye5DnXAhb89HoUyJG6ecx3-OQp4ntgFumQWSnxQA@mail.gmail.com>
On Thu, 28 Jan 2021 09:15:10 +0100,
Kai-Heng Feng wrote:
>
> On Thu, Jan 28, 2021 at 4:09 PM Takashi Iwai <tiwai@suse.de> wrote:
> >
> > On Thu, 31 Dec 2020 07:03:19 +0100,
> > Kai-Heng Feng wrote:
> > >
> > > HDA controller can't be runtime-suspended after commit 215a22ed31a1
> > > ("ALSA: hda: Refactor codjc PM to use direct-complete optimization"),
> > > which enables direct-complete for HDA codec.
> > >
> > > The HDA codec driver doesn't expect direct-complete will be disabled
> > > after it returns a positive value from prepare() callback. So freeze()
> > > is called directly when it's runtime-suspended, breaks the balance of
> > > its internal codec_powered counting.
> > >
> > > So if a device is prepared for direct-complete but PM core breaks the
> > > assumption, resume the device to keep PM operations balanced.
> > >
> > > Fixes: 215a22ed31a1 ("ALSA: hda: Refactor codec PM to use direct-complete optimization")
> > > Signed-off-by: Kai-Heng Feng <kai.heng.feng@canonical.com>
> >
> > Kai-Heng, is this fix still needed for 5.11?
>
> No it's not needed anymore because "ALSA: hda: Balance runtime/system
> PM if direct-complete is disabled" is in place.
>
> >
> > The description mentions about HD-audio controller, while the recent
> > revert was the HD-audio codec, so I suppose it's still affected?
>
> Not affected anymore if above mentioned patch is applied.
OK, thanks for clarification!
Takashi
next prev parent reply other threads:[~2021-01-28 8:21 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-12-31 6:03 Kai-Heng Feng
2021-01-28 8:09 ` Takashi Iwai
2021-01-28 8:15 ` Kai-Heng Feng
2021-01-28 8:19 ` Takashi Iwai [this message]
2021-01-28 10:23 ` Rafael J. Wysocki
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=s5h35ylxykx.wl-tiwai@suse.de \
--to=tiwai@suse.de \
--cc=gregkh@linuxfoundation.org \
--cc=kai.heng.feng@canonical.com \
--cc=kenny@panix.com \
--cc=len.brown@intel.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=pavel@ucw.cz \
--cc=rjw@rjwysocki.net \
/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
all inboxes | Powered by JetHome®