All of lore.kernel.org
 help / color / mirror / Atom feed
From: Sam Ravnborg <sam@ravnborg.org>
To: Thomas Zimmermann <tzimmermann@suse.de>
Cc: airlied@redhat.com, dri-devel@lists.freedesktop.org,
	kraxel@redhat.com, emil.velikov@collabora.com
Subject: Re: [PATCH 00/14] drm/mgag200: Use managed interfaces for auto-cleanup
Date: Fri, 5 Jun 2020 16:50:39 +0200	[thread overview]
Message-ID: <20200605145039.GE204352@ravnborg.org> (raw)
In-Reply-To: <20200605135803.19811-1-tzimmermann@suse.de>

Hi Thomas.

On Fri, Jun 05, 2020 at 03:57:49PM +0200, Thomas Zimmermann wrote:
> This patchset cleans up mgag200 device initialization, embeds the
> DRM device instance in struct mga_device and finally converts device
> initialization to managed interfaces.
> 
> Patches 1 and 2 are actually unrelated. Both remove artifacts that got
> lost from earlier patch series. We're fixing this before introducing new
> changes.
> 
> Patches 3 to 7 cleanup the memory management code and convert it to
> managed. Specifically, all MM code is being moved into a the same file.
> That makes it more obvious what's going on and will allow for further
> cleanups later on.
> 
> Modesetting is already cleaned up automatically, so there's nothing
> to do here.
> 
> With modesetting and MM done, patches 8 to 14 convert the device
> initialization to managed interfaces. The allocation is split among
> several functions and we move it to the same place in patches 11 and
> 12. That is also a good opportunity to embed the DRM device instance
> in struct mga_device in patch 13. Patch 14 adds managed release of the
> device structure.
> 
> Tested on Matrox G200SE HW.
> 
> Thomas Zimmermann (14):
>   drm/mgag200: Remove declaration of mgag200_mmap() from header file
>   drm/mgag200: Remove mgag200_cursor.c
>   drm/mgag200: Use pcim_enable_device()
>   drm/mgag200: Rename mgag200_ttm.c to mgag200_mm.c
>   drm/mgag200: Lookup VRAM PCI BAR start and length only once
>   drm/mgag200: Merge VRAM setup into MM initialization
>   drm/mgag200: Switch to managed MM
>   drm/mgag200: Separate DRM and PCI functionality from each other
>   drm/mgag200: Prefix global names in mgag200_drv.c with mgag200_
>   drm/mgag200: Move device init and cleanup to mgag200_drv.c
>   drm/mgag200: Separate device initialization into allocation
>   drm/mgag200: Allocate device structures in mgag200_driver_load()
>   drm/mgag200: Embed instance of struct drm_device in struct mga_device
>   drm/mgag200: Use managed device initialization

Looked through all patches.
A few triggered some small comments. With the comments addressed all
patches are:
Acked-by: Sam Ravnborg <sam@ravnborg.org>

My comments can, if any chenges are required, be addressed when
applying. No need for a next round.

	Sam



> 
>  drivers/gpu/drm/mgag200/Makefile              |   3 +-
>  drivers/gpu/drm/mgag200/mgag200_cursor.c      | 319 ------------------
>  drivers/gpu/drm/mgag200/mgag200_drv.c         | 161 ++++++---
>  drivers/gpu/drm/mgag200/mgag200_drv.h         |  11 +-
>  drivers/gpu/drm/mgag200/mgag200_main.c        | 155 ---------
>  .../mgag200/{mgag200_ttm.c => mgag200_mm.c}   |  99 ++++--
>  drivers/gpu/drm/mgag200/mgag200_mode.c        |  12 +-
>  7 files changed, 195 insertions(+), 565 deletions(-)
>  delete mode 100644 drivers/gpu/drm/mgag200/mgag200_cursor.c
>  delete mode 100644 drivers/gpu/drm/mgag200/mgag200_main.c
>  rename drivers/gpu/drm/mgag200/{mgag200_ttm.c => mgag200_mm.c} (51%)
> 
> --
> 2.26.2
> 
> 
> Thomas Zimmermann (14):
>   drm/mgag200: Remove declaration of mgag200_mmap() from header file
>   drm/mgag200: Remove mgag200_cursor.c
>   drm/mgag200: Use pcim_enable_device()
>   drm/mgag200: Rename mgag200_ttm.c to mgag200_mm.c
>   drm/mgag200: Lookup VRAM PCI BAR start and length only once
>   drm/mgag200: Merge VRAM setup into MM initialization
>   drm/mgag200: Switch to managed MM
>   drm/mgag200: Separate DRM and PCI functionality from each other
>   drm/mgag200: Prefix global names in mgag200_drv.c with mgag200_
>   drm/mgag200: Move device init and cleanup to mgag200_drv.c
>   drm/mgag200: Separate device initialization into allocation
>   drm/mgag200: Allocate device structures in mgag200_driver_load()
>   drm/mgag200: Embed instance of struct drm_device in struct mga_device
>   drm/mgag200: Use managed device initialization
> 
>  drivers/gpu/drm/mgag200/Makefile              |   3 +-
>  drivers/gpu/drm/mgag200/mgag200_cursor.c      | 319 ------------------
>  drivers/gpu/drm/mgag200/mgag200_drv.c         | 161 ++++++---
>  drivers/gpu/drm/mgag200/mgag200_drv.h         |  11 +-
>  drivers/gpu/drm/mgag200/mgag200_main.c        | 155 ---------
>  .../mgag200/{mgag200_ttm.c => mgag200_mm.c}   |  99 ++++--
>  drivers/gpu/drm/mgag200/mgag200_mode.c        |  12 +-
>  7 files changed, 195 insertions(+), 565 deletions(-)
>  delete mode 100644 drivers/gpu/drm/mgag200/mgag200_cursor.c
>  delete mode 100644 drivers/gpu/drm/mgag200/mgag200_main.c
>  rename drivers/gpu/drm/mgag200/{mgag200_ttm.c => mgag200_mm.c} (51%)
> 
> --
> 2.26.2
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

      parent reply	other threads:[~2020-06-05 14:50 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-06-05 13:57 [PATCH 00/14] drm/mgag200: Use managed interfaces for auto-cleanup Thomas Zimmermann
2020-06-05 13:57 ` [PATCH 01/14] drm/mgag200: Remove declaration of mgag200_mmap() from header file Thomas Zimmermann
2020-06-05 13:57   ` Thomas Zimmermann
2020-06-05 13:57 ` [PATCH 02/14] drm/mgag200: Remove mgag200_cursor.c Thomas Zimmermann
2020-06-05 13:57 ` [PATCH 03/14] drm/mgag200: Use pcim_enable_device() Thomas Zimmermann
2020-06-05 13:57 ` [PATCH 04/14] drm/mgag200: Rename mgag200_ttm.c to mgag200_mm.c Thomas Zimmermann
2020-06-05 13:57 ` [PATCH 05/14] drm/mgag200: Lookup VRAM PCI BAR start and length only once Thomas Zimmermann
2020-06-05 13:57 ` [PATCH 06/14] drm/mgag200: Merge VRAM setup into MM initialization Thomas Zimmermann
2020-06-05 14:39   ` Sam Ravnborg
2020-06-08 13:05     ` Thomas Zimmermann
2020-06-05 13:57 ` [PATCH 07/14] drm/mgag200: Switch to managed MM Thomas Zimmermann
2020-06-05 16:22   ` Daniel Vetter
2020-06-08 12:57     ` Thomas Zimmermann
2020-06-05 13:57 ` [PATCH 08/14] drm/mgag200: Separate DRM and PCI functionality from each other Thomas Zimmermann
2020-06-05 13:57 ` [PATCH 09/14] drm/mgag200: Prefix global names in mgag200_drv.c with mgag200_ Thomas Zimmermann
2020-06-05 14:42   ` Sam Ravnborg
2020-06-08 13:06     ` Thomas Zimmermann
2020-06-05 13:57 ` [PATCH 10/14] drm/mgag200: Move device init and cleanup to mgag200_drv.c Thomas Zimmermann
2020-06-05 14:45   ` Sam Ravnborg
2020-06-05 17:23     ` Thomas Zimmermann
2020-06-05 13:58 ` [PATCH 11/14] drm/mgag200: Separate device initialization into allocation Thomas Zimmermann
2020-06-05 13:58 ` [PATCH 12/14] drm/mgag200: Allocate device structures in mgag200_driver_load() Thomas Zimmermann
2020-06-05 13:58 ` [PATCH 13/14] drm/mgag200: Embed instance of struct drm_device in struct mga_device Thomas Zimmermann
2020-06-05 13:58 ` [PATCH 14/14] drm/mgag200: Use managed device initialization Thomas Zimmermann
2020-06-05 14:50 ` Sam Ravnborg [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=20200605145039.GE204352@ravnborg.org \
    --to=sam@ravnborg.org \
    --cc=airlied@redhat.com \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=emil.velikov@collabora.com \
    --cc=kraxel@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.