8000 rtos: branch out dma.h for Zephyr and XTOS by kv2019i · Pull Request #9560 · thesofproject/sof · GitHub
[go: up one dir, main page]

Skip to content

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

Merged
lgirdwood merged 2 commits intothesofproject:mainfrom
kv2019i:202410-sof-lib-dma-h-branch
Oct 16, 2024
Merged

rtos: branch out dma.h for Zephyr and XTOS#9560
lgirdwood merged 2 commits intothesofproject:mainfrom
kv2019i:202410-sof-lib-dma-h-branch

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 <kai.vehmanen@linux.intel.com>
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 <kai.vehmanen@linux.intel.com>
@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
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

0