Skip to content
Commit 54439d20 authored by Allen-KH Cheng's avatar Allen-KH Cheng Committed by Mathieu Poirier
Browse files

remoteproc: mediatek: Enable cache for mt8186 SCP



This patch is for enabling cache in SCP. There is not enough space
on the SRAM of SCP. We need to run programs in DRAM. The DRAM power
and latency is much larger than SRAM, so cache is used to mitigate
the negative effects for performance. We set SCP registers for cache
size before loading SCP FW. (8KB+8KB) and also adjust ipi_buf_offset
in SRAM from 0x7bdb0 to 0x3bdb0 for enabling cache.

Signed-off-by: default avatarAllen-KH Cheng <allen-kh.cheng@mediatek.com>
Tested-by: default avatarTingHan Shen <tinghan.shen@mediatek.com>
Reviewed-by: default avatarAngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Link: https://lore.kernel.org/r/20220701121229.22756-2-allen-kh.cheng@mediatek.com
Signed-off-by: default avatarMathieu Poirier <mathieu.poirier@linaro.org>
parent 50d6281c
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment