DSPBridge memory flush function flushing/invalidating one less byte than specified Signed-off-by: Hari Kanigeri <h-kanigeri2@xxxxxx> --- drivers/dsp/bridge/services/mem.c | 12 ++++++------ 1 files changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/dsp/bridge/services/mem.c b/drivers/dsp/bridge/services/mem.c index 565b0b8..9256744 100644 --- a/drivers/dsp/bridge/services/mem.c +++ b/drivers/dsp/bridge/services/mem.c @@ -481,21 +481,21 @@ void MEM_FlushCache(void *pMemBuf, u32 cBytes, s32 FlushType) switch (FlushType) { /* invalidate only */ case PROC_INVALIDATE_MEM: - dmac_inv_range(pMemBuf, pMemBuf + cBytes - 1); + dmac_inv_range(pMemBuf, pMemBuf + cBytes); outer_inv_range(__pa((u32)pMemBuf), __pa((u32)pMemBuf + - cBytes - 1)); + cBytes)); break; /* writeback only */ case PROC_WRITEBACK_MEM: - dmac_clean_range(pMemBuf, pMemBuf + cBytes - 1); + dmac_clean_range(pMemBuf, pMemBuf + cBytes); outer_clean_range(__pa((u32)pMemBuf), __pa((u32)pMemBuf + - cBytes - 1)); + cBytes)); break; /* writeback and invalidate */ case PROC_WRITEBACK_INVALIDATE_MEM: - dmac_flush_range(pMemBuf, pMemBuf + cBytes - 1); + dmac_flush_range(pMemBuf, pMemBuf + cBytes); outer_flush_range(__pa((u32)pMemBuf), __pa((u32)pMemBuf + - cBytes - 1)); + cBytes)); break; default: GT_1trace(MEM_debugMask, GT_6CLASS, "MEM_FlushCache: invalid " -- 1.5.6.rc2 Thank you, Best regards, Hari
Attachment:
0001-DSPBRIDGE-Memory-flush-function-fix.patch
Description: 0001-DSPBRIDGE-Memory-flush-function-fix.patch