lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <c0f31248f8ea936147445d92f7e39d93f5d47c35.camel@mediatek.com>
Date: Fri, 21 Mar 2025 00:59:46 +0000
From: CK Hu (胡俊光) <ck.hu@...iatek.com>
To: AngeloGioacchino Del Regno <angelogioacchino.delregno@...labora.com>,
	"tzimmermann@...e.de" <tzimmermann@...e.de>, "neil.armstrong@...aro.org"
	<neil.armstrong@...aro.org>, "simona@...ll.ch" <simona@...ll.ch>, "Alexandre
 Mergnat" <amergnat@...libre.com>, "chunkuang.hu@...nel.org"
	<chunkuang.hu@...nel.org>, "airlied@...il.com" <airlied@...il.com>,
	"quic_jesszhan@...cinc.com" <quic_jesszhan@...cinc.com>,
	"catalin.marinas@....com" <catalin.marinas@....com>,
	"maarten.lankhorst@...ux.intel.com" <maarten.lankhorst@...ux.intel.com>,
	"p.zabel@...gutronix.de" <p.zabel@...gutronix.de>, "mripard@...nel.org"
	<mripard@...nel.org>, "matthias.bgg@...il.com" <matthias.bgg@...il.com>,
	"will@...nel.org" <will@...nel.org>
CC: "linux-arm-kernel@...ts.infradead.org"
	<linux-arm-kernel@...ts.infradead.org>, "dri-devel@...ts.freedesktop.org"
	<dri-devel@...ts.freedesktop.org>, "linux-mediatek@...ts.infradead.org"
	<linux-mediatek@...ts.infradead.org>, "linux-kernel@...r.kernel.org"
	<linux-kernel@...r.kernel.org>
Subject: Re: [PATCH v8 3/3] drm/mediatek: dsi: remove custom init part

On Thu, 2025-03-20 at 09:48 +0100, Alexandre Mergnat wrote:
> External email : Please do not click links or open attachments until you have verified the sender or the content.
> 
> 
> To be aligned with the DRM framework and avoid DSI power being driven
> by two different entities, remove the custom function and keep the DRM
> API to initialize the DSI.

In MT8173, need this custom init so dsi could work correctly.
I'm not sure it's software problem or hardware problem.
If it's hardware problem, this custom init could not be removed.
If it's software problem, it may be fixed in current version.
But I don't know it's fixed or not.
So I need someone to test this patch in MT8173 platform.
Otherwise, I could not apply this patch.

Regards,
CK

> 
> Signed-off-by: Alexandre Mergnat <amergnat@...libre.com>
> ---
>  drivers/gpu/drm/mediatek/mtk_ddp_comp.c |  2 --
>  drivers/gpu/drm/mediatek/mtk_disp_drv.h |  2 --
>  drivers/gpu/drm/mediatek/mtk_dsi.c      | 16 ----------------
>  3 files changed, 20 deletions(-)
> 
> diff --git a/drivers/gpu/drm/mediatek/mtk_ddp_comp.c b/drivers/gpu/drm/mediatek/mtk_ddp_comp.c
> index edc6417639e64..d86eed0d279d3 100644
> --- a/drivers/gpu/drm/mediatek/mtk_ddp_comp.c
> +++ b/drivers/gpu/drm/mediatek/mtk_ddp_comp.c
> @@ -317,8 +317,6 @@ static const struct mtk_ddp_comp_funcs ddp_dsc = {
>  };
> 
>  static const struct mtk_ddp_comp_funcs ddp_dsi = {
> -       .start = mtk_dsi_ddp_start,
> -       .stop = mtk_dsi_ddp_stop,
>         .encoder_index = mtk_dsi_encoder_index,
>  };
> 
> diff --git a/drivers/gpu/drm/mediatek/mtk_disp_drv.h b/drivers/gpu/drm/mediatek/mtk_disp_drv.h
> index 04217a36939cd..5657854fa2f9e 100644
> --- a/drivers/gpu/drm/mediatek/mtk_disp_drv.h
> +++ b/drivers/gpu/drm/mediatek/mtk_disp_drv.h
> @@ -47,8 +47,6 @@ void mtk_dpi_start(struct device *dev);
>  void mtk_dpi_stop(struct device *dev);
>  unsigned int mtk_dpi_encoder_index(struct device *dev);
> 
> -void mtk_dsi_ddp_start(struct device *dev);
> -void mtk_dsi_ddp_stop(struct device *dev);
>  unsigned int mtk_dsi_encoder_index(struct device *dev);
> 
>  int mtk_gamma_clk_enable(struct device *dev);
> diff --git a/drivers/gpu/drm/mediatek/mtk_dsi.c b/drivers/gpu/drm/mediatek/mtk_dsi.c
> index e61b9bc68e9a3..b813b49340420 100644
> --- a/drivers/gpu/drm/mediatek/mtk_dsi.c
> +++ b/drivers/gpu/drm/mediatek/mtk_dsi.c
> @@ -787,7 +787,6 @@ static void mtk_output_dsi_enable(struct mtk_dsi *dsi)
>  {
>         if (dsi->enabled)
>                 return;
> -
>         mtk_dsi_lane_ready(dsi);
>         mtk_dsi_set_mode(dsi);
>         mtk_dsi_clk_hs_mode(dsi, 1);
> @@ -893,20 +892,6 @@ static const struct drm_bridge_funcs mtk_dsi_bridge_funcs = {
>         .mode_set = mtk_dsi_bridge_mode_set,
>  };
> 
> -void mtk_dsi_ddp_start(struct device *dev)
> -{
> -       struct mtk_dsi *dsi = dev_get_drvdata(dev);
> -
> -       mtk_dsi_poweron(dsi);
> -}
> -
> -void mtk_dsi_ddp_stop(struct device *dev)
> -{
> -       struct mtk_dsi *dsi = dev_get_drvdata(dev);
> -
> -       mtk_dsi_poweroff(dsi);
> -}
> -
>  static int mtk_dsi_encoder_init(struct drm_device *drm, struct mtk_dsi *dsi)
>  {
>         int ret;
> @@ -1243,7 +1228,6 @@ static int mtk_dsi_probe(struct platform_device *pdev)
>         }
> 
>         init_waitqueue_head(&dsi->irq_wait_queue);
> -
>         platform_set_drvdata(pdev, dsi);
> 
>         dsi->bridge.funcs = &mtk_dsi_bridge_funcs;
> 
> --
> 2.25.1
> 

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