From: Gustavo Padovan <gustavo@padovan.org>
To: linux-samsung-soc@vger.kernel.org
Cc: dri-devel@lists.freedesktop.org, inki.dae@samsung.com,
Gustavo Padovan <gustavo.padovan@collabora.co.uk>
Subject: Re: [PATCH 0/4] removal of extra abstraction layers
Date: Tue, 2 Dec 2014 10:38:47 -0200 [thread overview]
Message-ID: <20141202123847.GA9426@joana> (raw)
In-Reply-To: <1416853266-10584-1-git-send-email-gustavo@padovan.org>
Hi Inki,
Can you please review this? I also have sent other two patch sets that sits on
top of this one. Thanks.
Gustavo
2014-11-24 Gustavo Padovan <gustavo@padovan.org>:
> From: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
>
> Hi Inki,
>
> In this series I've removed some level of indirection from the exynos_drm_code.
> There two moves in these patches, first we remove all exynos_drm_crtc_plane_*()
> wrappers and call the manager specific functions directly. The other change is
> the removal of struct exynos_drm_overlay(). In my understanding the overlay
> struct was just storing plane data in a 1:1 relationship so it made sense to
> merge its fields in struct exynos_drm_plane and remove another abstraction from
> the driver.
>
> Next steps:
>
> During our initial investigation on the Exynos DRM driver we've spoted a few
> abstractions that could be removed to get a more clean and less abstract code.
> - struct exynos_drm_manager: this is just a helper of
> struct exynos_drm_crtc, I suggest we could merge them both.
> - struct *_win_data: Most of the share common fields and could be merged
> int struct exynos_drm_plane.
> - some more function wrapper can be removed as well.
>
> After these changes intead of looking to manager and win_data we will look into
> crtc and planes. The new names give us more clue about what a piece of code is
> doing since they are already defined and used by the whole DRM ecossytem.
>
> What your thoughts on this? I've seen that you pushed some patches to remove
> static usage of managers so I would like to check with you which direction are
> you planning to go with this. I've done some code[0] around this but now it
> needs a rebase against you exynos-drm-next.
>
> [0] https://git.kernel.org/cgit/linux/kernel/git/padovan/drm-exynos.git/log/?h=cleanup
>
> Gustavo Padovan (4):
> drm/exynos: move to_exynos_crtc() macro to main header
> drm/exynos: expose struct exynos_drm_crtc
> drm/exynos: remove exynos_drm_crtc_plane_* wrappers
> drm/exynos: remove struct exynos_drm_overlay
>
> drivers/gpu/drm/exynos/exynos_drm_crtc.c | 66 ---------------------
> drivers/gpu/drm/exynos/exynos_drm_crtc.h | 2 +-
> drivers/gpu/drm/exynos/exynos_drm_drv.h | 43 +++++++++++++-
> drivers/gpu/drm/exynos/exynos_drm_fimd.c | 44 +++++++-------
> drivers/gpu/drm/exynos/exynos_drm_plane.c | 96 +++++++++++++++----------------
> drivers/gpu/drm/exynos/exynos_drm_vidi.c | 38 ++++++------
> drivers/gpu/drm/exynos/exynos_mixer.c | 50 ++++++++--------
> 7 files changed, 156 insertions(+), 183 deletions(-)
>
> --
> 1.9.3
>
next prev parent reply other threads:[~2014-12-02 12:38 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-11-24 18:21 [PATCH 0/4] removal of extra abstraction layers Gustavo Padovan
2014-11-24 18:21 ` [PATCH 1/4] drm/exynos: move to_exynos_crtc() macro to main header Gustavo Padovan
2014-11-24 18:21 ` [PATCH 2/4] drm/exynos: expose struct exynos_drm_crtc Gustavo Padovan
2014-11-24 18:21 ` [PATCH 3/4] drm/exynos: remove exynos_drm_crtc_plane_* wrappers Gustavo Padovan
2014-11-24 18:21 ` [PATCH 4/4] drm/exynos: remove struct exynos_drm_overlay Gustavo Padovan
2014-12-02 12:38 ` Gustavo Padovan [this message]
2014-12-05 20:06 ` [PATCH 0/4] removal of extra abstraction layers Dave Airlie
2014-12-08 17:03 ` Gustavo Padovan
2014-12-10 19:43 ` Daniel Stone
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=20141202123847.GA9426@joana \
--to=gustavo@padovan.org \
--cc=dri-devel@lists.freedesktop.org \
--cc=gustavo.padovan@collabora.co.uk \
--cc=inki.dae@samsung.com \
--cc=linux-samsung-soc@vger.kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox