Skip to content

ASoC: SOF: Fix IPC reliability and post-resume SoundWire init

Cole Leavitt linux-sound lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 4 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2ASoC: SOF: Replace IPC TX busy deferral with bounded retrysound/soc/sof/intel/cnl.c sound/soc/sof/intel/hda-ipc.c sound/soc/sof/intel/hda.h +2 more+21 -553 replies
2/2ASoC: SOF: Add platform ops callback for DAI link hardware readinesssound/soc/sof/intel/hda-common-ops.c sound/soc/sof/intel/hda.c sound/soc/sof/intel/hda.h +2 more+62 -01 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] ASoC: SOF: Fix IPC reliability and post-resume SoundWire init

Two fixes for SOF IPC4 reliability issues observed on Lenovo ThinkPad P16 Gen 3 (Arrow Lake-S, CS42L43 + CS35L56 over SoundWire):

1. Replace the broken delayed_ipc_tx_msg mechanism with a bounded retry loop. The old deferred dispatch silently drops messages during D0i3 transitions, causing 500ms+ hangs per IPC chunk.

2. Add a platform ops callback (dai_link_hw_ready) so Intel HDA platforms can wait for SoundWire slave initialization before ALH copier setup. Without this, the DSP enters an unrecoverable wedged state when userspace opens a PCM before slaves finish re-enumerating after resume.

Tested on ThinkPad P16 Gen 3 with repeated suspend/resume cycles and concurrent audio playback.

Cole Leavitt (2):
ASoC: SOF: Replace IPC TX busy deferral with bounded retry
ASoC: SOF: Add platform ops callback for DAI link hardware readiness

 sound/soc/sof/intel/cnl.c            | 17 ++---------
 sound/soc/sof/intel/hda-common-ops.c |  1 +
 sound/soc/sof/intel/hda-ipc.c        | 17 ++---------
 sound/soc/sof/intel/hda.c            | 44 ++++++++++++++++++++++++++++
 sound/soc/sof/intel/hda.h            | 14 ++++-----
 sound/soc/sof/intel/mtl.c            | 17 ++---------
 sound/soc/sof/ipc4-topology.c        |  8 +++++
 sound/soc/sof/ipc4.c                 | 17 +++++++++--
 sound/soc/sof/sof-priv.h             |  3 ++
 9 files changed, 83 insertions(+), 55 deletions(-)

base-commit: 2687c848e57820651b9f69d30c4710f4219f7dbf

Signature · 1 line
2.52.0