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

rtos: branch out dma.h for Zephyr and XTOS #9560

Merged
merged 2 commits into from
Oct 16, 2024

Conversation

kv2019i
Copy link
Collaborator

@kv2019i kv2019i commented Oct 9, 2024

Related to #9015

The SOF DMA RTOS interface is one of the largest and also one of the
hardest to maintain, as it's used a lot in SOF, and there is unfortunate
overlap in interface naming between Zephyr and XTOS.

To get the cleanup work started, branch out the sof/lib/dma.h for Zephyr
and remove the conditional definitions from both versions. This patch
maintains support for all build variants, including building SOF with
Zephyr but using XTOS drivers.

Link: thesofproject#9015
Signed-off-by: Kai Vehmanen <[email protected]>
Add a note to Zephyr sof/lib/dma.h explaining the relation of
SOF and Zephyr DMA interfaces and warn about the name space overlaps
that exist. Also enumerate the main usage scenarios that have
to be handled in this file.

Signed-off-by: Kai Vehmanen <[email protected]>
@kv2019i
Copy link
Collaborator Author

kv2019i commented Oct 9, 2024

This isn't simplifying the DMA usage yet, but paves way to do it , see #9561
I already have some improvements lined up.

@lgirdwood
Copy link
Member

SOFCI TEST

@lgirdwood lgirdwood merged commit b0fc943 into thesofproject:main Oct 16, 2024
41 of 47 checks passed
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.

3 participants