mirror of https://github.com/thesofproject/sof.git
drivers: imx: Writeback cache for desc/ccb/ctx
We need to make sure that backend memory is updated for desc/ccb/ctx because they are modified in sdma_prep_desc. Signed-off-by: Daniel Baluta <daniel.baluta@nxp.com>
This commit is contained in:
parent
834b3d5c28
commit
60a5a96bbb
|
@ -822,6 +822,10 @@ static int sdma_prep_desc(struct dma_chan_data *channel,
|
||||||
pdata->ctx->g_reg[7] = watermark;
|
pdata->ctx->g_reg[7] = watermark;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
dcache_writeback_region(pdata->desc, sizeof(pdata->desc));
|
||||||
|
dcache_writeback_region(pdata->ccb, sizeof(*pdata->ccb));
|
||||||
|
dcache_writeback_region(pdata->ctx, sizeof(*pdata->ctx));
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue