Skip to content

idc: call cache function z_xtensa_cache_flush directly - #7341

Closed
nashif wants to merge 1 commit into
thesofproject:mainfrom
nashif:SOC_DCACHE_FLUSH_rem
Closed

nashif wants to merge 1 commit into
thesofproject:mainfrom
nashif:SOC_DCACHE_FLUSH_rem

Conversation

@nashif

@nashif nashif commented Mar 28, 2023

Copy link
Copy Markdown
Contributor

Do not use intermediate macro SOC_DCACHE_FLUSH from Zephyr, use cache
function instead.
SOC_DCACHE_FLUSH will be removed from zephyr.

Signed-off-by: Anas Nashif anas.nashif@intel.com

Do not use intermediate macro SOC_DCACHE_FLUSH from Zephyr, use cache
function instead.
SOC_DCACHE_FLUSH will be removed from zephyr.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>

@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.

One question on include guards, see inline.

Comment thread src/idc/zephyr_idc.c
#include <ipc/topology.h>
#if defined(CONFIG_ARCH_XTENSA) && !defined(CONFIG_KERNEL_COHERENCE)
#include <zephyr/arch/xtensa/cache.h>
#endif

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.

Hmm, if these are not defined, wouldn't the build anyways fail when z_xtensa_cache_flush() is not defined?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

do not remember why I did this, afaik this is the same in zephyr/lib/alloc.c

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

@kv2019i do we need to fix zephyr/lib/alloc.c or is this correct ?

@sys-pt1s

sys-pt1s commented Apr 6, 2023

Copy link
Copy Markdown

Can one of the admins verify this patch?

@kv2019i

kv2019i commented Apr 24, 2023

Copy link
Copy Markdown
Collaborator

So this will no longer be needed, superseded by #7486

@kv2019i

kv2019i commented Apr 28, 2023

Copy link
Copy Markdown
Collaborator

Code migrated to use sys_cache_, can close this one.

@kv2019i kv2019i closed this Apr 28, 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.

4 participants