]> exis.tech > repos - linux.git/commit
ASoC: SOF: amd: fix for ipc flags check
authorVijendar Mukunda <Vijendar.Mukunda@amd.com>
Tue, 9 Jun 2026 16:08:44 +0000 (21:38 +0530)
committerMark Brown <broonie@kernel.org>
Tue, 9 Jun 2026 17:30:39 +0000 (18:30 +0100)
commit6042c91df60e825625bc7d5c5c3b5a87b91d5805
tree341d32c6629f62c31efe8f420c50c8a8a08eb818
parent7d3fb78b550301e43fdc60312aed733069694426
ASoC: SOF: amd: fix for ipc flags check

Firmware will set dsp_ack to 1 when firmware sends response for the IPC
command issued by host. Similarly dsp_msg flag will be updated to 1.

During ACP D0 entry, the value read from the sof_dsp_ack_write scratch
flag can be uninitialized. A non-zero garbage value is treated as a
pending DSP IPC ack before SOF_FW_BOOT_COMPLETE, causing a spurious
"IPC reply before FW_BOOT_COMPLETE" log.

Fix the condition checks for ipc flags.

Fixes: 738a2b5e2cc9 ("ASoC: SOF: amd: Add IPC support for ACP IP block")
Link: https://github.com/thesofproject/linux/pull/5642
Signed-off-by: Vijendar Mukunda <Vijendar.Mukunda@amd.com>
Tested-by: Umang Jain <uajain@igalia.com>
Link: https://patch.msgid.link/20260609160938.3717513-1-Vijendar.Mukunda@amd.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sof/amd/acp-ipc.c
sound/soc/sof/amd/acp.h