Skip to content

Commit 788a57f

Browse files
author
Jyri Sarha
committed
ipc4: helper: Do not invalidate cache of whole mailbox for module init
Invalidate cache for only the module init payload size not the whole mailbox. Signed-off-by: Jyri Sarha <jyri.sarha@linux.intel.com>
1 parent d3a191c commit 788a57f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ipc/ipc4/helper.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,8 +139,8 @@ __cold struct comp_dev *comp_new_ipc4(struct ipc4_module_init_instance *module_i
139139
ipc_config.ipc_config_size = module_init->extension.r.param_block_size * sizeof(uint32_t);
140140
ipc_config.ipc_extended_init = module_init->extension.r.extended_init;
141141

142-
dcache_invalidate_region((__sparse_force void __sparse_cache *)MAILBOX_HOSTBOX_BASE,
143-
MAILBOX_HOSTBOX_SIZE);
142+
sys_cache_data_invd_range((__sparse_force void __sparse_cache *)MAILBOX_HOSTBOX_BASE,
143+
ipc_config.ipc_config_size);
144144

145145
data = ipc4_get_comp_new_data();
146146

0 commit comments

Comments
 (0)