Skip to content
Commit 7c8cda03 authored by Tanmay Shah's avatar Tanmay Shah Committed by Quanyang Wang
Browse files

remoteproc: zynqmp: fix TCM carveouts in lockstep mode

commit 4083ce5e520a33e5c96c2db4fe8009dad68b1898 from
https://github.com/Xilinx/linux-xlnx.git

 xlnx_rebase_v6.6

In lockstep mode following is TCM address map:

|      *TCM*         |   *R5 View* | *Linux view* |
| R5_0 ATCM (128 KB) | 0x0000_0000 | 0xFFE0_0000  |
| R5_0 BTCM (128 KB) | 0x0002_0000 | 0xFFE2_0000  |

Current driver keeps single TCM carveout in lockstep mode
as ATCM and BTCM addresses form contiguous memory region.

Although the addresses are contiguous, it is not same type
of memory. ATCM typically holds interrupt or exception code
that must be accessed at high speed. BTCM typically holds
a block of data for intensive processing, such as audio or
video processing. As both are different types of memory,
they should be allocated as different carveout. This patch
is fixing TCM carveout allocation in lockstep mode.

Signed-off-by: default avatarTanmay Shah <tanmay.shah@amd.com>
Link: https://lore.kernel.org/r/20230913024323.2768114-1-tanmay.shah@amd.com


Signed-off-by: default avatarMathieu Poirier <mathieu.poirier@linaro.org>
State: upstream (9af45bbd)
Signed-off-by: default avatarQuanyang Wang <quanyang.wang@windriver.com>
parent 7ad5f909
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment