public inbox for stable@vger.kernel.org
 help / color / mirror / Atom feed
From: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
To: gregkh@linuxfoundation.org, broonie@kernel.org,
	peter.ujfalusi@linux.intel.com,
	ranjani.sridharan@linux.intel.com
Cc: stable@vger.kernel.org
Subject: Re: FAILED: patch "[PATCH] ASoC: SOF: Intel: disable IMR boot when resuming from ACPI S4" failed to apply to 5.18-stable tree
Date: Mon, 11 Jul 2022 10:36:14 -0500	[thread overview]
Message-ID: <427a34f7-5170-ca9e-f9b3-2dec0db82eac@linux.intel.com> (raw)
In-Reply-To: <16575231593075@kroah.com>



On 7/11/22 02:05, gregkh@linuxfoundation.org wrote:
> 
> The patch below does not apply to the 5.18-stable tree.
> If someone wants it applied there, or to any other stable or longterm
> tree, then please email the backport, including the original git commit
> id to <stable@vger.kernel.org>.

Indeed, there's a dependency on

2a68ff846164 ("ASoC: SOF: Intel: hda: Revisit IMR boot sequence")

as well as the definitions added in the same patchset.

7a5974e035a6 ("ASoC: SOF: pm: add definitions for S4 and S5 states
")
6639990dbb25 ("ASoC: SOF: pm: add explicit behavior for ACPI S1 and S2
")

will send the backport shortly.

> 
> thanks,
> 
> greg k-h
> 
> ------------------ original commit in Linus's tree ------------------
> 
> From 391153522d186f19a008d824bb3a05950351ce6c Mon Sep 17 00:00:00 2001
> From: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
> Date: Thu, 16 Jun 2022 15:18:18 -0500
> Subject: [PATCH] ASoC: SOF: Intel: disable IMR boot when resuming from ACPI S4
>  and S5 states
> MIME-Version: 1.0
> Content-Type: text/plain; charset=UTF-8
> Content-Transfer-Encoding: 8bit
> 
> The IMR was assumed to be preserved when suspending to S4 and S5
> states, but community reports invalidate that assumption, the hardware
> seems to be powered off and the IMR memory content cleared.
> 
> Make sure regular boot with firmware download is used for S4 and S5.
> 
> BugLink: https://github.com/thesofproject/sof/issues/5892
> Fixes: 5fb5f51185126 ("ASoC: SOF: Intel: hda-loader: add IMR restore support")
> Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
> Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
> Reviewed-by: Péter Ujfalusi <peter.ujfalusi@linux.intel.com>
> Link: https://lore.kernel.org/r/20220616201818.130802-4-pierre-louis.bossart@linux.intel.com
> Signed-off-by: Mark Brown <broonie@kernel.org>
> 
> diff --git a/sound/soc/sof/intel/hda-loader.c b/sound/soc/sof/intel/hda-loader.c
> index d3ec5996a9a3..145d483bd129 100644
> --- a/sound/soc/sof/intel/hda-loader.c
> +++ b/sound/soc/sof/intel/hda-loader.c
> @@ -389,7 +389,8 @@ int hda_dsp_cl_boot_firmware(struct snd_sof_dev *sdev)
>  	struct snd_dma_buffer dmab;
>  	int ret, ret1, i;
>  
> -	if (hda->imrboot_supported && !sdev->first_boot) {
> +	if (sdev->system_suspend_target < SOF_SUSPEND_S4 &&
> +	    hda->imrboot_supported && !sdev->first_boot) {
>  		dev_dbg(sdev->dev, "IMR restore supported, booting from IMR directly\n");
>  		hda->boot_iteration = 0;
>  		ret = hda_dsp_boot_imr(sdev);
> 

      reply	other threads:[~2022-07-11 15:36 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-07-11  7:05 FAILED: patch "[PATCH] ASoC: SOF: Intel: disable IMR boot when resuming from ACPI S4" failed to apply to 5.18-stable tree gregkh
2022-07-11 15:36 ` Pierre-Louis Bossart [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=427a34f7-5170-ca9e-f9b3-2dec0db82eac@linux.intel.com \
    --to=pierre-louis.bossart@linux.intel.com \
    --cc=broonie@kernel.org \
    --cc=gregkh@linuxfoundation.org \
    --cc=peter.ujfalusi@linux.intel.com \
    --cc=ranjani.sridharan@linux.intel.com \
    --cc=stable@vger.kernel.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