All of lore.kernel.org
 help / color / mirror / Atom feed
From: Biju Das <biju.das.jz@bp.renesas.com>
To: Geert Uytterhoeven <geert@linux-m68k.org>,
	Jacopo Mondi <jacopo.mondi@ideasonboard.com>
Cc: David Airlie <airlied@gmail.com>, Daniel Vetter <daniel@ffwll.ch>,
	Philipp Zabel <p.zabel@pengutronix.de>,
	Laurent Pinchart <laurent.pinchart@ideasonboard.com>,
	Kieran Bingham <kieran.bingham+renesas@ideasonboard.com>,
	Geert Uytterhoeven <geert+renesas@glider.be>,
	Magnus Damm <magnus.damm@gmail.com>,
	"dri-devel@lists.freedesktop.org"
	<dri-devel@lists.freedesktop.org>,
	"linux-renesas-soc@vger.kernel.org" 
	<linux-renesas-soc@vger.kernel.org>,
	Fabrizio Castro <fabrizio.castro.jz@renesas.com>,
	Prabhakar Mahadev Lad <prabhakar.mahadev-lad.rj@bp.renesas.com>
Subject: RE: [PATCH v11 3/4] drm: renesas: Add RZ/G2L DU Support
Date: Thu, 12 Oct 2023 09:44:01 +0000	[thread overview]
Message-ID: <TYCPR01MB112698FFB7FBFF2131BF4B94A86D3A@TYCPR01MB11269.jpnprd01.prod.outlook.com> (raw)
In-Reply-To: <CAMuHMdWC5Nd3nezR1K_XD5CJTM76XUbv3=Pf9fHvYK43n4iqmQ@mail.gmail.com>

Hi Geert Uytterhoeven,


Thanks for the feedback.

> Subject: Re: [PATCH v11 3/4] drm: renesas: Add RZ/G2L DU Support
> 
> Hi Biju,
> 
> On Mon, Oct 2, 2023 at 2:28 PM Biju Das <biju.das.jz@bp.renesas.com>
> wrote:
> > 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>
> 
> Thanks for your patch!
> 
> > v9->v10:
> 
> >  * Added rzg2l_du_write() wrapper function.
> 
> > --- /dev/null
> > +++ b/drivers/gpu/drm/renesas/rz-du/rzg2l_du_crtc.c
> 
> > +static inline void rzg2l_du_write(struct rzg2l_du_device *rcdu, u32
> > +reg, u32 data) {
> > +       writel(data, rcdu->mmio + reg); }
> 
> What is the added value of this wrapper?

I think, for debugging we can add some prints here and check reg values. Other than I don't see
any benefit here. Laurent/ Jacopo please confirm.

> The order of the reg/data parameters is the inverse of the standard
> writel() operation...

OK.

> 
> > +       rzg2l_du_write(rcdu, DU_DITR0, ditr0);
> 
> ... and using it actually needs one more keystroke than open-coding it:
> 
> -       writel(ditr0, rcdu->mmio + DU_DITR0);
> 
> Sorry for missing this before.

I have changed this based on review comment from Laurent and Jacopo. If the wrapper
is not adding value, I am happy to use writel instead.

Please confirm.

Cheers,
Biju

WARNING: multiple messages have this Message-ID (diff)
From: Biju Das <biju.das.jz@bp.renesas.com>
To: Geert Uytterhoeven <geert@linux-m68k.org>,
	Jacopo Mondi <jacopo.mondi@ideasonboard.com>
Cc: Fabrizio Castro <fabrizio.castro.jz@renesas.com>,
	Geert Uytterhoeven <geert+renesas@glider.be>,
	Magnus Damm <magnus.damm@gmail.com>,
	Prabhakar Mahadev Lad <prabhakar.mahadev-lad.rj@bp.renesas.com>,
	"dri-devel@lists.freedesktop.org"
	<dri-devel@lists.freedesktop.org>,
	"linux-renesas-soc@vger.kernel.org"
	<linux-renesas-soc@vger.kernel.org>,
	Kieran Bingham <kieran.bingham+renesas@ideasonboard.com>,
	Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Subject: RE: [PATCH v11 3/4] drm: renesas: Add RZ/G2L DU Support
Date: Thu, 12 Oct 2023 09:44:01 +0000	[thread overview]
Message-ID: <TYCPR01MB112698FFB7FBFF2131BF4B94A86D3A@TYCPR01MB11269.jpnprd01.prod.outlook.com> (raw)
In-Reply-To: <CAMuHMdWC5Nd3nezR1K_XD5CJTM76XUbv3=Pf9fHvYK43n4iqmQ@mail.gmail.com>

Hi Geert Uytterhoeven,


Thanks for the feedback.

> Subject: Re: [PATCH v11 3/4] drm: renesas: Add RZ/G2L DU Support
> 
> Hi Biju,
> 
> On Mon, Oct 2, 2023 at 2:28 PM Biju Das <biju.das.jz@bp.renesas.com>
> wrote:
> > 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>
> 
> Thanks for your patch!
> 
> > v9->v10:
> 
> >  * Added rzg2l_du_write() wrapper function.
> 
> > --- /dev/null
> > +++ b/drivers/gpu/drm/renesas/rz-du/rzg2l_du_crtc.c
> 
> > +static inline void rzg2l_du_write(struct rzg2l_du_device *rcdu, u32
> > +reg, u32 data) {
> > +       writel(data, rcdu->mmio + reg); }
> 
> What is the added value of this wrapper?

I think, for debugging we can add some prints here and check reg values. Other than I don't see
any benefit here. Laurent/ Jacopo please confirm.

> The order of the reg/data parameters is the inverse of the standard
> writel() operation...

OK.

> 
> > +       rzg2l_du_write(rcdu, DU_DITR0, ditr0);
> 
> ... and using it actually needs one more keystroke than open-coding it:
> 
> -       writel(ditr0, rcdu->mmio + DU_DITR0);
> 
> Sorry for missing this before.

I have changed this based on review comment from Laurent and Jacopo. If the wrapper
is not adding value, I am happy to use writel instead.

Please confirm.

Cheers,
Biju

  reply	other threads:[~2023-10-12  9:44 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-10-02 12:27 [PATCH v11 0/4] Add RZ/{G2L,G2LC} and RZ/V2L Display Unit support Biju Das
2023-10-02 12:27 ` Biju Das
2023-10-02 12:27 ` [PATCH v11 1/4] dt-bindings: display: Document Renesas RZ/G2L DU bindings Biju Das
2023-10-02 12:27   ` Biju Das
2023-10-02 13:31   ` Rob Herring
2023-10-02 13:31     ` Rob Herring
2023-10-02 18:38     ` Biju Das
2023-10-02 18:38       ` Biju Das
2023-10-02 12:27 ` [PATCH v11 2/4] dt-bindings: display: renesas,rzg2l-du: Document RZ/V2L " Biju Das
2023-10-02 12:27   ` [PATCH v11 2/4] dt-bindings: display: renesas, rzg2l-du: " Biju Das
2023-10-02 12:27 ` [PATCH v11 3/4] drm: renesas: Add RZ/G2L DU Support Biju Das
2023-10-02 12:27   ` Biju Das
2023-10-12  9:23   ` Geert Uytterhoeven
2023-10-12  9:23     ` Geert Uytterhoeven
2023-10-12  9:44     ` Biju Das [this message]
2023-10-12  9:44       ` Biju Das
2023-10-02 12:27 ` [PATCH v11 4/4] MAINTAINERS: Add maintainer for RZ DU drivers Biju Das
2023-10-02 12:27   ` Biju Das
2023-10-18 11:36 ` [PATCH v11 0/4] Add RZ/{G2L,G2LC} and RZ/V2L Display Unit support Biju Das
2023-10-18 11:36   ` [PATCH v11 0/4] Add RZ/{G2L, G2LC} " Biju Das

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=TYCPR01MB112698FFB7FBFF2131BF4B94A86D3A@TYCPR01MB11269.jpnprd01.prod.outlook.com \
    --to=biju.das.jz@bp.renesas.com \
    --cc=airlied@gmail.com \
    --cc=daniel@ffwll.ch \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=fabrizio.castro.jz@renesas.com \
    --cc=geert+renesas@glider.be \
    --cc=geert@linux-m68k.org \
    --cc=jacopo.mondi@ideasonboard.com \
    --cc=kieran.bingham+renesas@ideasonboard.com \
    --cc=laurent.pinchart@ideasonboard.com \
    --cc=linux-renesas-soc@vger.kernel.org \
    --cc=magnus.damm@gmail.com \
    --cc=p.zabel@pengutronix.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.