Peter/pr/dtrace init fixes 01 bisect #3 [DO NOT REVIEW]#4925
Closed
ujfalusi wants to merge 6 commits intothesofproject:mainfrom
Closed
Peter/pr/dtrace init fixes 01 bisect #3 [DO NOT REVIEW]#4925ujfalusi wants to merge 6 commits intothesofproject:mainfrom
ujfalusi wants to merge 6 commits intothesofproject:mainfrom
Conversation
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>
613e744 to
84d8153
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Step by step bisect to identify the TIMEOUT source if it is caused by the PR