Linux Sound subsystem development
 help / color / mirror / Atom feed
* [PATCH 0/2] soundwire: qcom: fix WCD AHB serialization and wr_fifo_depth init order
@ 2026-11-24 22:46 Robert Ijtsma via B4 Relay
  2026-11-24 22:46 ` [PATCH 1/2] soundwire: qcom: serialize WCD AHB bridge transactions Robert Ijtsma via B4 Relay
  2026-11-24 22:46 ` [PATCH 2/2] soundwire: qcom: populate wr_fifo_depth before enabling interrupts Robert Ijtsma via B4 Relay
  0 siblings, 2 replies; 4+ messages in thread
From: Robert Ijtsma via B4 Relay @ 2026-11-24 22:46 UTC (permalink / raw)
  To: Srinivas Kandagatla, Vinod Koul, Bard Liao, Pierre-Louis Bossart
  Cc: linux-arm-msm, linux-sound, Robert Ijtsma

Fix two race conditions observed on WCD934x-hosted Qualcomm SoundWire
controllers (such as on Microsoft Surface Pro X / SC8180X):

1. Serialize each two-step WCD AHB bridge register access (RD_ADDR +
   RD_DATA or WR_DATA + WR_ADDR) with a controller mutex so concurrent
   IRQ and init/bus accesses cannot interleave on the shared bridge
   registers.
2. Read and validate SWRM_COMP_PARAMS write FIFO depth before
   registering the threaded IRQ in probe and before enabling CPU
   interrupts in qcom_swrm_init(), avoiding false write-FIFO overflow
   errors while wr_fifo_depth is still zero.

Tested on Microsoft Surface Pro X SQ2 (SC8180X, WCD934x + WSA881x).

Signed-off-by: Robert Ijtsma <robertijtsma@gmail.com>
---
Robert Ijtsma (2):
      soundwire: qcom: serialize WCD AHB bridge transactions
      soundwire: qcom: populate wr_fifo_depth before enabling interrupts

 drivers/soundwire/qcom.c | 57 ++++++++++++++++++++++++++++++++----------------
 1 file changed, 38 insertions(+), 19 deletions(-)
---
base-commit: 4843f6873f7c4835e62f2c73ba0fd538e57a2f22
change-id: 20261124-qcom-soundwire-fixes-9d31c8dc5303

Best regards,
--  
Robert Ijtsma <robertijtsma@gmail.com>



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2026-11-24 22:54 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-24 22:46 [PATCH 0/2] soundwire: qcom: fix WCD AHB serialization and wr_fifo_depth init order Robert Ijtsma via B4 Relay
2026-11-24 22:46 ` [PATCH 1/2] soundwire: qcom: serialize WCD AHB bridge transactions Robert Ijtsma via B4 Relay
2026-11-24 22:46 ` [PATCH 2/2] soundwire: qcom: populate wr_fifo_depth before enabling interrupts Robert Ijtsma via B4 Relay
2026-11-24 22:54   ` sashiko-bot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox