* [PATCH] ASoC: SOF: amd: Fix for incorrect DMA ch status register offset
@ 2024-11-06 10:14 Venkata Prasad Potturu
2024-11-06 14:10 ` Mark Brown
2024-11-07 13:06 ` Mark Brown
0 siblings, 2 replies; 4+ messages in thread
From: Venkata Prasad Potturu @ 2024-11-06 10:14 UTC (permalink / raw)
To: broonie, alsa-devel
Cc: Vijendar.Mukunda, Basavaraj.Hiregoudar, Sunil-kumar.Dommati,
syed.sabakareem, Venkata Prasad Potturu, Pierre-Louis Bossart,
Liam Girdwood, Peter Ujfalusi, Bard Liao, Ranjani Sridharan,
Daniel Baluta, Kai Vehmanen, Jaroslav Kysela, Takashi Iwai,
Cristian Ciocaltea, Emil Velikov,
moderated list:SOUND - SOUND OPEN FIRMWARE (SOF) DRIVERS,
open list:SOUND - SOC LAYER / DYNAMIC AUDIO POWER MANAGEM...,
open list
DMA ch status register offset change in acp7.0 platform
Incorrect DMA channel status register offset check lead to
firmware boot failure.
[ 14.432497] snd_sof_amd_acp70 0000:c4:00.5: ------------[ DSP dump start ]------------
[ 14.432533] snd_sof_amd_acp70 0000:c4:00.5: Firmware boot failure due to timeout
[ 14.432549] snd_sof_amd_acp70 0000:c4:00.5: fw_state: SOF_FW_BOOT_IN_PROGRESS (3)
[ 14.432610] snd_sof_amd_acp70 0000:c4:00.5: invalid header size 0x71c41000. FW oops is bogus
[ 14.432626] snd_sof_amd_acp70 0000:c4:00.5: unexpected fault 0x71c40000 trace 0x71c40000
[ 14.432642] snd_sof_amd_acp70 0000:c4:00.5: ------------[ DSP dump end ]------------
[ 14.432657] snd_sof_amd_acp70 0000:c4:00.5: error: failed to boot DSP firmware -5
[ 14.432672] snd_sof_amd_acp70 0000:c4:00.5: fw_state change: 3 -> 4
[ 14.433260] dmic-codec dmic-codec: ASoC: Unregistered DAI 'dmic-hifi'
[ 14.433319] snd_sof_amd_acp70 0000:c4:00.5: fw_state change: 4 -> 0
[ 14.433358] snd_sof_amd_acp70 0000:c4:00.5: error: sof_probe_work failed err: -5
Update correct register offset for DMA ch status register.
Fixes: bff3c2a4062d ("ASoC: SOF: amd: add support for acp7.0 based platform")
Signed-off-by: Venkata Prasad Potturu <venkataprasad.potturu@amd.com>
---
sound/soc/sof/amd/acp.c | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/sound/soc/sof/amd/acp.c b/sound/soc/sof/amd/acp.c
index ce10d128de25..f7814dadf3ba 100644
--- a/sound/soc/sof/amd/acp.c
+++ b/sound/soc/sof/amd/acp.c
@@ -342,11 +342,19 @@ int acp_dma_status(struct acp_dev_data *adata, unsigned char ch)
{
struct snd_sof_dev *sdev = adata->dev;
unsigned int val;
+ unsigned int acp_dma_ch_sts;
int ret = 0;
+ switch (adata->pci_rev) {
+ case ACP70_PCI_ID:
+ acp_dma_ch_sts = ACP70_DMA_CH_STS;
+ break;
+ default:
+ acp_dma_ch_sts = ACP_DMA_CH_STS;
+ }
val = snd_sof_dsp_read(sdev, ACP_DSP_BAR, ACP_DMA_CNTL_0 + ch * sizeof(u32));
if (val & ACP_DMA_CH_RUN) {
- ret = snd_sof_dsp_read_poll_timeout(sdev, ACP_DSP_BAR, ACP_DMA_CH_STS, val, !val,
+ ret = snd_sof_dsp_read_poll_timeout(sdev, ACP_DSP_BAR, acp_dma_ch_sts, val, !val,
ACP_REG_POLL_INTERVAL,
ACP_DMA_COMPLETE_TIMEOUT_US);
if (ret < 0)
--
2.39.2
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] ASoC: SOF: amd: Fix for incorrect DMA ch status register offset
2024-11-06 10:14 [PATCH] ASoC: SOF: amd: Fix for incorrect DMA ch status register offset Venkata Prasad Potturu
@ 2024-11-06 14:10 ` Mark Brown
2024-11-06 14:18 ` potturu venkata prasad
2024-11-07 13:06 ` Mark Brown
1 sibling, 1 reply; 4+ messages in thread
From: Mark Brown @ 2024-11-06 14:10 UTC (permalink / raw)
To: Venkata Prasad Potturu
Cc: alsa-devel, Vijendar.Mukunda, Basavaraj.Hiregoudar,
Sunil-kumar.Dommati, syed.sabakareem, Pierre-Louis Bossart,
Liam Girdwood, Peter Ujfalusi, Bard Liao, Ranjani Sridharan,
Daniel Baluta, Kai Vehmanen, Jaroslav Kysela, Takashi Iwai,
Cristian Ciocaltea, Emil Velikov,
moderated list:SOUND - SOUND OPEN FIRMWARE (SOF) DRIVERS,
open list:SOUND - SOC LAYER / DYNAMIC AUDIO POWER MANAGEM...,
open list
[-- Attachment #1: Type: text/plain, Size: 259 bytes --]
On Wed, Nov 06, 2024 at 03:44:53PM +0530, Venkata Prasad Potturu wrote:
> Update correct register offset for DMA ch status register.
>
> Fixes: bff3c2a4062d ("ASoC: SOF: amd: add support for acp7.0 based platform")
I can't seem to find this commit.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] ASoC: SOF: amd: Fix for incorrect DMA ch status register offset
2024-11-06 14:10 ` Mark Brown
@ 2024-11-06 14:18 ` potturu venkata prasad
0 siblings, 0 replies; 4+ messages in thread
From: potturu venkata prasad @ 2024-11-06 14:18 UTC (permalink / raw)
To: Mark Brown
Cc: alsa-devel, Vijendar.Mukunda, Basavaraj.Hiregoudar,
Sunil-kumar.Dommati, syed.sabakareem, Pierre-Louis Bossart,
Liam Girdwood, Peter Ujfalusi, Bard Liao, Ranjani Sridharan,
Daniel Baluta, Kai Vehmanen, Jaroslav Kysela, Takashi Iwai,
Cristian Ciocaltea, Emil Velikov,
moderated list:SOUND - SOUND OPEN FIRMWARE (SOF) DRIVERS,
open list:SOUND - SOC LAYER / DYNAMIC AUDIO POWER MANAGEM...,
open list
On 11/6/24 19:40, Mark Brown wrote:
> On Wed, Nov 06, 2024 at 03:44:53PM +0530, Venkata Prasad Potturu wrote:
>
>> Update correct register offset for DMA ch status register.
>>
>> Fixes: bff3c2a4062d ("ASoC: SOF: amd: add support for acp7.0 based platform")
> I can't seem to find this commit.
Sorry, I used commit id form sof-dev repo.
I will update commit id and resend v2 patch.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] ASoC: SOF: amd: Fix for incorrect DMA ch status register offset
2024-11-06 10:14 [PATCH] ASoC: SOF: amd: Fix for incorrect DMA ch status register offset Venkata Prasad Potturu
2024-11-06 14:10 ` Mark Brown
@ 2024-11-07 13:06 ` Mark Brown
1 sibling, 0 replies; 4+ messages in thread
From: Mark Brown @ 2024-11-07 13:06 UTC (permalink / raw)
To: alsa-devel, Venkata Prasad Potturu
Cc: Vijendar.Mukunda, Basavaraj.Hiregoudar, Sunil-kumar.Dommati,
syed.sabakareem, Liam Girdwood, Peter Ujfalusi, Bard Liao,
Ranjani Sridharan, Daniel Baluta, Kai Vehmanen, Jaroslav Kysela,
Takashi Iwai, Cristian Ciocaltea, Emil Velikov,
moderated list:SOUND - SOUND OPEN FIRMWARE (SOF) DRIVERS,
open list:SOUND - SOC LAYER / DYNAMIC AUDIO POWER MANAGEM...,
open list, Pierre-Louis Bossart
On Wed, 06 Nov 2024 15:44:53 +0530, Venkata Prasad Potturu wrote:
> DMA ch status register offset change in acp7.0 platform
>
> Incorrect DMA channel status register offset check lead to
> firmware boot failure.
>
> [ 14.432497] snd_sof_amd_acp70 0000:c4:00.5: ------------[ DSP dump start ]------------
> [ 14.432533] snd_sof_amd_acp70 0000:c4:00.5: Firmware boot failure due to timeout
> [ 14.432549] snd_sof_amd_acp70 0000:c4:00.5: fw_state: SOF_FW_BOOT_IN_PROGRESS (3)
> [ 14.432610] snd_sof_amd_acp70 0000:c4:00.5: invalid header size 0x71c41000. FW oops is bogus
> [ 14.432626] snd_sof_amd_acp70 0000:c4:00.5: unexpected fault 0x71c40000 trace 0x71c40000
> [ 14.432642] snd_sof_amd_acp70 0000:c4:00.5: ------------[ DSP dump end ]------------
> [ 14.432657] snd_sof_amd_acp70 0000:c4:00.5: error: failed to boot DSP firmware -5
> [ 14.432672] snd_sof_amd_acp70 0000:c4:00.5: fw_state change: 3 -> 4
> [ 14.433260] dmic-codec dmic-codec: ASoC: Unregistered DAI 'dmic-hifi'
> [ 14.433319] snd_sof_amd_acp70 0000:c4:00.5: fw_state change: 4 -> 0
> [ 14.433358] snd_sof_amd_acp70 0000:c4:00.5: error: sof_probe_work failed err: -5
>
> [...]
Applied to
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next
Thanks!
[1/1] ASoC: SOF: amd: Fix for incorrect DMA ch status register offset
commit: 94debe5eaa0adaa24a6de4a8e5f138be7381eb9e
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] 4+ messages in thread
end of thread, other threads:[~2024-11-07 13:07 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-11-06 10:14 [PATCH] ASoC: SOF: amd: Fix for incorrect DMA ch status register offset Venkata Prasad Potturu
2024-11-06 14:10 ` Mark Brown
2024-11-06 14:18 ` potturu venkata prasad
2024-11-07 13:06 ` Mark Brown
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox