All of lore.kernel.org
 help / color / mirror / Atom feed
From: <nobuhiro1.iwamatsu@toshiba.co.jp>
To: <biju.das.jz@bp.renesas.com>, <cip-dev@lists.cip-project.org>,
	<pavel@denx.de>
Cc: <prabhakar.mahadev-lad.rj@bp.renesas.com>
Subject: RE: [PATCH 6.1.y-cip 15/20] drm: renesas: Add RZ/G2L DU Support
Date: Wed, 6 Sep 2023 00:23:47 +0000	[thread overview]
Message-ID: <TYWPR01MB942095E6CB6A4BE1B9A5A87C92EFA@TYWPR01MB9420.jpnprd01.prod.outlook.com> (raw)
In-Reply-To: <20230905160737.167877-16-biju.das.jz@bp.renesas.com>

Hi,

> -----Original Message-----
> From: Biju Das <biju.das.jz@bp.renesas.com>
> Sent: Wednesday, September 6, 2023 1:08 AM
> To: cip-dev@lists.cip-project.org; iwamatsu nobuhiro(岩松 信洋 ○DITC□
> DIT○OST) <nobuhiro1.iwamatsu@toshiba.co.jp>; Pavel Machek
> <pavel@denx.de>
> Cc: Biju Das <biju.das.jz@bp.renesas.com>; Lad Prabhakar
> <prabhakar.mahadev-lad.rj@bp.renesas.com>
> Subject: [PATCH 6.1.y-cip 15/20] drm: renesas: Add RZ/G2L DU Support
> 
> The LCD controller is composed of Frame Compression Processor (FCPVD),
> Video Signal Processor (VSPD), and Display Unit (DU).
> 
> It has DPI/DSI interfaces and supports a maximum resolution of 1080p
> along with 2 RPFs to support the blending of two picture layers and
> raster operations (ROPs).
> 
> The DU module is connected to VSPD. Add RZ/G2L DU support for RZ/G2L
> alike SoCs.
> 
> Signed-off-by: Biju Das <biju.das.jz@bp.renesas.com>

You forgot to add the original commit ID and Signed-off.
And I could not find this patch in upstream tree. Probably any patch after this one has the same problem.

> ---
>  drivers/gpu/drm/Kconfig                  |   2 +
>  drivers/gpu/drm/Makefile                 |   1 +
>  drivers/gpu/drm/rz-du/Kconfig            |  12 +
>  drivers/gpu/drm/rz-du/Makefile           |   8 +
>  drivers/gpu/drm/rz-du/rzg2l_du_crtc.c    | 599
> +++++++++++++++++++
>  drivers/gpu/drm/rz-du/rzg2l_du_crtc.h    |  92 +++
>  drivers/gpu/drm/rz-du/rzg2l_du_drv.c     | 185 ++++++
>  drivers/gpu/drm/rz-du/rzg2l_du_drv.h     |  84 +++
>  drivers/gpu/drm/rz-du/rzg2l_du_encoder.c | 109 ++++
>  drivers/gpu/drm/rz-du/rzg2l_du_encoder.h |  32 +
>  drivers/gpu/drm/rz-du/rzg2l_du_kms.c     | 711
> +++++++++++++++++++++++
>  drivers/gpu/drm/rz-du/rzg2l_du_kms.h     |  43 ++
>  drivers/gpu/drm/rz-du/rzg2l_du_regs.h    |  67 +++
>  drivers/gpu/drm/rz-du/rzg2l_du_vsp.c     | 469 +++++++++++++++
>  drivers/gpu/drm/rz-du/rzg2l_du_vsp.h     |  97 ++++
>  15 files changed, 2511 insertions(+)
>  create mode 100644 drivers/gpu/drm/rz-du/Kconfig
>  create mode 100644 drivers/gpu/drm/rz-du/Makefile
>  create mode 100644 drivers/gpu/drm/rz-du/rzg2l_du_crtc.c
>  create mode 100644 drivers/gpu/drm/rz-du/rzg2l_du_crtc.h
>  create mode 100644 drivers/gpu/drm/rz-du/rzg2l_du_drv.c
>  create mode 100644 drivers/gpu/drm/rz-du/rzg2l_du_drv.h
>  create mode 100644 drivers/gpu/drm/rz-du/rzg2l_du_encoder.c
>  create mode 100644 drivers/gpu/drm/rz-du/rzg2l_du_encoder.h
>  create mode 100644 drivers/gpu/drm/rz-du/rzg2l_du_kms.c
>  create mode 100644 drivers/gpu/drm/rz-du/rzg2l_du_kms.h
>  create mode 100644 drivers/gpu/drm/rz-du/rzg2l_du_regs.h
>  create mode 100644 drivers/gpu/drm/rz-du/rzg2l_du_vsp.c
>  create mode 100644 drivers/gpu/drm/rz-du/rzg2l_du_vsp.h
> 

