Replies: 1 comment 7 replies
-
Currently work in progress for AMD to migrate to Zephyr native drivers. |
Beta Was this translation helpful? Give feedback.
7 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In short: SOF mainline has support to build SOF with Zephyr as RTOS, but still use existing XTOS-based drivers (in sof/src/drivers/ ).
In build this is gated behind CONFIG_ZEPHYR_NATIVE_DRIVERS Kconfig option.
This utility has been used by e.g. NXP and Intel to transfer to Zephyr, but for NXP and Intel platforms the transition starts to be complete (#9608 is left).
The question I have now is: how long we should keep this transition layer in place?
Use of XTOS drivers is not only option to transition. When Zephyr support was added to the first targets, this was probably more important as we did not have experience in porting over a full SOF implementation to Zephyr, and there were gaps in interfaces (e.g. for DAIs), but now in 2024, there are multiple shipping products as plenty of examples both in Zephyr and SOF, so a more direct jump to native Zephyr drivers is possible (and could be even less work).
There is some cost in keeping this support around as the SOF Zephyr build must continue to support full set of interfaces used by XTOS drivers. This set some hard limits on how much we can clean SOF side code that is using Zephyr as we need to keep the ability to use XTOS drivers as well (which have their own distinct interfaces). This is very visible e.g. in #9728 .
Based on comments in #9731 , it would seem at least MTK platforms are planning to use XTOS drivers.
How about @thesofproject/amd . I see @DINESHKUMARK1 #9578 was still using XTOS drivers in the Zephyr port? Is the plan to use same approach for other platforms?
References:
Beta Was this translation helpful? Give feedback.
All reactions