* [PATCH] arm64: dts: mediatek: mt8188-geralt: Enlarge SCP core0 memory region
@ 2026-08-24 9:04 Justin Yeh
2026-08-24 9:12 ` Chen-Yu Tsai
2026-09-10 7:39 ` AngeloGioacchino Del Regno
0 siblings, 2 replies; 3+ messages in thread
From: Justin Yeh @ 2026-08-24 9:04 UTC (permalink / raw)
To: Matthias Brugger, AngeloGioacchino Del Regno, Chen-Yu Tsai,
Fei Shao
Cc: Rob Herring, Krzysztof Kozlowski, Conor Dooley, devicetree,
linux-arm-kernel, linux-mediatek, linux-kernel,
Project_Global_Chrome_Upstream_Group, Justin Yeh
The SCP firmware in linux-firmware for this platform
(mediatek/mt8188/scp_c0.img) supports MDP, which the mdp3-rdma node
drives through scp_c0. On top of the segments it loads, the firmware
allocates a 1 MiB DMA region at 0x50800000 at run time. That lies
outside the 8 MiB reserved for SCP core0, so Linux is free to allocate
over memory the firmware uses.
Enlarge the region to 9 MiB. apu_mem starts at 0x55000000, so no other
reserved region has to move.
Fixes: e36be19823f0 ("arm64: dts: mediatek: mt8188-geralt: Enable first SCP core")
Signed-off-by: Justin Yeh <justin.yeh@mediatek.com>
---
arch/arm64/boot/dts/mediatek/mt8188-geralt.dtsi | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/arm64/boot/dts/mediatek/mt8188-geralt.dtsi b/arch/arm64/boot/dts/mediatek/mt8188-geralt.dtsi
index f382f90c48f5..35f60b5bba6f 100644
--- a/arch/arm64/boot/dts/mediatek/mt8188-geralt.dtsi
+++ b/arch/arm64/boot/dts/mediatek/mt8188-geralt.dtsi
@@ -166,7 +166,7 @@ reserved_memory: reserved-memory {
scp_mem_reserved: memory@50000000 {
compatible = "shared-dma-pool";
- reg = <0 0x50000000 0 0x800000>;
+ reg = <0 0x50000000 0 0x900000>;
no-map;
};
--
2.45.2
^ permalink raw reply related [flat|nested] 3+ messages in thread* Re: [PATCH] arm64: dts: mediatek: mt8188-geralt: Enlarge SCP core0 memory region
2026-08-24 9:04 [PATCH] arm64: dts: mediatek: mt8188-geralt: Enlarge SCP core0 memory region Justin Yeh
@ 2026-08-24 9:12 ` Chen-Yu Tsai
2026-09-10 7:39 ` AngeloGioacchino Del Regno
1 sibling, 0 replies; 3+ messages in thread
From: Chen-Yu Tsai @ 2026-08-24 9:12 UTC (permalink / raw)
To: Justin Yeh
Cc: Rob Herring, Conor Dooley, linux-kernel,
Project_Global_Chrome_Upstream_Group, devicetree, linux-mediatek,
Matthias Brugger, Krzysztof Kozlowski, linux-arm-kernel,
AngeloGioacchino Del Regno
On Mon, Aug 24, 2026 at 5:04 PM Justin Yeh <justin.yeh@mediatek.com> wrote:
>
> The SCP firmware in linux-firmware for this platform
> (mediatek/mt8188/scp_c0.img) supports MDP, which the mdp3-rdma node
> drives through scp_c0. On top of the segments it loads, the firmware
> allocates a 1 MiB DMA region at 0x50800000 at run time. That lies
> outside the 8 MiB reserved for SCP core0, so Linux is free to allocate
> over memory the firmware uses.
>
> Enlarge the region to 9 MiB. apu_mem starts at 0x55000000, so no other
> reserved region has to move.
>
> Fixes: e36be19823f0 ("arm64: dts: mediatek: mt8188-geralt: Enable first SCP core")
> Signed-off-by: Justin Yeh <justin.yeh@mediatek.com>
Reviewed-by: Chen-Yu Tsai <wenst@chromium.org>
> ---
> arch/arm64/boot/dts/mediatek/mt8188-geralt.dtsi | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/arch/arm64/boot/dts/mediatek/mt8188-geralt.dtsi b/arch/arm64/boot/dts/mediatek/mt8188-geralt.dtsi
> index f382f90c48f5..35f60b5bba6f 100644
> --- a/arch/arm64/boot/dts/mediatek/mt8188-geralt.dtsi
> +++ b/arch/arm64/boot/dts/mediatek/mt8188-geralt.dtsi
> @@ -166,7 +166,7 @@ reserved_memory: reserved-memory {
>
> scp_mem_reserved: memory@50000000 {
> compatible = "shared-dma-pool";
> - reg = <0 0x50000000 0 0x800000>;
> + reg = <0 0x50000000 0 0x900000>;
> no-map;
> };
>
> --
> 2.45.2
>
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: [PATCH] arm64: dts: mediatek: mt8188-geralt: Enlarge SCP core0 memory region
2026-08-24 9:04 [PATCH] arm64: dts: mediatek: mt8188-geralt: Enlarge SCP core0 memory region Justin Yeh
2026-08-24 9:12 ` Chen-Yu Tsai
@ 2026-09-10 7:39 ` AngeloGioacchino Del Regno
1 sibling, 0 replies; 3+ messages in thread
From: AngeloGioacchino Del Regno @ 2026-09-10 7:39 UTC (permalink / raw)
To: Matthias Brugger, Chen-Yu Tsai, Fei Shao, Justin Yeh
Cc: Rob Herring, Krzysztof Kozlowski, Conor Dooley, devicetree,
linux-arm-kernel, linux-mediatek, linux-kernel,
Project_Global_Chrome_Upstream_Group
On Mon, 24 Aug 2026 17:04:00 +0800, Justin Yeh wrote:
> The SCP firmware in linux-firmware for this platform
> (mediatek/mt8188/scp_c0.img) supports MDP, which the mdp3-rdma node
> drives through scp_c0. On top of the segments it loads, the firmware
> allocates a 1 MiB DMA region at 0x50800000 at run time. That lies
> outside the 8 MiB reserved for SCP core0, so Linux is free to allocate
> over memory the firmware uses.
>
> [...]
Applied to v7.3-next/dts64, thanks!
[1/1] arm64: dts: mediatek: mt8188-geralt: Enlarge SCP core0 memory region
commit: 868297e3ebcc5c9b0e7cada19c82b11068faf4bf
Cheers,
Angelo
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2026-09-10 7:39 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-08-24 9:04 [PATCH] arm64: dts: mediatek: mt8188-geralt: Enlarge SCP core0 memory region Justin Yeh
2026-08-24 9:12 ` Chen-Yu Tsai
2026-09-10 7:39 ` AngeloGioacchino Del Regno
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox