Uh oh!
There was an error while loading. Please reload this page.
dma-trace: send ipc msg after update host pointer - #4763
Conversation
before copy section to host, the hist pointer should be updated. otherwise, there are some left data in dma buffer and host don't know. Signed-off-by: Allen-KH Cheng <allen-kh.cheng@mediatek.com>
lgirdwood
commented
Sep 15, 2021
@marc-hb would this explain the missing data we see from time to time ? |
marc-hb
commented
Sep 15, 2021
The description sounds indeed similar to "stuck traces" issue #4333. @kuanhsuncheng can you please try the Everyone please correct me but |
keyonjie
left a comment
There was a problem hiding this comment.
Good finding to me actually.
w.r.t the usage in the probe feature, it looks odd to me that it sends the dma_trace position to host side, haven't tracked it so might need Cezary's comment here.
lgirdwood
commented
Sep 17, 2021
This is correct. This wont affect probes() or trace on HDA since the drivers use the LIPB to get position updates instead of an IPC. |
plbossart
commented
Sep 17, 2021
Did you mean DPIB? I've never seen LPIB being used for data transfers. |
lgirdwood
commented
Sep 17, 2021
Yes. |
…#4333 Looks like thesofproject/sof#4763 might have fixed it. Signed-off-by: Marc Herbert <marc.herbert@intel.com>
…#4333 Looks like thesofproject/sof#4763 might have fixed it. Signed-off-by: Marc Herbert <marc.herbert@intel.com>
When I use logger to trace the sof message, there some left data in dma buffer.
I find trace_work updates host pointer after dma_copy_to_host_nowait.
but dma_copy_to_host_nowait will send ipc msg before updating the new host offset.
I think the ipc_msg_send (send the host_offset information) should be after update host pointer.
If there is anything I don't well considered, please let me know.
Thanks.