]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: SOF: ipc3-dtrace: Handle race during initialization
authorMark Brown <broonie@kernel.org>
Fri, 10 Jun 2022 16:21:29 +0000 (17:21 +0100)
committerMark Brown <broonie@kernel.org>
Fri, 10 Jun 2022 16:21:29 +0000 (17:21 +0100)
commit0716087795fe462d107d756e1f6b8a6b0cadefa4
tree927a3e4b74e94c1a9a551345a7a8354133426615
parent7db8b1a4352d3ac692f03d166f92cca3af4fbc65
parent5207ba09c5c00b4550b128255fca23117873987f
ASoC: SOF: ipc3-dtrace: Handle race during initialization

Merge series from Peter Ujfalusi <peter.ujfalusi@linux.intel.com>:

This series handles the race which can result missing the first position update
after the trace is enabled.
In short: the firmware might send the position update (if we have enough
trace data generated) after the dma-trace is enabled by the TRACE_DMA_PARAMS_EXT
message. Depending on scheduling, load, preemption on Linux side we have seen
that occasionally this first position update got missed and we missed reading it
out.

A new state and more strict handling of host_offset can overcome this issue,
making the dtrace more reliable.
sound/soc/sof/ipc3-dtrace.c