Skip to content

Commit 19cb605

Browse files
jason-ch-chenmathieupoirier
authored andcommitted
remoteproc: mediatek: Increase MT8188/MT8195 SCP core0 DRAM size
The current DRAM size is insufficient for the HEVC feature, which requires more memory for proper functionality. This change ensures the feature has the necessary resources. Signed-off-by: Jason Chen <Jason-ch.Chen@mediatek.com> Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> Cc: stable@vger.kernel.org Link: https://lore.kernel.org/r/20240703034409.698-1-Jason-ch.Chen@mediatek.com Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
1 parent 9dfd8d9 commit 19cb605

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

drivers/remoteproc/mtk_scp.c

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1388,7 +1388,7 @@ static const struct mtk_scp_sizes_data default_scp_sizes = {
13881388
};
13891389

13901390
static const struct mtk_scp_sizes_data mt8188_scp_sizes = {
1391-
.max_dram_size = 0x500000,
1391+
.max_dram_size = 0x800000,
13921392
.ipi_share_buffer_size = 600,
13931393
};
13941394

@@ -1397,6 +1397,11 @@ static const struct mtk_scp_sizes_data mt8188_scp_c1_sizes = {
13971397
.ipi_share_buffer_size = 600,
13981398
};
13991399

1400+
static const struct mtk_scp_sizes_data mt8195_scp_sizes = {
1401+
.max_dram_size = 0x800000,
1402+
.ipi_share_buffer_size = 288,
1403+
};
1404+
14001405
static const struct mtk_scp_of_data mt8183_of_data = {
14011406
.scp_clk_get = mt8183_scp_clk_get,
14021407
.scp_before_load = mt8183_scp_before_load,
@@ -1474,7 +1479,7 @@ static const struct mtk_scp_of_data mt8195_of_data = {
14741479
.scp_da_to_va = mt8192_scp_da_to_va,
14751480
.host_to_scp_reg = MT8192_GIPC_IN_SET,
14761481
.host_to_scp_int_bit = MT8192_HOST_IPC_INT_BIT,
1477-
.scp_sizes = &default_scp_sizes,
1482+
.scp_sizes = &mt8195_scp_sizes,
14781483
};
14791484

14801485
static const struct mtk_scp_of_data mt8195_of_data_c1 = {

0 commit comments

Comments
 (0)