All of lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Zimmermann <tzimmermann@suse.de>
To: Sam Ravnborg <sam@ravnborg.org>
Cc: airlied@linux.ie, alison.wang@nxp.com, linux@armlinux.org.uk,
	dri-devel@lists.freedesktop.org,
	linux-graphics-maintainer@vmware.com, airlied@redhat.com
Subject: Re: [PATCH 0/7] drm: Clean up plane helpers
Date: Thu, 21 Jul 2022 08:52:21 +0200	[thread overview]
Message-ID: <2b96adf5-9871-de2a-b4e2-521a8eede1f1@suse.de> (raw)
In-Reply-To: <YtgaXaN9cc/9Q98z@ravnborg.org>


[-- Attachment #1.1: Type: text/plain, Size: 1512 bytes --]

Hi Sam

Am 20.07.22 um 17:08 schrieb Sam Ravnborg:
> Hi Thomas,
> 
> On Wed, Jul 20, 2022 at 10:30:51AM +0200, Thomas Zimmermann wrote:
>> The plane helpers are included by dozens of files without any need. Only
>> a hand full of source files need anything from drm_plane_helper.h.
>>
>> Untangle everything and tidy up the code a bit. The patches were built
>> on x64-64, aarch64 and arm without issues.
> 
> Build tested the final result here on a few more archs without any issues.
> I like the removal of the include statements and the simpler header
> file.

Thanks for testing. I was surprised that nothing really needed 
drm_plane_helper.h.

> 
> I did not really get what is gained by pushing out drm_plane_funcs
> to the drivers but trust this is in the end a better solution.

On one hand, I think it's not possible to declare the symbol without 
including drm_plane.h. So removing it reduces the number of include 
statements.

In terms of software design, these exported, pre-initialized data 
structures are like blackboxes and with little flexibility. But DRM 
helpers should rather be like a construction kit, where drivers can pick 
individual pieces from.

> 
> Series is:
> Reviewed-by: Sam Ravnborg <sam@ravnborg.org>

Thank you

Best regards
Thomas

> 
> 	Sam

-- 
Thomas Zimmermann
Graphics Driver Developer
SUSE Software Solutions Germany GmbH
Maxfeldstr. 5, 90409 Nürnberg, Germany
(HRB 36809, AG Nürnberg)
Geschäftsführer: Ivo Totev

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 840 bytes --]

      reply	other threads:[~2022-07-21  6:52 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-07-20  8:30 [PATCH 0/7] drm: Clean up plane helpers Thomas Zimmermann
2022-07-20  8:30 ` [PATCH 1/7] drm/vmwgfx: Remove trailing whitespace Thomas Zimmermann
2022-07-20 13:23   ` Zack Rusin
2022-07-20  8:30 ` [PATCH 2/7] drm/atomic-helper: Move DRM_PLANE_HELPER_NO_SCALING to atomic helpers Thomas Zimmermann
2022-07-20  8:30 ` [PATCH 3/7] drm/atomic-helper: Remove _HELPER_ infix from DRM_PLANE_HELPER_NO_SCALING Thomas Zimmermann
2022-07-20  8:30 ` [PATCH 4/7] drm: Remove unnecessary include statements of drm_plane_helper.h Thomas Zimmermann
2022-07-20  8:30 ` [PATCH 5/7] drm/plane-helper: Export individual helpers Thomas Zimmermann
2022-08-11 16:41   ` Daniel Vetter
2022-08-11 18:32     ` Thomas Zimmermann
2022-09-06 19:15       ` Daniel Vetter
2022-09-07  7:09         ` Thomas Zimmermann
2022-07-20  8:30 ` [PATCH 6/7] drm/armada: Use drm_plane_helper_destroy() Thomas Zimmermann
2022-07-20  8:30 ` [PATCH 7/7] drm/fsl-dcu: " Thomas Zimmermann
2022-08-11 16:46   ` Daniel Vetter
2022-07-20 15:08 ` [PATCH 0/7] drm: Clean up plane helpers Sam Ravnborg
2022-07-21  6:52   ` Thomas Zimmermann [this message]

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=2b96adf5-9871-de2a-b4e2-521a8eede1f1@suse.de \
    --to=tzimmermann@suse.de \
    --cc=airlied@linux.ie \
    --cc=airlied@redhat.com \
    --cc=alison.wang@nxp.com \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=linux-graphics-maintainer@vmware.com \
    --cc=linux@armlinux.org.uk \
    --cc=sam@ravnborg.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.