Re: [PATCH 1/2] remoteproc: mediatek: Make sure IPI buffer fits in L2TCM

From: AngeloGioacchino Del Regno
Date: Wed Mar 27 2024 - 10:12:16 EST


Il 21/03/24 16:25, Mathieu Poirier ha scritto:
Good day,

On Thu, Mar 21, 2024 at 09:46:13AM +0100, AngeloGioacchino Del Regno wrote:
The IPI buffer location is read from the firmware that we load to the
System Companion Processor, and it's not granted that both the SRAM
(L2TCM) size that is defined in the devicetree node is large enough
for that, and while this is especially true for multi-core SCP, it's
still useful to check on single-core variants as well.

Failing to perform this check may make this driver perform R/W
oeprations out of the L2TCM boundary, resulting (at best) in a

s/oeprations/operations

I will fix that when I apply the patch.


Thanks for that.

Cheers,
Angelo