All of lore.kernel.org
 help / color / mirror / Atom feed
From: Maxime Ripard <maxime.ripard@free-electrons.com>
To: Icenowy Zheng <icenowy@aosc.io>
Cc: Rob Herring <robh+dt@kernel.org>, Chen-Yu Tsai <wens@csie.org>,
	Jernej Skrabec <jernej.skrabec@siol.net>,
	linux-clk@vger.kernel.org, devicetree@vger.kernel.org,
	linux-arm-kernel@lists.infradead.org,
	linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org,
	linux-sunxi@googlegroups.com
Subject: Re: [PATCH v5 05/11] drm/sun4i: abstract a engine type
Date: Mon, 24 Apr 2017 11:05:00 +0200	[thread overview]
Message-ID: <20170424090500.i3k6u7pcahc7m3hv@lukather> (raw)
In-Reply-To: <20170423103754.50012-6-icenowy@aosc.io>

[-- Attachment #1: Type: text/plain, Size: 1477 bytes --]

Hi,

Thanks a lot for that work.

On Sun, Apr 23, 2017 at 06:37:48PM +0800, Icenowy Zheng wrote:
> As we are going to add support for the Allwinner DE2 engine in sun4i-drm
> driver, we will finally have two types of display engines -- the DE1
> backend and the DE2 mixer. They both do some display blending and feed
> graphics data to TCON, so I choose to call them both "engine" here.
> 
> Abstract the engine type to a new struct with an ops struct, which contains
> functions that should be called outside the engine-specified code (in
> TCON, CRTC or TV Encoder code).
> 
> A dedicated Kconfig option is also added to control whether
> sun4i-backend-specified code (sun4i_backend.c and sun4i_layer.c) should
> be built. As we removed the codes in CRTC code that directly call the
> layer code, we can now extract the layer part and combine it with the
> backend part into a new module, sun4i-backend.ko.

While the code itself is good now, the patch mixes a few things that
would be better to be split in separate patches. I think it would be
better if you had patches organized like this:
  - Abstract the engine type by create the sunxi_engine structure and
    fixing all the callers.
  - Move the layers and backend files in the same module, and remove
    the now useless EXPORT_SYMBOLS.
  - Create a Kconfig option.

Thanks!
Maxime

-- 
Maxime Ripard, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 801 bytes --]

WARNING: multiple messages have this Message-ID (diff)
From: Maxime Ripard <maxime.ripard-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org>
To: Icenowy Zheng <icenowy-h8G6r0blFSE@public.gmane.org>
Cc: Rob Herring <robh+dt-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>,
	Chen-Yu Tsai <wens-jdAy2FN1RRM@public.gmane.org>,
	Jernej Skrabec <jernej.skrabec-gGgVlfcn5nU@public.gmane.org>,
	linux-clk-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
	devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
	linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org,
	linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
	dri-devel-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org,
	linux-sunxi-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
Subject: Re: [PATCH v5 05/11] drm/sun4i: abstract a engine type
Date: Mon, 24 Apr 2017 11:05:00 +0200	[thread overview]
Message-ID: <20170424090500.i3k6u7pcahc7m3hv@lukather> (raw)
In-Reply-To: <20170423103754.50012-6-icenowy-h8G6r0blFSE@public.gmane.org>

[-- Attachment #1: Type: text/plain, Size: 1440 bytes --]

Hi,

Thanks a lot for that work.

On Sun, Apr 23, 2017 at 06:37:48PM +0800, Icenowy Zheng wrote:
> As we are going to add support for the Allwinner DE2 engine in sun4i-drm
> driver, we will finally have two types of display engines -- the DE1
> backend and the DE2 mixer. They both do some display blending and feed
> graphics data to TCON, so I choose to call them both "engine" here.
> 
> Abstract the engine type to a new struct with an ops struct, which contains
> functions that should be called outside the engine-specified code (in
> TCON, CRTC or TV Encoder code).
> 
> A dedicated Kconfig option is also added to control whether
> sun4i-backend-specified code (sun4i_backend.c and sun4i_layer.c) should
> be built. As we removed the codes in CRTC code that directly call the
> layer code, we can now extract the layer part and combine it with the
> backend part into a new module, sun4i-backend.ko.

While the code itself is good now, the patch mixes a few things that
would be better to be split in separate patches. I think it would be
better if you had patches organized like this:
  - Abstract the engine type by create the sunxi_engine structure and
    fixing all the callers.
  - Move the layers and backend files in the same module, and remove
    the now useless EXPORT_SYMBOLS.
  - Create a Kconfig option.

Thanks!
Maxime

-- 
Maxime Ripard, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com

WARNING: multiple messages have this Message-ID (diff)
From: maxime.ripard@free-electrons.com (Maxime Ripard)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v5 05/11] drm/sun4i: abstract a engine type
Date: Mon, 24 Apr 2017 11:05:00 +0200	[thread overview]
Message-ID: <20170424090500.i3k6u7pcahc7m3hv@lukather> (raw)
In-Reply-To: <20170423103754.50012-6-icenowy@aosc.io>

Hi,

Thanks a lot for that work.

On Sun, Apr 23, 2017 at 06:37:48PM +0800, Icenowy Zheng wrote:
> As we are going to add support for the Allwinner DE2 engine in sun4i-drm
> driver, we will finally have two types of display engines -- the DE1
> backend and the DE2 mixer. They both do some display blending and feed
> graphics data to TCON, so I choose to call them both "engine" here.
> 
> Abstract the engine type to a new struct with an ops struct, which contains
> functions that should be called outside the engine-specified code (in
> TCON, CRTC or TV Encoder code).
> 
> A dedicated Kconfig option is also added to control whether
> sun4i-backend-specified code (sun4i_backend.c and sun4i_layer.c) should
> be built. As we removed the codes in CRTC code that directly call the
> layer code, we can now extract the layer part and combine it with the
> backend part into a new module, sun4i-backend.ko.

