alsa-devel.alsa-project.org archive mirror
 help / color / mirror / Atom feed
From: Kai Vehmanen <kai.vehmanen@linux.intel.com>
To: Kai Vehmanen <kai.vehmanen@linux.intel.com>
Cc: Takashi Iwai <tiwai@suse.de>,
	Harsha Priya <harshapriya.n@intel.com>,
	alsa-devel@alsa-project.org,
	Emmanuel Jillela <emmanuel.jillela@intel.com>
Subject: Re: [PATCH v2] ALSA: HDA: Early Forbid of runtime PM
Date: Fri, 18 Sep 2020 17:56:21 +0300 (EEST)	[thread overview]
Message-ID: <alpine.DEB.2.22.394.2009181739320.3186@eliteleevi.tm.intel.com> (raw)
In-Reply-To: <alpine.DEB.2.22.394.2008281800180.3186@eliteleevi.tm.intel.com>

Hi,

On Fri, 28 Aug 2020, Kai Vehmanen wrote:

> On Fri, 28 Aug 2020, Takashi Iwai wrote:
> > Thanks.  The only concern is about the influence on the relevant ASoC
> > code, especially hdac_hda.c.
> > 
> > Kai, could you check whether this still works?
> 
> I did queue a SOF CI job for this v2 patch and I'm seeing some failures
> in module load/unload test that might be related and need checking before
> we merge:
> 
> https://sof-ci.01.org/linuxpr/PR2403/build4400/devicetest/

ok this took a bit longer than expected, but we've been debugging this 
with Emmanuel and found the rootcause.

So if we take this patch in and forbid runtime PM in device_new, it then 
becomes mandatory for all controllers to call set_default_power_save(). In 
SOF, this is only added recently to some machine drivers (notably the 
widely used generic HDA machine driver), which explains why tests pass on 
many targets. However, on platforms that use other machine drivers, 
set_default_power_save()/snd_hda_set_power_save() is not called, and 
device will never hit suspend (and this fails the tests).

To further complicate the matter, recently merged "ASoC: Intel: 
skl_hda_dsp_generic: Fix NULLptr dereference in autosuspend delay" will 
cause tests to fail on more platforms as HDMI/DP codec's powersave 
settings are not set.

The original patch is ok, but to merge it without a lot of regressions, 
we need to rework how powersave initial settings are done in SOF and other 
ASoC controllers using HDAC. I do think this is the right solution.

Br, Kai


      parent reply	other threads:[~2020-09-18 14:59 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-08-27 23:05 [PATCH v2] ALSA: HDA: Early Forbid of runtime PM Harsha Priya
2020-08-28  7:33 ` Takashi Iwai
2020-08-28 15:03   ` Kai Vehmanen
     [not found]     ` <BN6PR1101MB2275262388388F71D62390299C520@BN6PR1101MB2275.namprd11.prod.outlook.com>
2020-08-31  9:40       ` Takashi Iwai
2020-09-18 14:56     ` Kai Vehmanen [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=alpine.DEB.2.22.394.2009181739320.3186@eliteleevi.tm.intel.com \
    --to=kai.vehmanen@linux.intel.com \
    --cc=alsa-devel@alsa-project.org \
    --cc=emmanuel.jillela@intel.com \
    --cc=harshapriya.n@intel.com \
    --cc=tiwai@suse.de \
    /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).