Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Peter/pr/dtrace init fixes 01 bisect #3 [DO NOT REVIEW] #4925

Conversation

ujfalusi
Copy link
Contributor

Step by step bisect to identify the TIMEOUT source if it is caused by the PR

dma_trace_buffer_init() can only fail if the rballoc fails so there is no
need to call dma_trace_buffer_free() as the buffer has not been allocated

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com>
The current dma_trace_buffer_init() which allocates and initializes the
dtrace buffer is re-tasked to simply (re-)initialize the dtrace buffer
along with placing the markers at the same function.

The allocation of the buffer is split out to dma_trace_buffer_alloc() which
calls the dma_trace_buffer_init() to get the buffer initialized.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com>
…nfig

We should stop the task before the dtrace channel is stopped when we
need to re-configure it.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com>
Do not attempt to allocate the dtrace buffer again if it has been already
allocated.
This only possible if we are re-configuring the dtrace which implies that
we also must have the DMA channel.

In such case, skip the allocation and do a re-init of the buffer after the
DMA channel has been stopped.

Reported-by: Keyon Jie <yang.jie@linux.intel.com>
Signed-off-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com>
@ujfalusi ujfalusi force-pushed the peter/pr/dtrace_init_fixes_01_bisect branch 4 times, most recently from 613e744 to 84d8153 Compare October 28, 2021 05:29
…e-config"

This reverts commit d791e64.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant