Skip to content

Add support for SOF_IPC_FW_READY message initiated by host - #7463

Merged
dbaluta merged 2 commits into
thesofproject:mainfrom
LaurentiuM1234:imx93_fw_ready
May 2, 2023
Merged

dbaluta merged 2 commits into
thesofproject:mainfrom
LaurentiuM1234:imx93_fw_ready

Conversation

@LaurentiuM1234

@LaurentiuM1234 LaurentiuM1234 commented Apr 19, 2023 •

Copy link
Copy Markdown
Contributor

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.

@kv2019i kv2019i left a comment

Copy link
Copy Markdown
Collaborator

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.

@kv2019i

kv2019i commented Apr 24, 2023

Copy link
Copy Markdown
Collaborator

SOFCI TEST

Comment thread zephyr/wrapper.c Outdated
Comment thread src/ipc/ipc3/handler.c Outdated
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 <laurentiu.mihalcea@nxp.com>
@LaurentiuM1234

Copy link
Copy Markdown
Contributor Author

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 <laurentiu.mihalcea@nxp.com>
@dbaluta

dbaluta commented Apr 28, 2023

Copy link
Copy Markdown
Collaborator

thanks @LaurentiuM1234! will merge this once CI is ready.

@dbaluta
dbaluta merged commit de9b8be into thesofproject:main May 2, 2023
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.

5 participants