<snip>

> --
> + * Initialization
> + */
> +
> +int rzg2l_du_crtc_create(struct rzg2l_du_device *rcdu)
> +{
> +	struct rzg2l_du_crtc *rcrtc = &rcdu->crtcs[0];
> +	struct drm_crtc *crtc = &rcrtc->crtc;
> +	struct drm_plane *primary;
> +	int ret;
> +
> +	rcrtc->rstc = devm_reset_control_get_shared(rcdu->dev, NULL);
> +	if (IS_ERR(rcrtc->rstc)) {
> +		dev_err(rcdu->dev, "can't get cpg reset\n");
> +		return PTR_ERR(rcrtc->rstc);
> +	}
> +
> +	rcrtc->rzg2l_clocks.aclk = devm_clk_get(rcdu->dev, "aclk");
> +	if (IS_ERR(rcrtc->rzg2l_clocks.aclk)) {
> +		dev_err(rcdu->dev, "no axi clock for DU\n");
> +		return PTR_ERR(rcrtc->rzg2l_clocks.aclk);
> +	}
> +
> +	rcrtc->rzg2l_clocks.pclk = devm_clk_get(rcdu->dev, "pclk");
> +	if (IS_ERR(rcrtc->rzg2l_clocks.pclk)) {
> +		dev_err(rcdu->dev, "no peripheral clock for DU\n");
> +		return PTR_ERR(rcrtc->rzg2l_clocks.pclk);
> +	}
> +
> +	rcrtc->rzg2l_clocks.dclk = devm_clk_get(rcdu->dev, "vclk");
> +	if (IS_ERR(rcrtc->rzg2l_clocks.dclk)) {
> +		dev_err(rcdu->dev, "no video clock for DU\n");
> +		return PTR_ERR(rcrtc->rzg2l_clocks.dclk);
> +	}
> +
> +	init_waitqueue_head(&rcrtc->flip_wait);
> +	rcrtc->dev = rcdu;
> +
> +	primary = &rcrtc->vsp->planes[rcrtc->vsp_pipe].plane;
> +
> +	ret = drm_crtc_init_with_planes(&rcdu->ddev, crtc, primary, NULL,
> +					&crtc_funcs_rz, NULL);
> +	if (ret < 0)
> +		return ret;
> +
> +	drm_crtc_helper_add(crtc, &crtc_helper_funcs);
> +
> +	rzg2l_du_crtc_crc_init(rcrtc);

Will this work correctly if rzg2l_du_crtc_crc_init fails?
It looks like the error in rzg2l_du_crtc_crc_init cannot be caught.

> +
> +	return 0;
> +}


Best regards,
  Nobuhiro



  reply	other threads:[~2023-09-06  0:24 UTC|newest]

Thread overview: 36+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-09-05 16:07 [PATCH 6.1.y-cip 00/20] Add Renesas RZ/G2L DSI,VSP,FCP support Biju Das
2023-09-05 16:07 ` [PATCH 6.1.y-cip 01/20] dt-bindings: display: bridge: Document RZ/G2L MIPI DSI TX bindings Biju Das
2023-09-05 16:07 ` [PATCH 6.1.y-cip 02/20] dt-bindings: display: bridge: renesas,rzg2l-mipi-dsi: Document RZ/V2L support Biju Das
2023-09-05 16:07 ` [PATCH 6.1.y-cip 03/20] drm: rcar-du: Add RZ/G2L DSI driver Biju Das
2023-09-06  8:41   ` Pavel Machek
2023-09-06  9:22     ` Biju Das
2023-09-05 16:07 ` [PATCH 6.1.y-cip 04/20] drm: rcar-du: Fix Kconfig dependency between DRM and RZG2L_MIPI_DSI Biju Das
2023-09-05 16:07 ` [PATCH 6.1.y-cip 05/20] drm: rcar-du: rzg2l_mipi_dsi: Enhance device lanes check Biju Das
2023-09-06  8:46   ` Pavel Machek
2023-09-06  9:07     ` [cip-dev] " Biju Das
2023-09-05 16:07 ` [PATCH 6.1.y-cip 06/20] arm64: dts: renesas: r9a07g044: Add fcpvd node Biju Das
2023-09-05 16:07 ` [PATCH 6.1.y-cip 07/20] arm64: dts: renesas: r9a07g044: Add vspd node Biju Das
2023-09-05 16:07 ` [PATCH 6.1.y-cip 08/20] arm64: dts: renesas: r9a07g044: Add DSI node Biju Das
2023-09-05 16:07 ` [PATCH 6.1.y-cip 09/20] arm64: dts: renesas: r9a07g054: Add fcpvd node Biju Das
2023-09-05 16:07 ` [PATCH 6.1.y-cip 10/20] arm64: dts: renesas: r9a07g054: Add vspd node Biju Das
2023-09-05 16:07 ` [PATCH 6.1.y-cip 11/20] arm64: dts: renesas: r9a07g054: Add DSI node Biju Das
2023-09-05 16:07 ` [PATCH 6.1.y-cip 12/20] arm64: dts: renesas: rzg2l-smarc: Link DSI with ADV7535 Biju Das
2023-09-05 16:07 ` [PATCH 6.1.y-cip 13/20] arm64: dts: renesas: rzg2lc-smarc: " Biju Das
2023-09-06  8:18   ` Pavel Machek
2023-09-06  8:23     ` Biju Das
2023-09-05 16:07 ` [PATCH 6.1.y-cip 14/20] arm64: defconfig: Enable Renesas RZ/G2L MIPI DSI driver Biju Das
2023-09-05 16:07 ` [PATCH 6.1.y-cip 15/20] drm: renesas: Add RZ/G2L DU Support Biju Das
2023-09-06  0:23   ` nobuhiro1.iwamatsu [this message]
2023-09-06  5:40     ` Biju Das
2023-09-06  5:45       ` nobuhiro1.iwamatsu
2023-09-06 12:20   ` Pavel Machek
2023-09-05 16:07 ` [PATCH 6.1.y-cip 16/20] arm64: dts: renesas: r9a07g044: Add DU node Biju Das
2023-09-05 23:39   ` nobuhiro1.iwamatsu
2023-09-06  5:42     ` Biju Das
2023-09-05 16:07 ` [PATCH 6.1.y-cip 17/20] arm64: dts: renesas: r9a07g054: " Biju Das
2023-09-05 16:07 ` [PATCH 6.1.y-cip 18/20] arm64: dts: renesas: rzg2l-smarc: Enable DU and link with DSI Biju Das
2023-09-05 16:07 ` [PATCH 6.1.y-cip 19/20] arm64: dts: renesas: rzg2lc-smarc: " Biju Das
2023-09-05 16:07 ` [PATCH 6.1.y-cip 20/20] defconfig: Enable display on RZ/G2L SMARC EVK Biju Das
2023-09-06  8:47 ` [PATCH 6.1.y-cip 00/20] Add Renesas RZ/G2L DSI,VSP,FCP support Pavel Machek
2023-09-06 10:44   ` nobuhiro1.iwamatsu
2023-09-06 12:08     ` Pavel Machek

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=TYWPR01MB942095E6CB6A4BE1B9A5A87C92EFA@TYWPR01MB9420.jpnprd01.prod.outlook.com \
    --to=nobuhiro1.iwamatsu@toshiba.co.jp \
    --cc=biju.das.jz@bp.renesas.com \
    --cc=cip-dev@lists.cip-project.org \
    --cc=pavel@denx.de \
    --cc=prabhakar.mahadev-lad.rj@bp.renesas.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.