-
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
Add support for SOF_IPC_FW_READY message initiated by host #7463
Conversation
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.
I couldn't first make my mind whether this is an ABI change or not, but given this uses existing ABI definitions and is limited to one platform, my end conclusion is that this is not ABI change. Thanks for the good inline documentation, that helped in review.
SOFCI TEST |
Due to the fact that on i.MX93 the host will initialize the SOF_IPC_FW_READY sequence there's no need to call platform_boot_complete() at the end of start_complete(). This will be handled in the IPC3 handler. This commit makes sure that aforementioned scenario won't happen for i.MX93 while keeping the flow constant for the other platforms. Signed-off-by: Laurentiu Mihalcea <[email protected]>
ca52156
to
a34b2e8
Compare
Fixed problems pointed out by @dbaluta. Please let me know if there's anything else you'd like me to address. Otherwise, IMO this is ready for merge. |
In the case of i.MX93 Linux will send an IPC_FW_READY message to SOF and will expect to receive the following information in the hostbox: 1) reply structure 2) sof_ipc_fw_ready structure 3) sof_ipc_fw_ready structure This flow is required because the FW (due to Jailhouse's design) will be up before the platform driver from Linux so the SOF_IPC_FW_READY sequence can't be initiated by SOF. Signed-off-by: Laurentiu Mihalcea <[email protected]>
thanks @LaurentiuM1234! will merge this once CI is ready. |
In the case of i.MX93 Linux will send an IPC_FW_READY message to SOF and will expect to receive the following information in the hostbox:
1) reply structure
2) sof_ipc_fw_ready structure
3) sof_ipc_window structure
This flow is required because Jailhouse is currently controlled from user space. This means that SOF will be up before the platform driver from Linux so the IPC_FW_READY sequence can't be initiated by SOF.
Please see #7192 for PR dependency graph.