While the code itself is good now, the patch mixes a few things that
would be better to be split in separate patches. I think it would be
better if you had patches organized like this:
  - Abstract the engine type by create the sunxi_engine structure and
    fixing all the callers.
  - Move the layers and backend files in the same module, and remove
    the now useless EXPORT_SYMBOLS.
  - Create a Kconfig option.

Thanks!
Maxime

-- 
Maxime Ripard, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20170424/d1d15dd2/attachment-0001.sig>

  reply	other threads:[~2017-04-24  9:05 UTC|newest]

Thread overview: 55+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-04-23 10:37 [PATCH v5 00/11] Initial Allwinner Display Engine 2.0 Support Icenowy Zheng
2017-04-23 10:37 ` Icenowy Zheng
2017-04-23 10:37 ` Icenowy Zheng
2017-04-23 10:37 ` [PATCH v5 01/11] dt-bindings: add binding for the Allwinner DE2 CCU Icenowy Zheng
2017-04-23 10:37   ` Icenowy Zheng
2017-04-23 10:37   ` Icenowy Zheng
2017-04-28 17:52   ` Rob Herring
2017-04-28 17:52     ` Rob Herring
2017-04-28 17:52     ` Rob Herring
2017-04-28 17:52     ` Rob Herring
2017-04-23 10:37 ` [PATCH v5 02/11] clk: sunxi-ng: add support for " Icenowy Zheng
2017-04-23 10:37   ` Icenowy Zheng
2017-04-23 10:37   ` Icenowy Zheng
2017-04-24  8:51   ` Maxime Ripard
2017-04-24  8:51     ` Maxime Ripard
2017-04-24  8:51     ` Maxime Ripard
2017-04-24 10:26     ` [linux-sunxi] " icenowy
2017-04-24 10:26       ` icenowy at aosc.io
2017-04-24 10:26       ` icenowy-h8G6r0blFSE
2017-04-27  7:12       ` [linux-sunxi] " Maxime Ripard
2017-04-27  7:12         ` Maxime Ripard
2017-04-27  7:12         ` Maxime Ripard
2017-04-23 10:37 ` [PATCH v5 03/11] dt-bindings: add bindings for DE2 on V3s SoC Icenowy Zheng
2017-04-23 10:37   ` Icenowy Zheng
2017-04-23 10:37   ` Icenowy Zheng
2017-04-23 10:37 ` [PATCH v5 04/11] drm/sun4i: return only planes for layers created Icenowy Zheng
2017-04-23 10:37   ` Icenowy Zheng
2017-04-23 10:37   ` Icenowy Zheng
2017-04-23 10:37 ` [PATCH v5 05/11] drm/sun4i: abstract a engine type Icenowy Zheng
2017-04-23 10:37   ` Icenowy Zheng
2017-04-23 10:37   ` Icenowy Zheng
2017-04-24  9:05   ` Maxime Ripard [this message]
2017-04-24  9:05     ` Maxime Ripard
2017-04-24  9:05     ` Maxime Ripard
2017-04-23 10:37 ` [PATCH v5 06/11] drm/sun4i: add support for Allwinner DE2 mixers Icenowy Zheng
2017-04-23 10:37   ` Icenowy Zheng
2017-04-23 10:37   ` Icenowy Zheng
2017-04-23 10:37 ` [PATCH v5 07/11] drm/sun4i: Add compatible string for V3s display engine Icenowy Zheng
2017-04-23 10:37   ` Icenowy Zheng
2017-04-23 10:37   ` Icenowy Zheng
2017-04-23 10:37 ` [PATCH v5 08/11] drm/sun4i: tcon: add support for V3s TCON Icenowy Zheng
2017-04-23 10:37   ` Icenowy Zheng
2017-04-23 10:37   ` Icenowy Zheng
2017-04-23 10:37 ` [PATCH v5 09/11] ARM: dts: sun8i: add DE2 nodes for V3s SoC Icenowy Zheng
2017-04-23 10:37   ` Icenowy Zheng
2017-04-23 10:37   ` Icenowy Zheng
2017-04-24  9:06   ` Maxime Ripard
2017-04-24  9:06     ` Maxime Ripard
2017-04-24  9:06     ` Maxime Ripard
2017-04-23 10:37 ` [PATCH v5 10/11] ARM: dts: sun8i: add pinmux for LCD pins of " Icenowy Zheng
2017-04-23 10:37   ` Icenowy Zheng
2017-04-23 10:37   ` Icenowy Zheng
2017-04-23 10:37 ` [PATCH v5 11/11] [DO NOT MERGE] ARM: dts: sun8i: enable LCD panel of Lichee Pi Zero Icenowy Zheng
2017-04-23 10:37   ` Icenowy Zheng
2017-04-23 10:37   ` Icenowy Zheng

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=20170424090500.i3k6u7pcahc7m3hv@lukather \
    --to=maxime.ripard@free-electrons.com \
    --cc=devicetree@vger.kernel.org \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=icenowy@aosc.io \
    --cc=jernej.skrabec@siol.net \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-clk@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-sunxi@googlegroups.com \
    --cc=robh+dt@kernel.org \
    --cc=wens@csie.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 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.