[PATCH v2 2/2] remoteproc: mediatek: Support MT8188 SCP core 1

2024-04-19 Thread Olivia Wen
From: "olivia.wen" There are three primary modifications. 1. The struct mtk_scp_of_data usage on MT8188 MT8192 functions are unsuitable for the dual-core MT8188 SCP, which has two RISC-V cores similar to MT8195 but without L1TCM. We've added MT8188-specific functions to configure L1TCM in

[PATCH v2 1/2] dt-bindings: remoteproc: mediatek: Support MT8188 dual-core SCP

2024-04-19 Thread Olivia Wen
From: "olivia.wen" Under different applications, the MT8188 SCP can be used as single-core or dual-core. Signed-off-by: olivia.wen --- Documentation/devicetree/bindings/remoteproc/mtk,scp.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git

[PATCH v2 0/2] Support MT8188 SCP core 1

2024-04-19 Thread Olivia Wen
From: "olivia.wen" Change in v2: - change the order of mt8188-scp-dual - modify the struct mtk_scp_of_data on MT8188 - add MT8188-specific functions - add structure mtk_scp_sizes_data to manage sizes - change tmp_data allocation to share_buf olivia.wen (2): dt-bindings: remoteproc: mediatek:

[PATCH v3 3/4] remoteproc: mediatek: Support setting DRAM and IPI shared buffer sizes

2024-04-23 Thread Olivia Wen
The SCP on different chips will require different DRAM sizes and IPI shared buffer sizes based on varying requirements. Signed-off-by: Olivia Wen --- drivers/remoteproc/mtk_common.h | 11 -- drivers/remoteproc/mtk_scp.c | 84 +++- drivers/remoteproc

[PATCH v3 1/4] dt-bindings: remoteproc: mediatek: Support MT8188 dual-core SCP

2024-04-23 Thread Olivia Wen
Under different applications, the MT8188 SCP can be used as single-core or dual-core. Signed-off-by: Olivia Wen Acked-by: Krzysztof Kozlowski Reviewed-by: AngeloGioacchino Del Regno --- Documentation/devicetree/bindings/remoteproc/mtk,scp.yaml | 2 ++ 1 file changed, 2 insertions(+) diff

[PATCH v3 4/4] media: mediatek: imgsys: Support image processing

2024-04-23 Thread Olivia Wen
Integrate the imgsys core architecture driver for image processing on the MT8188 platform. Signed-off-by: Olivia Wen --- include/linux/remoteproc/mtk_scp.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/linux/remoteproc/mtk_scp.h b/include/linux/remoteproc/mtk_scp.h index 7c2b7cc9

[PATCH v3 2/4] remoteproc: mediatek: Support MT8188 SCP core 1

2024-04-23 Thread Olivia Wen
MT8188 SCP has two RISC-V cores which is similar to MT8195 but without L1TCM. We've added MT8188-specific functions to configure L1TCM in multicore setups. Signed-off-by: Olivia Wen --- drivers/remoteproc/mtk_scp.c | 146 ++- 1 file changed, 143

[PATCH v3 0/4] Support MT8188 SCP core 1

2024-04-23 Thread Olivia Wen
to share_buf Olivia Wen (4): dt-bindings: remoteproc: mediatek: Support MT8188 dual-core SCP remoteproc: mediatek: Support MT8188 SCP core 1 remoteproc: mediatek: Support setting DRAM and IPI shared buffer sizes media: mediatek: imgsys: Support image processing .../devicetree/bindings

[PATCH 1/2] dt-bindings: remoteproc: mediatek: Support MT8188 dual-core SCP

2024-04-10 Thread olivia . wen
Under different applications, the MT8188 SCP can be used as single-core or dual-core. Signed-off-by: olivia.wen --- Documentation/devicetree/bindings/remoteproc/mtk,scp.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git

[PATCH 2/2] remoteproc: mediatek: Support MT8188 SCP core 1

2024-04-10 Thread olivia . wen
To Support MT8188 SCP core 1 for ISP driver. The SCP on different chips will require different code sizes and IPI buffer sizes based on varying requirements. Signed-off-by: olivia.wen --- drivers/remoteproc/mtk_common.h| 5 +-- drivers/remoteproc/mtk_scp.c | 62

[PATCH 0/2] Support MT8188 SCP core 1

2024-04-10 Thread olivia . wen
Add below patches to support MT8188 SCP core 1 [PATCH 1/2] dt-bindings: remoteproc: mediatek: Support MT8188 dual-core SCP [PATCH 2/2] remoteproc: mediatek: Support MT8188 SCP core 1 olivia.wen (2): dt-bindings: remoteproc: mediatek: Support MT8188 dual-core SCP remoteproc:

[PATCH v4 3/4] remoteproc: mediatek: Support setting DRAM and IPI shared buffer sizes

2024-04-29 Thread Olivia Wen
The SCP on different chips will require different DRAM sizes and IPI shared buffer sizes based on varying requirements. Signed-off-by: Olivia Wen Reviewed-by: AngeloGioacchino Del Regno --- drivers/remoteproc/mtk_common.h | 11 -- drivers/remoteproc/mtk_scp.c | 84

[PATCH v4 1/4] dt-bindings: remoteproc: mediatek: Support MT8188 dual-core SCP

2024-04-29 Thread Olivia Wen
Under different applications, the MT8188 SCP can be used as single-core or dual-core. Signed-off-by: Olivia Wen Acked-by: Krzysztof Kozlowski Reviewed-by: AngeloGioacchino Del Regno --- Documentation/devicetree/bindings/remoteproc/mtk,scp.yaml | 2 ++ 1 file changed, 2 insertions(+) diff

[PATCH v4 4/4] remoteproc: mediatek: Add IMGSYS IPI command

2024-04-29 Thread Olivia Wen
Add an IPI command definition for communication with IMGSYS through SCP mailbox. Signed-off-by: Olivia Wen --- include/linux/remoteproc/mtk_scp.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/linux/remoteproc/mtk_scp.h b/include/linux/remoteproc/mtk_scp.h index 7c2b7cc9..344ff41

[PATCH v4 0/4] Support MT8188 SCP core 1

2024-04-29 Thread Olivia Wen
Change in v4: Updating the description of PATCH v4 4/4. Olivia Wen (4): dt-bindings: remoteproc: mediatek: Support MT8188 dual-core SCP remoteproc: mediatek: Support MT8188 SCP core 1 remoteproc: mediatek: Support setting DRAM and IPI shared buffer sizes remoteproc: mediatek: Add IMGSYS

[PATCH v4 2/4] remoteproc: mediatek: Support MT8188 SCP core 1

2024-04-29 Thread Olivia Wen
MT8188 SCP has two RISC-V cores which is similar to MT8195 but without L1TCM. We've added MT8188-specific functions to configure L1TCM in multicore setups. Signed-off-by: Olivia Wen Reviewed-by: AngeloGioacchino Del Regno --- drivers/remoteproc/mtk_scp.c | 146