From: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
To: Guillaume Ranquet <granquet@baylibre.com>,
Maarten Lankhorst <maarten.lankhorst@linux.intel.com>,
Maxime Ripard <mripard@kernel.org>,
Thomas Zimmermann <tzimmermann@suse.de>,
David Airlie <airlied@linux.ie>, Daniel Vetter <daniel@ffwll.ch>,
Chun-Kuang Hu <chunkuang.hu@kernel.org>,
Philipp Zabel <p.zabel@pengutronix.de>,
Matthias Brugger <matthias.bgg@gmail.com>
Cc: Markus Schneider-Pargmann <msp@baylibre.com>,
kernel test robot <lkp@intel.com>,
linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org,
linux-mediatek@lists.infradead.org,
linux-arm-kernel@lists.infradead.org
Subject: Re: [PATCH v6 7/7] drm/mediatek: Add mt8195 DisplayPort driver
Date: Fri, 10 Dec 2021 11:17:44 +0100 [thread overview]
Message-ID: <b307d567-774b-ca9e-d7d7-09846782c988@collabora.com> (raw)
In-Reply-To: <20211110130623.20553-8-granquet@baylibre.com>
Il 10/11/21 14:06, Guillaume Ranquet ha scritto:
> From: Markus Schneider-Pargmann <msp@baylibre.com>
>
> This patch adds a DisplayPort driver for the Mediatek mt8195 SoC and a
> according phy driver mediatek-dp-phy.
>
> It supports both functional units on the mt8195, the embedded
> DisplayPort as well as the external DisplayPort units. It offers
> hot-plug-detection, audio up to 8 channels, and DisplayPort 1.4 with up
> to 4 lanes.
>
> The driver creates a child device for the phy. The child device will
> never exist without the parent being active. As they are sharing a
> register range, the parent passes a regmap pointer to the child so that
> both can work with the same register range. The phy driver sets device
> data that is read by the parent to get the phy device that can be used
> to control the phy properties.
>
> This driver is based on an initial version by
> Jason-JH.Lin <jason-jh.lin@mediatek.com>.
>
> Signed-off-by: Markus Schneider-Pargmann <msp@baylibre.com>
> Signed-off-by: Guillaume Ranquet <granquet@baylibre.com>
> Reported-by: kernel test robot <lkp@intel.com>
Hello Markus, Guillaume,
there is a critical issue with this patch. Please check below.
> ---
> drivers/gpu/drm/drm_edid.c | 2 +-
> drivers/gpu/drm/mediatek/Kconfig | 7 +
> drivers/gpu/drm/mediatek/Makefile | 2 +
> drivers/gpu/drm/mediatek/mtk_dp.c | 3094 +++++++++++++++++++++++
> drivers/gpu/drm/mediatek/mtk_dp_reg.h | 568 +++++
> drivers/gpu/drm/mediatek/mtk_dpi.c | 111 +-
> drivers/gpu/drm/mediatek/mtk_dpi_regs.h | 26 +
> drivers/gpu/drm/mediatek/mtk_drm_drv.c | 1 +
> drivers/gpu/drm/mediatek/mtk_drm_drv.h | 1 +
> 9 files changed, 3799 insertions(+), 13 deletions(-)
> create mode 100644 drivers/gpu/drm/mediatek/mtk_dp.c
> create mode 100644 drivers/gpu/drm/mediatek/mtk_dp_reg.h
>
<snip>
> diff --git a/drivers/gpu/drm/mediatek/mtk_dpi.c b/drivers/gpu/drm/mediatek/mtk_dpi.c
> index 384074f69111b..e6e88e3cd811d 100644
> --- a/drivers/gpu/drm/mediatek/mtk_dpi.c
> +++ b/drivers/gpu/drm/mediatek/mtk_dpi.c
<snip>
> @@ -979,6 +1051,16 @@ static int mtk_dpi_probe(struct platform_device *pdev)
> return ret;
> }
>
> + dpi->dpi_ck_cg = devm_clk_get(dev, "ck_cg");
mtk_dpi is used on MT2701, MT7183, MT8183, MT8192, but these platforms haven't
got any "ck_cg" clock defined in their device-trees (regardless of whether these
can support adding this clock or not, any code change shall be retro-compatible
hence not breaking compatibility/functionality with older device-trees).
Reminding that:
- mediatek-drm uses the component framework
- mtk_drm_drv is the component master
- mtk_drm_drv bind() won't be called unless all of the components added with
match aren't calling component_add()
... this change not only breaks DisplayPort support for *all* of the
aforementioned SoCs, but also makes the entire mediatek-drm to not finish
probing, producing a global breakage that also includes DSI and the entire
stack of components of that master (so, no display on all of them).
To avoid breaking any SoC that's not MT8195, please use devm_clk_get_optional()
here in the next version.
Thanks,
- Angelo
next prev parent reply other threads:[~2021-12-10 10:17 UTC|newest]
Thread overview: 31+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20211110130623.20553-1-granquet@baylibre.com>
2021-11-10 13:06 ` [PATCH v6 1/7] dt-bindings: mediatek,dpi: Add DP_INTF compatible Guillaume Ranquet
2021-11-10 13:06 ` [PATCH v6 2/7] dt-bindings: mediatek,dp: Add Display Port binding Guillaume Ranquet
2021-11-10 19:44 ` Rob Herring
2021-11-10 13:06 ` [PATCH v6 3/7] drm/edid: Add cea_sad helpers for freq/length Guillaume Ranquet
2021-11-10 13:06 ` [PATCH v6 4/7] video/hdmi: Add audio_infoframe packing for DP Guillaume Ranquet
2021-11-10 13:06 ` [PATCH v6 5/7] drm/mediatek: dpi: Add dpintf support Guillaume Ranquet
2021-11-26 10:22 ` AngeloGioacchino Del Regno
2021-11-26 10:23 ` AngeloGioacchino Del Regno
2021-12-15 20:14 ` Matthias Brugger
2021-11-10 13:06 ` [PATCH v6 6/7] phy: phy-mtk-dp: Add driver for DP phy Guillaume Ranquet
2021-11-13 7:48 ` Chunfeng Yun
2021-11-24 14:37 ` Guillaume Ranquet
2021-11-10 13:06 ` [PATCH v6 7/7] drm/mediatek: Add mt8195 DisplayPort driver Guillaume Ranquet
2021-11-15 10:11 ` Maxime Ripard
2021-11-15 14:33 ` Guillaume Ranquet
2021-11-16 14:51 ` Maxime Ripard
2021-11-24 13:45 ` Guillaume Ranquet
2021-11-25 14:30 ` Maxime Ripard
2021-12-02 14:48 ` Guillaume Ranquet
2021-12-13 16:54 ` Maxime Ripard
2021-12-15 15:03 ` Guillaume Ranquet
2021-12-15 15:15 ` Maxime Ripard
2021-12-15 16:02 ` Guillaume Ranquet
2021-12-15 16:06 ` Maxime Ripard
2021-11-25 15:27 ` Chun-Kuang Hu
2021-12-02 15:31 ` Guillaume Ranquet
2021-12-15 14:13 ` Guillaume Ranquet
2021-12-09 6:29 ` Hsin-Yi Wang
2021-12-15 13:59 ` Guillaume Ranquet
2021-12-10 10:17 ` AngeloGioacchino Del Regno [this message]
2021-12-15 13:56 ` Guillaume Ranquet
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=b307d567-774b-ca9e-d7d7-09846782c988@collabora.com \
--to=angelogioacchino.delregno@collabora.com \
--cc=airlied@linux.ie \
--cc=chunkuang.hu@kernel.org \
--cc=daniel@ffwll.ch \
--cc=dri-devel@lists.freedesktop.org \
--cc=granquet@baylibre.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mediatek@lists.infradead.org \
--cc=lkp@intel.com \
--cc=maarten.lankhorst@linux.intel.com \
--cc=matthias.bgg@gmail.com \
--cc=mripard@kernel.org \
--cc=msp@baylibre.com \
--cc=p.zabel@pengutronix.de \
--cc=tzimmermann@suse.de \
/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
all inboxes | Powered by JetHome®