linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] remoteproc: mediatek: Increase MT8188/MT8195 SCP core0 DRAM size
@ 2024-07-03  3:44 Jason Chen
  2024-07-03  9:05 ` AngeloGioacchino Del Regno
  0 siblings, 1 reply; 3+ messages in thread
From: Jason Chen @ 2024-07-03  3:44 UTC (permalink / raw)
  To: Bjorn Andersson, Mathieu Poirier, Matthias Brugger,
	AngeloGioacchino Del Regno
  Cc: Project_Global_Chrome_Upstream_Group, linux-remoteproc,
	linux-kernel, linux-arm-kernel, linux-mediatek, Jason Chen

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>
---
 drivers/remoteproc/mtk_scp.c | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/drivers/remoteproc/mtk_scp.c b/drivers/remoteproc/mtk_scp.c
index b17757900cd7..e744c07507ee 100644
--- a/drivers/remoteproc/mtk_scp.c
+++ b/drivers/remoteproc/mtk_scp.c
@@ -1388,7 +1388,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,
 	.ipi_share_buffer_size = 600,
 };
 
@@ -1397,6 +1397,11 @@ static const struct mtk_scp_sizes_data mt8188_scp_c1_sizes = {
 	.ipi_share_buffer_size = 600,
 };
 
+static const struct mtk_scp_sizes_data mt8195_scp_sizes = {
+	.max_dram_size = 0x800000,
+	.ipi_share_buffer_size = 288,
+};
+
 static const struct mtk_scp_of_data mt8183_of_data = {
 	.scp_clk_get = mt8183_scp_clk_get,
 	.scp_before_load = mt8183_scp_before_load,
@@ -1474,7 +1479,7 @@ static const struct mtk_scp_of_data mt8195_of_data = {
 	.scp_da_to_va = mt8192_scp_da_to_va,
 	.host_to_scp_reg = MT8192_GIPC_IN_SET,
 	.host_to_scp_int_bit = MT8192_HOST_IPC_INT_BIT,
-	.scp_sizes = &default_scp_sizes,
+	.scp_sizes = &mt8195_scp_sizes,
 };
 
 static const struct mtk_scp_of_data mt8195_of_data_c1 = {
-- 
2.34.1



^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] remoteproc: mediatek: Increase MT8188/MT8195 SCP core0 DRAM size
  2024-07-03  3:44 [PATCH] remoteproc: mediatek: Increase MT8188/MT8195 SCP core0 DRAM size Jason Chen
@ 2024-07-03  9:05 ` AngeloGioacchino Del Regno
  2024-07-08 16:06   ` Mathieu Poirier
  0 siblings, 1 reply; 3+ messages in thread
From: AngeloGioacchino Del Regno @ 2024-07-03  9:05 UTC (permalink / raw)
  To: Jason Chen, Bjorn Andersson, Mathieu Poirier, Matthias Brugger
  Cc: Project_Global_Chrome_Upstream_Group, linux-remoteproc,
	linux-kernel, linux-arm-kernel, linux-mediatek

Il 03/07/24 05:44, Jason Chen ha scritto:
> 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>




^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] remoteproc: mediatek: Increase MT8188/MT8195 SCP core0 DRAM size
  2024-07-03  9:05 ` AngeloGioacchino Del Regno
@ 2024-07-08 16:06   ` Mathieu Poirier
  0 siblings, 0 replies; 3+ messages in thread
From: Mathieu Poirier @ 2024-07-08 16:06 UTC (permalink / raw)
  To: AngeloGioacchino Del Regno
  Cc: Jason Chen, Bjorn Andersson, Matthias Brugger,
	Project_Global_Chrome_Upstream_Group, linux-remoteproc,
	linux-kernel, linux-arm-kernel, linux-mediatek

On Wed, Jul 03, 2024 at 11:05:59AM +0200, AngeloGioacchino Del Regno wrote:
> Il 03/07/24 05:44, Jason Chen ha scritto:
> > 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>
>

I have applied this patch.

Thanks,
Mathieu

> 


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2024-07-08 16:06 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-07-03  3:44 [PATCH] remoteproc: mediatek: Increase MT8188/MT8195 SCP core0 DRAM size Jason Chen
2024-07-03  9:05 ` AngeloGioacchino Del Regno
2024-07-08 16:06   ` Mathieu Poirier

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).