Re: [PATCH] remoteproc: mediatek: Increase MT8188 SCP core0 DRAM size

From: Mathieu Poirier
Date: Mon Jun 10 2024 - 12:34:29 EST


On Thu, Jun 06, 2024 at 01:00:11PM +0200, AngeloGioacchino Del Regno wrote:
> Il 06/06/24 11:06, jason-ch chen ha scritto:
> > From: Jason Chen <Jason-ch.Chen@xxxxxxxxxxxx>
> >
> > Increase MT8188 SCP core0 DRAM size for HEVC driver.

This is telling me _what_ gets done rather than _why_ it gets done.

> >
>
> ....so the second core only gets a maximum of 0x200000 of SRAM?
> I'm not sure how useful is the secondary SCP core, at this point, with so little
> available SRAM but... okay, as you wish.
>
> Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@xxxxxxxxxxxxx>
>
>
> > Signed-off-by: Jason Chen <Jason-ch.Chen@xxxxxxxxxxxx>
> > ---
> > drivers/remoteproc/mtk_scp.c | 2 +-
> > 1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > diff --git a/drivers/remoteproc/mtk_scp.c b/drivers/remoteproc/mtk_scp.c
> > index b885a9a041e4..2119fc62c3f2 100644
> > --- a/drivers/remoteproc/mtk_scp.c
> > +++ b/drivers/remoteproc/mtk_scp.c
> > @@ -1390,7 +1390,7 @@ static const struct mtk_scp_sizes_data default_scp_sizes = {
> > };
> > static const struct mtk_scp_sizes_data mt8188_scp_sizes = {
> > - .max_dram_size = 0x500000,
> > + .max_dram_size = 0x800000,

Do you require to fix a "reserved-memory" node in a device tree file to account
for this?

Thanks,
Mathieu

> > .ipi_share_buffer_size = 600,
> > };
>
>