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

dma: dw: allow to stop in DW_DMA_SUSPENDED state #54900

Merged

Conversation

kv2019i
Copy link
Collaborator

@kv2019i kv2019i commented Feb 16, 2023

dma: dw: allow to stop in DW_DMA_SUSPENDED state

Without this fix, current Zephyr main fails most SOF test cases where DW_DMA is used.

The conditional definitions are not correct as "chan_data"
is used without any include guards, but defined only if
CONFIG_DMA_DW_HW_LLI or CONFIG_DMA_DW_SUSPEND_DRAIN is defined.
Correct the declaration to match usage.

Signed-off-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
Allow DMA channel to be stopped even if it is in suspended state.
The current code in dw_dma_stop() supports this, but the recently
added early check for dw_dma_is_enabled() results in DMA stop
sequence to be skipped if the channel was in suspended state.

Signed-off-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
@kv2019i kv2019i added the platform: Intel ADSP Intel Audio platforms label Feb 16, 2023
@zephyrbot zephyrbot added the area: DMA Direct Memory Access label Feb 16, 2023
@zephyrbot zephyrbot requested a review from teburd February 16, 2023 13:36
kv2019i added a commit to kv2019i/sof that referenced this pull request Feb 16, 2023
Update Zephyr to latest version plus cherry-pick PR54900
zephyrproject-rtos/zephyr#54900
on top.

Signed-off-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
@nashif nashif merged commit 0c0d737 into zephyrproject-rtos:main Feb 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: DMA Direct Memory Access platform: Intel ADSP Intel Audio platforms
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants