mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: <sravisar@amd.com>
To: <broonie@kernel.org>
Cc: <alsa-devel@alsa-project.org>, <lgirdwood@gmail.com>,
	<perex@perex.cz>, <tiwai@suse.com>,
	<yung-chuan.liao@linux.intel.com>, <Basavaraj.Hiregoudar@amd.com>,
	<Sunil-kumar.Dommati@amd.com>, <venkataprasad.potturu@amd.com>,
	<Syed.SabaKareem@amd.com>, <Mario.Limonciello@amd.com>,
	<Richard.Gong@amd.com>, <Vijendar.Mukunda@amd.com>,
	<linux-sound@vger.kernel.org>, <linux-kernel@vger.kernel.org>,
	<sound-open-firmware@alsa-project.org>,
	"Siva Subramanian Ravi Saravanan" <sravisar@amd.com>
Subject: [PATCH 1/2] ASoC: SOF: amd: acp7x: enable ACPI target power states
Date: Wed, 25 Nov 2026 11:08:04 +0530	[thread overview]
Message-ID: <20261125053843.1611378-2-sravisar@amd.com> (raw)
In-Reply-To: <20261125053843.1611378-1-sravisar@amd.com>

From: Siva Subramanian Ravi Saravanan <sravisar@amd.com>

The ACP7.x suspend and resume handlers need to tell S4 (hibernate)
apart from S3, because the ASP firmware carveout in DDR loses its
contents across S4 but not across S3. They rely on
sdev->system_suspend_target for this, but snd_sof_prepare() only
derives it from acpi_target_system_state() when the device descriptor
sets use_acpi_target_states. Otherwise system_suspend_target stays at
its SOF_SUSPEND_S3 default and the S4 path is never taken.

Set use_acpi_target_states in the ACP7.B and ACP7.F descriptors so that
system_suspend_target reflects the actual target state (S0ix, S3, S4 or
S5).

Signed-off-by: Siva Subramanian Ravi Saravanan <sravisar@amd.com>
---
 sound/soc/sof/amd/pci-acp7x.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/sound/soc/sof/amd/pci-acp7x.c b/sound/soc/sof/amd/pci-acp7x.c
index 5a21ab8ebb4b9..b27798f2007bc 100644
--- a/sound/soc/sof/amd/pci-acp7x.c
+++ b/sound/soc/sof/amd/pci-acp7x.c
@@ -66,6 +66,7 @@ static const struct sof_dev_desc acp7b_desc = {
 	.nocodec_tplg_filename	= "sof-acp.tplg",
 	.ops			= &sof_acp7x_ops,
 	.ops_init		= sof_acp7x_ops_init,
+	.use_acpi_target_states = true,
 };
 
 static const struct sof_amd_acp_desc acp7f_chip_info = {
@@ -108,6 +109,7 @@ static const struct sof_dev_desc acp7f_desc = {
 	.nocodec_tplg_filename	= "sof-acp.tplg",
 	.ops			= &sof_acp7x_ops,
 	.ops_init		= sof_acp7x_ops_init,
+	.use_acpi_target_states = true,
 };
 
 static const struct pci_device_id acp7b_pci_id = {
-- 
2.43.0


  reply	other threads:[~2026-11-25  5:39 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-25  5:38 [PATCH 0/2] ASoC: SOF: amd: acp7x: fix S4 resume with ASP carveout firmware loading sravisar
2026-11-25  5:38 ` sravisar [this message]
2026-11-25  5:38 ` [PATCH 2/2] ASoC: SOF: amd: acp7x: reload firmware from disk on S4 resume sravisar

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=20261125053843.1611378-2-sravisar@amd.com \
    --to=sravisar@amd.com \
    --cc=Basavaraj.Hiregoudar@amd.com \
    --cc=Mario.Limonciello@amd.com \
    --cc=Richard.Gong@amd.com \
    --cc=Sunil-kumar.Dommati@amd.com \
    --cc=Syed.SabaKareem@amd.com \
    --cc=Vijendar.Mukunda@amd.com \
    --cc=alsa-devel@alsa-project.org \
    --cc=broonie@kernel.org \
    --cc=lgirdwood@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-sound@vger.kernel.org \
    --cc=perex@perex.cz \
    --cc=sound-open-firmware@alsa-project.org \
    --cc=tiwai@suse.com \
    --cc=venkataprasad.potturu@amd.com \
    --cc=yung-chuan.liao@linux.intel.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 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®