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

Several minor miscellaneous patches #8880

Merged
merged 4 commits into from
Feb 26, 2024
Merged

Conversation

lyakh
Copy link
Collaborator

@lyakh lyakh commented Feb 26, 2024

No description provided.

CONFIG_LOG and CONFIG_LOG_MODE_DEFERRED are already defined in the
common prj.conf, no need to re-define them additionally in
architecture-specific configurations.

Signed-off-by: Guennadi Liakhovetski <[email protected]>
Use a local variable instead of calling ipc_get() again in
ipc_send_queued_msg().

Signed-off-by: Guennadi Liakhovetski <[email protected]>
When freeing memory it's also good to clear the pointer to avoid
use-after-free or double-free bugs.

Signed-off-by: Guennadi Liakhovetski <[email protected]>
Replace a potentially infinite loop with one, using a retry counter
to avoid lock ups.

Signed-off-by: Guennadi Liakhovetski <[email protected]>
Copy link
Contributor

@marcinszkudlinski marcinszkudlinski left a comment

Choose a reason for hiding this comment

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

LGTM
consider removing cpu_enable_secondary_core from code, is never used

@lyakh
Copy link
Collaborator Author

lyakh commented Feb 26, 2024

LGTM consider removing cpu_enable_secondary_core from code, is never used

@marcinszkudlinski indeed it isn't. Does it mean, that the CONFIG_ZEPHYR_NATIVE_DRIVERS=n case for multicore Zephyr is broken?

@lgirdwood
Copy link
Member

LGTM consider removing cpu_enable_secondary_core from code, is never used

@marcinszkudlinski indeed it isn't. Does it mean, that the CONFIG_ZEPHYR_NATIVE_DRIVERS=n case for multicore Zephyr is broken?

No, it's not broken, it just means the RTOS feature has completed transition from SOF to Zephyr RTOS. We can now remove in a followup PR.

@lgirdwood lgirdwood merged commit 49abf3f into thesofproject:main Feb 26, 2024
40 of 44 checks passed
@lyakh lyakh deleted the 240226-misc branch February 26, 2024 12:58
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.

4 participants