All of lore.kernel.org
 help / color / mirror / Atom feed
From: Sam Ravnborg <sam@ravnborg.org>
To: Thomas Zimmermann <tzimmermann@suse.de>
Cc: airlied@linux.ie, airlied@redhat.com, jfalempe@redhat.com,
	dri-devel@lists.freedesktop.org
Subject: Re: [PATCH 00/14] drm/mgag200: Move model-specific code into separate functions
Date: Fri, 8 Jul 2022 19:22:59 +0200	[thread overview]
Message-ID: <Yshn83t1ByD6Q6Qf@ravnborg.org> (raw)
In-Reply-To: <20220708093929.4446-1-tzimmermann@suse.de>

Hi Thomas,

On Fri, Jul 08, 2022 at 11:39:15AM +0200, Thomas Zimmermann wrote:
> Mgag200 still mixes model-specific code and generic code in the same
> functions. Separate it into distinct helpers.
> 
> As part of this effort, convert the driver from simple-KMS helpers
> to regular atomic helpers. The latter are way more flexible and can
> be adapted easily for each hardware model.
> 
> Tested on Matrox G200 and G200EH hardware.
> 
> Thomas Zimmermann (14):
>   drm/mgag200: Split mgag200_modeset_init()
>   drm/mgag200: Move DAC-register setup into model-specific code
>   dmr/mgag200: Move ER/EW3 register initializatino to per-model code
>   drm/mgag200: Acquire I/O-register lock in atomic_commit_tail function
>   drm/mgag200: Store primary plane's color format in CRTC state
>   drm/mgag200: Reorganize before dropping simple-KMS helpers
>   drm/mgag200: Replace simple-KMS with regular atomic helpers
>   drm/mgag200: Set SCROFF in primary-plane code
>   drm/mgag200: Add per-device callbacks
>   drm/mgag200: Provide per-device callbacks for BMC synchronization
>   drm/mgag200: Provide per-device callbacks for PIXPLLC
>   drm/mgag200: Move mode-config to model-specific code
>   drm/mgag200: Move CRTC atomic_enable to model-specfic code
>   drm/mgag200: Remove type field from struct mga_device

I have browsed the patches and they looked good.
I was about to complain about several things, like bmc init, but then
later this is all nicely cleaned up.
Especially the pll setup stuff did not get much scrunity, as it like
most of the patch looked like code movements.

All patches except "Move DAC-register setup into model-specific code"
are:
Acked-by: Sam Ravnborg <sam@ravnborg.org>


>  14 files changed, 2804 insertions(+), 1586 deletions(-)
This is not a diffstat that makes one go - yyipeee.
But the improvements makes it worthwhile.

	Sam

  parent reply	other threads:[~2022-07-08 17:23 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-07-08  9:39 [PATCH 00/14] drm/mgag200: Move model-specific code into separate functions Thomas Zimmermann
2022-07-08  9:39 ` [PATCH 01/14] drm/mgag200: Split mgag200_modeset_init() Thomas Zimmermann
2022-07-08  9:39 ` [PATCH 02/14] drm/mgag200: Move DAC-register setup into model-specific code Thomas Zimmermann
2022-07-08 15:54   ` Sam Ravnborg
2022-07-11  7:25     ` Thomas Zimmermann
2022-07-08  9:39 ` [PATCH 03/14] dmr/mgag200: Move ER/EW3 register initializatino to per-model code Thomas Zimmermann
2022-07-08  9:39 ` [PATCH 04/14] drm/mgag200: Acquire I/O-register lock in atomic_commit_tail function Thomas Zimmermann
2022-07-08  9:39 ` [PATCH 05/14] drm/mgag200: Store primary plane's color format in CRTC state Thomas Zimmermann
2022-07-08  9:39 ` [PATCH 06/14] drm/mgag200: Reorganize before dropping simple-KMS helpers Thomas Zimmermann
2022-07-08  9:39 ` [PATCH 07/14] drm/mgag200: Replace simple-KMS with regular atomic helpers Thomas Zimmermann
     [not found]   ` <20230425142519.13201-1-kernel@linuxace.com>
2023-04-25 15:03     ` Thomas Zimmermann
2023-04-25 15:48       ` Jocelyn Falempe
2023-04-25 19:56       ` kernel
2023-04-25 23:39       ` kernel
2023-04-26  7:01         ` Thomas Zimmermann
2023-04-26 10:15           ` Thomas Zimmermann
2023-04-27  0:47             ` kernel
2022-07-08  9:39 ` [PATCH 08/14] drm/mgag200: Set SCROFF in primary-plane code Thomas Zimmermann
2022-07-08  9:39 ` [PATCH 09/14] drm/mgag200: Add per-device callbacks Thomas Zimmermann
2022-07-08  9:39 ` [PATCH 10/14] drm/mgag200: Provide per-device callbacks for BMC synchronization Thomas Zimmermann
2022-07-08  9:39 ` [PATCH 11/14] drm/mgag200: Provide per-device callbacks for PIXPLLC Thomas Zimmermann
2022-07-08  9:39 ` [PATCH 12/14] drm/mgag200: Move mode-config to model-specific code Thomas Zimmermann
2022-07-08  9:39 ` [PATCH 13/14] drm/mgag200: Move CRTC atomic_enable to model-specfic code Thomas Zimmermann
2022-07-08  9:39 ` [PATCH 14/14] drm/mgag200: Remove type field from struct mga_device Thomas Zimmermann
2022-07-08 17:18   ` Sam Ravnborg
2022-07-08 17:22 ` Sam Ravnborg [this message]
2022-07-11  7:29   ` [PATCH 00/14] drm/mgag200: Move model-specific code into separate functions Thomas Zimmermann
2022-07-11 16:20     ` Jocelyn Falempe

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=Yshn83t1ByD6Q6Qf@ravnborg.org \
    --to=sam@ravnborg.org \
    --cc=airlied@linux.ie \
    --cc=airlied@redhat.com \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=jfalempe@redhat.com \
    --cc=tzimmermann@suse.de \
    /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.