ipc4: invalidate HOSTBOX for comp_new

This will allow to remove invalidate calls for each component init

Signed-off-by: Adrian Bonislawski <adrian.bonislawski@intel.com>
This commit is contained in:
Adrian Bonislawski 2022-01-17 15:10:45 +01:00 committed by Liam Girdwood
parent 6ecfdbf810
commit 2c86a89098
3 changed files with 3 additions and 3 deletions

View File

@ -318,8 +318,6 @@ static struct comp_dev *copier_new(const struct comp_driver *drv,
if (!dev)
return NULL;
dcache_invalidate_region(spec, sizeof(*copier));
dev->ipc_config = *config;
config_size = copier->gtw_cfg.config_length * sizeof(uint32_t);

View File

@ -630,7 +630,6 @@ static struct comp_dev *mixinout_new(const struct comp_driver *drv,
return NULL;
}
dcache_invalidate_region(spec, sizeof(md->base_cfg));
memcpy_s(&md->base_cfg, sizeof(md->base_cfg), spec, sizeof(md->base_cfg));
comp_set_drvdata(dev, md);

View File

@ -77,6 +77,9 @@ struct comp_dev *comp_new(struct sof_ipc_comp *comp)
ipc_config.pipeline_id = comp->pipeline_id;
ipc_config.core = comp->core;
dcache_invalidate_region((void *)(MAILBOX_HOSTBOX_BASE),
MAILBOX_HOSTBOX_SIZE);
dev = drv->ops.create(drv, &ipc_config, (void *)MAILBOX_HOSTBOX_BASE);
if (!dev)
return NULL;