From: "Sunny Shen (沈姍姍)" <Sunny.Shen@mediatek.com>
To: "CK Hu (胡俊光)" <ck.hu@mediatek.com>,
"robh@kernel.org" <robh@kernel.org>,
"AngeloGioacchino Del Regno"
<angelogioacchino.delregno@collabora.com>,
"conor+dt@kernel.org" <conor+dt@kernel.org>,
"krzk+dt@kernel.org" <krzk+dt@kernel.org>,
"chunkuang.hu@kernel.org" <chunkuang.hu@kernel.org>
Cc: "treapking@chromium.org" <treapking@chromium.org>,
"Singo Chang (張興國)" <Singo.Chang@mediatek.com>,
Project_Global_Chrome_Upstream_Group
<Project_Global_Chrome_Upstream_Group@mediatek.com>,
"dri-devel@lists.freedesktop.org"
<dri-devel@lists.freedesktop.org>,
"Nancy Lin (林欣螢)" <Nancy.Lin@mediatek.com>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"Jason-JH Lin (林睿祥)" <Jason-JH.Lin@mediatek.com>,
"linux-arm-kernel@lists.infradead.org"
<linux-arm-kernel@lists.infradead.org>,
"Paul-pl Chen (陳柏霖)" <Paul-pl.Chen@mediatek.com>,
"linux-mediatek@lists.infradead.org"
<linux-mediatek@lists.infradead.org>,
"matthias.bgg@gmail.com" <matthias.bgg@gmail.com>,
"p.zabel@pengutronix.de" <p.zabel@pengutronix.de>
Subject: Re: [PATCH 5/5] drm/mediatek: Change main display path to support PQ for MT8196
Date: Thu, 27 Mar 2025 05:44:03 +0000 [thread overview]
Message-ID: <cfb8b2bc8249dea9676dc6493baf2cdbeb38f943.camel@mediatek.com> (raw)
In-Reply-To: <041ffe38-ca24-4e05-90c1-e37f9323c7cf@collabora.com>
On Mon, 2025-02-17 at 15:25 +0100, AngeloGioacchino Del Regno wrote:
>
> External email : Please do not click links or open attachments until
> you have verified the sender or the content.
>
>
> Il 17/02/25 07:06, CK Hu (胡俊光) ha scritto:
> > On Tue, 2025-02-11 at 10:52 +0800, Sunny Shen wrote:
> > > Due to the path mux design of the MT8196, the following
> > > components
> > > need to be added to support Picture Quality (PQ) in the main
> > > display
> > > path: CCORR0, CCORR1, DITHER0, GAMMA0, MDP_RSZ0, POSTMASK0,
> > > TDSHP0.
> >
> > Reviewed-by: CK Hu <ck.hu@mediatek.com>
> >
> > >
> > > Signed-off-by: Sunny Shen <sunny.shen@mediatek.com>
> > > ---
> > > drivers/gpu/drm/mediatek/mtk_drm_drv.c | 7 +++++++
> > > 1 file changed, 7 insertions(+)
> > >
> > > diff --git a/drivers/gpu/drm/mediatek/mtk_drm_drv.c
> > > b/drivers/gpu/drm/mediatek/mtk_drm_drv.c
> > > index b810a197f58b..1c97dc46ae70 100644
> > > --- a/drivers/gpu/drm/mediatek/mtk_drm_drv.c
> > > +++ b/drivers/gpu/drm/mediatek/mtk_drm_drv.c
> > > @@ -242,6 +242,13 @@ static const unsigned int
> > > mt8196_mtk_ddp_ovl0_main[] = {
> > >
> > > static const unsigned int mt8196_mtk_ddp_disp0_main[] = {
>
> If you build the display controller path with an OF graph, you don't
> need to
> introduce any mt8196_mtk_ddp_disp0_main, at all.
>
> Since all this work was done and upstreamed, and was done because
> hardcoding
> the display pipeline for each board is only bloating the driver (and
> wrong),
> just express the pipeline with a graph in the devicetree.
>
> The driver doesn't need that array, not anymore.
>
> Regards,
> Angelo
Hi Angelo,
Thank you for the review
We are still investigating the method of using OF graph.
I can find a patch of add controllor graph here
(https://patchwork.kernel.org/project/linux-mediatek/patch/20250220110948.45596-2-angelogioacchino.delregno@collabora.com/
)
May I ask that is there any example of driver config display path by OF
graph?
And since the path control is not the main topic of PQ support.
Should we discard the change of this file
and modify the patch added path of mt8196?
(https://patchwork.kernel.org/project/linux-mediatek/patch/20250321093435.94835-16-paul-pl.chen@mediatek.com/
)
Or add a new patch series?
Regards,
Sunny
>
> > > DDP_COMPONENT_DLI_ASYNC0,
> > > + DDP_COMPONENT_MDP_RSZ0,
> > > + DDP_COMPONENT_TDSHP0,
> > > + DDP_COMPONENT_CCORR0,
> > > + DDP_COMPONENT_CCORR1,
> > > + DDP_COMPONENT_GAMMA0,
> > > + DDP_COMPONENT_POSTMASK0,
> > > + DDP_COMPONENT_DITHER0,
> > > DDP_COMPONENT_DLO_ASYNC1,
> > > };
> > >
> >
>
>
>
prev parent reply other threads:[~2025-03-27 5:44 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-02-11 2:52 [PATCH 0/5] Add components to support PQ in display path for MT8196 Sunny Shen
2025-02-11 2:52 ` [PATCH 1/5] dt-bindings: display: mediatek: mdp-rsz: Add rules " Sunny Shen
2025-02-11 17:54 ` Conor Dooley
2025-02-23 17:49 ` Sunny Shen (沈姍姍)
2025-02-24 19:01 ` Conor Dooley
2025-03-18 3:14 ` Sunny Shen (沈姍姍)
2025-03-19 20:00 ` Conor Dooley
2025-03-21 5:45 ` Sunny Shen (沈姍姍)
2025-02-17 6:01 ` CK Hu (胡俊光)
2025-02-23 17:50 ` Sunny Shen (沈姍姍)
2025-02-11 2:52 ` [PATCH 2/5] dt-bindings: display: mediatek: postmask: Modify " Sunny Shen
2025-02-11 17:44 ` Conor Dooley
2025-02-23 17:51 ` Sunny Shen (沈姍姍)
2025-02-11 2:52 ` [PATCH 3/5] soc: mediatek: Add components to support PQ in display path " Sunny Shen
2025-02-11 2:52 ` [PATCH 4/5] drm/mediatek: Add MDP-RSZ component support " Sunny Shen
2025-02-17 6:04 ` CK Hu (胡俊光)
2025-02-23 17:52 ` Sunny Shen (沈姍姍)
2025-02-24 2:07 ` CK Hu (胡俊光)
2025-02-11 2:52 ` [PATCH 5/5] drm/mediatek: Change main display path to support PQ " Sunny Shen
2025-02-17 6:06 ` CK Hu (胡俊光)
2025-02-17 14:25 ` AngeloGioacchino Del Regno
2025-03-27 5:44 ` Sunny Shen (沈姍姍) [this message]
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=cfb8b2bc8249dea9676dc6493baf2cdbeb38f943.camel@mediatek.com \
--to=sunny.shen@mediatek.com \
--cc=Jason-JH.Lin@mediatek.com \
--cc=Nancy.Lin@mediatek.com \
--cc=Paul-pl.Chen@mediatek.com \
--cc=Project_Global_Chrome_Upstream_Group@mediatek.com \
--cc=Singo.Chang@mediatek.com \
--cc=angelogioacchino.delregno@collabora.com \
--cc=chunkuang.hu@kernel.org \
--cc=ck.hu@mediatek.com \
--cc=conor+dt@kernel.org \
--cc=dri-devel@lists.freedesktop.org \
--cc=krzk+dt@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mediatek@lists.infradead.org \
--cc=matthias.bgg@gmail.com \
--cc=p.zabel@pengutronix.de \
--cc=robh@kernel.org \
--cc=treapking@chromium.org \
/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;
as well as URLs for NNTP newsgroup(s).