From: Mark Brown Date: Fri, 10 Jun 2022 16:21:29 +0000 (+0100) Subject: ASoC: SOF: ipc3-dtrace: Handle race during initialization X-Git-Tag: v6.0-rc1~93^2~8^2~37^2~117 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=25ebeeebcb5493b42b6d43e4f4c49823782b83af;p=thirdparty%2Fkernel%2Flinux.git ASoC: SOF: ipc3-dtrace: Handle race during initialization Merge series from Peter Ujfalusi : 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. --- 25ebeeebcb5493b42b6d43e4f4c49823782b83af