-
Notifications
You must be signed in to change notification settings - Fork 322
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
zephyr: lib/dma.h: limit use of platform/lib/dma.h #9667
zephyr: lib/dma.h: limit use of platform/lib/dma.h #9667
Conversation
select XT_INTERRUPT_LEVEL_5 | ||
select INTEL_MN | ||
select WAKEUP_HOOK | ||
select SCHEDULE_DMA_SINGLE_CHANNEL |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice! Can some of these be removed completely? E.g. INTEL_MN
looks Intel-specific, and we don't do XTOS builds on "main" any more?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Others are removed, but INTEL_MN seems to have more complex baggage still in place. I'm afraid the Zephyr SSP driver depends on this (still)... needs to be cleaned up before this can be merged.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@lyakh ok, now filed zephyrproject-rtos/zephyr#81734 for Zephyr and will submit a separate PR for SOF for this. I'll update this series to still keep INTEL_MN.
Hmm, ok, there's a failure on imx8m that I missed: https://github.com/thesofproject/sof/actions/runs/11914362596/job/33202110141?pr=9667 |
fae13c5
to
e5a2d68
Compare
V2:
|
Remove unused Kconfig dependencies for CONFIG_CAVS. These were valid entries for XTOS builds, but as CAVS no longer has any XTOS suppot in the tree, these can be now removed. Equivalent settings are now moved all to Zephyr. Signed-off-by: Kai Vehmanen <[email protected]>
The platform lib/dma.h definitions are only needed in a small set of usages. Make the inclusion conditional and add a note to guide new configurations to use CONFIG_DMA_DOMAIN instead. Signed-off-by: Kai Vehmanen <[email protected]>
The platform lib/dma.h is no longer needed in SOF Zephyr builds unless the legacy DMA domain scheduler is used. This is not the case for any Intel target, so the lib/dma.h headers can be removed. Signed-off-by: Kai Vehmanen <[email protected]>
e5a2d68
to
eb516a9
Compare
V3:
|
Cannot remove platform/lib/dma.h completely, but limit its use and make it optional for new targets.
Link: #5794