mirror of https://github.com/thesofproject/sof.git
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:
parent
6ecfdbf810
commit
2c86a89098
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue