Skip to content
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

platform: remove platform/drivers/idc.h for Intel platforms #9049

Merged
merged 2 commits into from
Apr 16, 2024

Conversation

kv2019i
Copy link
Collaborator

@kv2019i kv2019i commented Apr 15, 2024

For Zephyr builds, only definition needed from platform/drivers/idc.h was prototype for idc_send_msg(). There's no need to keep the platform layer just for this, so add the definition to rtos/idc.h for Zephyr builds, and remove the platform/drivers/idc.h for all Intel platforms.

@kv2019i
Copy link
Collaborator Author

kv2019i commented Apr 15, 2024

@thesofproject/nxp This should be good for all IMX platforms as we link zephyr_idc.c for all Zephyr SOF platforms. So I think the dummy definition of idc_send_msg() you have in many IMX idc.h platform headers, could be removed as well. I was not sure which platforms are Zephyr-only already. so didn't add this change to this PR yet.

Copy link
Contributor

@LaurentiuM1234 LaurentiuM1234 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1 for the cleanup. Will try to handle the IMX platforms once the native transition stuff is out of the way.

@kv2019i
Copy link
Collaborator Author

kv2019i commented Apr 15, 2024

V2:

  • posix/library Zephyr builds failed -> fix by keeping the platform header for these targets
  • compiler warning on multiple platform.c files, fix

Ensure idc_send_msg() is implemented for all platforms linking
zephyr_idc. For non-multicore, idc_send_msg() will return -ENOTSUP
error.

Signed-off-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
@kv2019i
Copy link
Collaborator Author

kv2019i commented Apr 15, 2024

V3:

  • fix link error on non-smp IMX platforms when building for Zephyr

For Zephyr builds, only definition needed from platform/drivers/idc.h
was prototype for idc_send_msg(). There's no need to keep the platform
layer just for this, so add the definition to rtos/idc.h for Zephyr
builds, and remove the platform/drivers/idc.h for all Intel platforms.

Signed-off-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
@kv2019i
Copy link
Collaborator Author

kv2019i commented Apr 16, 2024

V4:

  • stub the IDC interface so to make both fuzzer and SOF plugin happy

@kv2019i kv2019i merged commit 537b0b3 into thesofproject:main Apr 16, 2024
44 of 45 checks passed
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