* [PATCH] ASoC: SOF: amd: fix for firmware reload failure after playback
@ 2023-09-27 7:14 Vijendar Mukunda
2023-09-28 8:35 ` Mark Brown
0 siblings, 1 reply; 2+ messages in thread
From: Vijendar Mukunda @ 2023-09-27 7:14 UTC (permalink / raw)
To: broonie
Cc: alsa-devel, Basavaraj.Hiregoudar, Sunil-kumar.Dommati,
Vijendar Mukunda, coolstar, Pierre-Louis Bossart, Liam Girdwood,
Peter Ujfalusi, Bard Liao, Ranjani Sridharan, Daniel Baluta,
Kai Vehmanen, Jaroslav Kysela, Takashi Iwai, Rander Wang,
V sujith kumar Reddy, Venkata Prasad Potturu, Ajit Kumar Pandey,
moderated list:SOUND - SOUND OPEN FIRMWARE (SOF) DRIVERS,
open list
Setting ACP ACLK as clock source when ACP enters D0 state causing
firmware load failure as mentioned in below scenario.
- Load snd_sof_amd_rembrandt
- Play or Record audio
- Stop audio
- Unload snd_sof_amd_rembrandt
- Reload snd_sof_amd_rembrandt
If acp_clkmux_sel register field is set, then clock source will be
set to ACP ACLK when ACP enters D0 state.
During stream stop, if there is no active stream is running then
acp firmware will set the ACP ACLK value to zero.
When driver is reloaded and clock source is selected as ACP ACLK,
as ACP ACLK is programmed to zero, firmware loading will fail.
For RMB platform, remove the clock mux selection field so that
ACP will use internal clock source when ACP enters D0 state.
Fixes: 41cb85bc4b52 ("ASoC: SOF: amd: Add support for Rembrandt plaform.")
Reported-by: coolstar <coolstarorganization@gmail.com>
Closes: https://github.com/thesofproject/sof/issues/8137
Signed-off-by: Vijendar Mukunda <Vijendar.Mukunda@amd.com>
---
sound/soc/sof/amd/pci-rmb.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/sound/soc/sof/amd/pci-rmb.c b/sound/soc/sof/amd/pci-rmb.c
index 72e211b5f7a4..2f288545c426 100644
--- a/sound/soc/sof/amd/pci-rmb.c
+++ b/sound/soc/sof/amd/pci-rmb.c
@@ -35,7 +35,6 @@ static const struct sof_amd_acp_desc rembrandt_chip_info = {
.dsp_intr_base = ACP6X_DSP_SW_INTR_BASE,
.sram_pte_offset = ACP6X_SRAM_PTE_OFFSET,
.hw_semaphore_offset = ACP6X_AXI2DAGB_SEM_0,
- .acp_clkmux_sel = ACP6X_CLKMUX_SEL,
.fusion_dsp_offset = ACP6X_DSP_FUSION_RUNSTALL,
.probe_reg_offset = ACP6X_FUTURE_REG_ACLK_0,
};
--
2.34.1
^ permalink raw reply [flat|nested] 2+ messages in thread* Re: [PATCH] ASoC: SOF: amd: fix for firmware reload failure after playback
2023-09-27 7:14 [PATCH] ASoC: SOF: amd: fix for firmware reload failure after playback Vijendar Mukunda
@ 2023-09-28 8:35 ` Mark Brown
0 siblings, 0 replies; 2+ messages in thread
From: Mark Brown @ 2023-09-28 8:35 UTC (permalink / raw)
To: Vijendar Mukunda
Cc: alsa-devel, Basavaraj.Hiregoudar, Sunil-kumar.Dommati, coolstar,
Pierre-Louis Bossart, Liam Girdwood, Peter Ujfalusi, Bard Liao,
Ranjani Sridharan, Daniel Baluta, Kai Vehmanen, Jaroslav Kysela,
Takashi Iwai, Rander Wang, V sujith kumar Reddy,
Venkata Prasad Potturu, Ajit Kumar Pandey,
moderated list:SOUND - SOUND OPEN FIRMWARE (SOF) DRIVERS,
open list
On Wed, 27 Sep 2023 12:44:10 +0530, Vijendar Mukunda wrote:
> Setting ACP ACLK as clock source when ACP enters D0 state causing
> firmware load failure as mentioned in below scenario.
>
> - Load snd_sof_amd_rembrandt
> - Play or Record audio
> - Stop audio
> - Unload snd_sof_amd_rembrandt
> - Reload snd_sof_amd_rembrandt
>
> [...]
Applied to
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next
Thanks!
[1/1] ASoC: SOF: amd: fix for firmware reload failure after playback
commit: 7e1fe5d9e7eae67e218f878195d1d348d01f9af7
All being well this means that it will be integrated into the linux-next
tree (usually sometime in the next 24 hours) and sent to Linus during
the next merge window (or sooner if it is a bug fix), however if
problems are discovered then the patch may be dropped or reverted.
You may get further e-mails resulting from automated or manual testing
and review of the tree, please engage with people reporting problems and
send followup patches addressing any issues that are reported if needed.
If any updates are required or you are submitting further changes they
should be sent as incremental updates against current git, existing
patches will not be replaced.
Please add any relevant lists and maintainers to the CCs when replying
to this mail.
Thanks,
Mark
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-09-28 8:35 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-09-27 7:14 [PATCH] ASoC: SOF: amd: fix for firmware reload failure after playback Vijendar Mukunda
2023-09-28 8:35 ` Mark Brown
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®