[PATCH] soc: mediatek: mt8188-mmsys: use the full mask for the RDMA0 output select
From: Stefan Raufhake
Date: Fri Nov 20 2026 - 02:39:36 EST
From: Stefan Raufhake <s.raufhake@xxxxxxxxxxxx>
The output select of DISP_RDMA0 in VDO0_DISP_RDMA_SEL is three bits wide
(MT8188_SOUT_DISP_RDMA0_TO_MASK, e.g. 5 selects DP_INTF0), but since the
migration to MMSYS_ROUTE() the RDMA0 -> COLOR0 route only uses
GENMASK(1, 0). Bit 2 is then not cleared: when the boot loader left
DISP_RDMA0 routed to DP_INTF0 (value 5), setting the COLOR0 route leaves
the field at 4 instead of 0, COLOR0 gets no pixels and the eDP output
stays dark with "vblank wait timed out".
Use MT8188_SOUT_DISP_RDMA0_TO_MASK again, as before the migration.
Fixes: 8a7b1efb2ae8 ("soc: mediatek: mt8188-mmsys: Migrate to MMSYS_ROUTE() macro")
Signed-off-by: Stefan Raufhake <s.raufhake@xxxxxxxxxxxx>
---
Hello,
While developing the Embedded DisplayPort (eDP) driver for the MediaTek
MT8370 SoC in U-Boot, I encountered an issue where Linux fails to display
an image if U-Boot has already initialized and used the eDP interface to
show a splash screen. Conversely, if U-Boot leaves the eDP uninitialized,
Linux displays the image as expected.
This patch resolves the issue, allowing Linux to properly take over and
display an image even after U-Boot has already used the eDP.
I used an LLM coding assistant (OpenCode with claude-opus-5.5) while
investigating this; it helped identify that the MMSYS_ROUTE() migration
had narrowed the RDMA0 output select mask. I reviewed the change myself
and verified it on the hardware listed below.
This patch has been tested on our internal MediaTek MT8370 development
board as well as on the CP6600-0001-0030 [1] device.
Best regards,
Stefan
[1] https://www.beckhoff.com/de-de/produkte/ipc/panel-pcs/cp6xxx-cp7xxx-singletouch-panel-pcs/cp6600-0001-0030.html
---
---
drivers/soc/mediatek/mt8188-mmsys.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/soc/mediatek/mt8188-mmsys.h b/drivers/soc/mediatek/mt8188-mmsys.h
index c70c4b462381240d06a85144b4494a4d9e58850e..ecf0fffef20ad7a042dc02e510a7d266fb979c0e 100644
--- a/drivers/soc/mediatek/mt8188-mmsys.h
+++ b/drivers/soc/mediatek/mt8188-mmsys.h
@@ -233,7 +233,7 @@ static const struct mtk_mmsys_routes mmsys_mt8188_routing_table[] = {
MT8188_VDO0_DSI0_SEL_IN, MT8188_SEL_IN_DSI0_FROM_MASK,
MT8188_SEL_IN_DSI0_FROM_DSC_WRAP0_OUT),
MMSYS_ROUTE(RDMA, 0, COLOR, 0,
- MT8188_VDO0_DISP_RDMA_SEL, GENMASK(1, 0),
+ MT8188_VDO0_DISP_RDMA_SEL, MT8188_SOUT_DISP_RDMA0_TO_MASK,
MT8188_SOUT_DISP_RDMA0_TO_DISP_COLOR0),
MMSYS_ROUTE(DITHER, 0, DSC, 0,
MT8188_VDO0_DISP_DITHER0_SEL_OUT, MT8188_SOUT_DISP_DITHER0_TO_MASK,
---
base-commit: 7cfbf79c66c63e807ea452abf0546e6f6d6833a6
change-id: 20261118-mask-rdma0-ff3cd398eaf0
Best regards,
--
Stefan Raufhake <s.raufhake@xxxxxxxxxxxx>