Alsa-Devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/3] ASoC: SOF: ipc3-dtrace: Handle race during initialization
@ 2022-06-10  8:01 Peter Ujfalusi
  2022-06-10  8:01 ` [PATCH 1/3] ASoC: SOF: ipc3-dtrace: Introduce SOF_DTRACE_INITIALIZING state Peter Ujfalusi
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Peter Ujfalusi @ 2022-06-10  8:01 UTC (permalink / raw)
  To: lgirdwood, broonie, pierre-louis.bossart, daniel.baluta
  Cc: alsa-devel, yung-chuan.liao, ranjani.sridharan, kai.vehmanen

Hi,

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.

Regards,
Peter
---
Peter Ujfalusi (3):
  ASoC: SOF: ipc3-dtrace: Introduce SOF_DTRACE_INITIALIZING state
  ASoC: SOF: ipc3-dtrace: Add helper function to update the
    sdev->host_offset
  ASoC: SOF: ipc3-dtrace: Return from dtrace_read if there is no new
    data available

 sound/soc/sof/ipc3-dtrace.c | 47 ++++++++++++++++++++++++++++++-------
 1 file changed, 38 insertions(+), 9 deletions(-)

-- 
2.36.1


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

end of thread, other threads:[~2022-06-10 16:23 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-06-10  8:01 [PATCH 0/3] ASoC: SOF: ipc3-dtrace: Handle race during initialization Peter Ujfalusi
2022-06-10  8:01 ` [PATCH 1/3] ASoC: SOF: ipc3-dtrace: Introduce SOF_DTRACE_INITIALIZING state Peter Ujfalusi
2022-06-10  8:01 ` [PATCH 2/3] ASoC: SOF: ipc3-dtrace: Add helper function to update the sdev->host_offset Peter Ujfalusi
2022-06-10  8:01 ` [PATCH 3/3] ASoC: SOF: ipc3-dtrace: Return from dtrace_read if there is no new data available Peter Ujfalusi
2022-06-10 16:22 ` [PATCH 0/3] ASoC: SOF: ipc3-dtrace: Handle race during initialization Mark Brown

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