From: sashiko-bot@kernel.org
To: "Luca Leonardo Scorcia" <l.scorcia@gmail.com>
Cc: devicetree@vger.kernel.org, conor+dt@kernel.org, robh@kernel.org,
dri-devel@lists.freedesktop.org
Subject: Re: [PATCH v2 3/4] soc: mediatek: mt8167-mmsys: add routes for all display paths
Date: Mon, 21 Sep 2026 11:50:29 +0000 [thread overview]
Message-ID: <20260921115030.2DFDF1F000FF@smtp.kernel.org> (raw)
In-Reply-To: <20260921113914.779393-4-l.scorcia@gmail.com>
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [High] mmsys: concurrent MOUT outputs broken by full bitmasks
--
commit 8ae801c4ff167fb410aace262b9f0eef4667f2c9
Author: Luca Leonardo Scorcia <l.scorcia@gmail.com>
soc: mediatek: mt8167-mmsys: add routes for all display paths
This commit adds support for additional routes according to the SoC data
sheet and Android sources. It redefines existing routing table entries to
use full masks and adds new concurrent display output configurations.
> diff --git a/drivers/soc/mediatek/mt8167-mmsys.h b/drivers/soc/mediatek/mt8167-mmsys.h
> index 001379373507a..7da81b6688715 100644
> --- a/drivers/soc/mediatek/mt8167-mmsys.h
> +++ b/drivers/soc/mediatek/mt8167-mmsys.h
[ ... ]
> @@ -34,16 +78,162 @@
>
> static const struct mtk_mmsys_routes mt8167_mmsys_routing_table[] = {
> + /* OVL0<->COLOR0 */
> MMSYS_ROUTE(OVL, 0, COLOR, 0,
> - MT8167_DISP_REG_CONFIG_DISP_OVL0_MOUT_EN, OVL0_MOUT_EN_COLOR0,
> - OVL0_MOUT_EN_COLOR0),
> + MT8167_DISP_REG_CONFIG_DISP_OVL0_MOUT_EN, MT8167_OVL0_MOUT_EN_MASK,
> + MT8167_OVL0_MOUT_EN_COLOR0),
[Severity: High]
Does changing this mask to the full MT8167_OVL0_MOUT_EN_MASK inadvertently
introduce a regression for concurrent multi-output pipelines?
Looking at mtk_mmsys_ddp_disconnect(), it performs a read-modify-write
operation on the register using (tmp & ~mask) | (val & mask). When
disconnecting a route, val is 0, so the register is masked with ~mask.
By using the full bitfield mask instead of the individual bit mask, does
disconnecting one route clear the enable bits for all other active
concurrent paths originating from the same block?
> + MMSYS_ROUTE(OVL, 0, COLOR, 0,
> + MT8167_DISP_REG_CONFIG_DISP_COLOR0_SEL_IN, MT8167_COLOR0_SEL_IN_MASK,
> + MT8167_COLOR0_SEL_IN_OVL0),
> +
> + /* OVL0<->WDMA0 */
> + MMSYS_ROUTE(OVL, 0, WDMA, 0,
> + MT8167_DISP_REG_CONFIG_DISP_OVL0_MOUT_EN, MT8167_OVL0_MOUT_EN_MASK,
> + MT8167_OVL0_MOUT_EN_WDMA0),
[Severity: High]
For example, if the OVL0-to-WDMA0 route is active alongside OVL0-to-COLOR0,
does disconnecting WDMA0 here clear the active OVL0-to-COLOR0 routing
bits as well because of the shared MT8167_OVL0_MOUT_EN_MASK mask?
[ ... ]
> + /* DITHER<->UFOE */
> + MMSYS_ROUTE(DITHER, 0, UFOE, 0,
> + MT8167_DISP_REG_CONFIG_DISP_DITHER_MOUT_EN, MT8167_DITHER_MOUT_EN_MASK,
> + MT8167_DITHER_MOUT_EN_UFOE),
[Severity: High]
Similarly, does using the full MT8167_DITHER_MOUT_EN_MASK here cause the
disconnect of the DITHER-to-UFOE route to accidentally break concurrent
routing to RDMA0 and WDMA0?
[ ... ]
--
Sashiko AI review · https://sashiko.dev/#/patchset/20260921113914.779393-1-l.scorcia@gmail.com?part=3
next prev parent reply other threads:[~2026-09-21 11:50 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-21 11:38 [PATCH v2 0/4] Add support for the mt8167 display pipeline Luca Leonardo Scorcia
2026-09-21 11:38 ` [PATCH v2 1/4] dt-bindings: display: mediatek: dpi: Add compatible for mt8167 Luca Leonardo Scorcia
2026-09-25 13:24 ` Krzysztof Kozlowski
2026-09-21 11:38 ` [PATCH v2 2/4] drm/mediatek: Add support for mt8167 Digital Parallel Interface Luca Leonardo Scorcia
2026-09-21 11:38 ` [PATCH v2 3/4] soc: mediatek: mt8167-mmsys: add routes for all display paths Luca Leonardo Scorcia
2026-09-21 11:50 ` sashiko-bot [this message]
2026-09-21 11:38 ` [PATCH v2 4/4] arm64: dts: mediatek: mt8167: Add DRM nodes Luca Leonardo Scorcia
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260921115030.2DFDF1F000FF@smtp.kernel.org \
--to=sashiko-bot@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=dri-devel@lists.freedesktop.org \
--cc=l.scorcia@gmail.com \
--cc=robh@kernel.org \
--cc=sashiko-reviews@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox