dri-devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/9] drm/ast: Convert to managed initialization
@ 2020-07-30 13:51 Thomas Zimmermann
  2020-07-30 13:51 ` [PATCH v2 1/9] drm/ast: Embed CRTC and connector in struct ast_private Thomas Zimmermann
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: Thomas Zimmermann @ 2020-07-30 13:51 UTC (permalink / raw)
  To: airlied, daniel, sam, emil.l.velikov, kraxel, yc_chen
  Cc: Thomas Zimmermann, dri-devel

This is the next patchset for converting ast to managed initialization.
For v2 of the series, I moved the I2C patches into a separate patchset.
This resolves a mid-series problem wrt to releasing I2C. The rest of
the patches are unchanged (except for a rebase).

Patches #1 to #6 address modesetting and device structures. All are
being embedded into struct ast_private. With struct ast_private being
a subclass of struct drm_device, patch #6 switches ast to DRM's managed-
allocation helpers.

Patches #7 and #8 address firmware memory that ast allocates
internally.

Finally, patch #9 removes ast's destroy function in favor of managed
release helpers.

Tested on AST 2100 HW.

v2:
	* removed I2C patches from series

Thomas Zimmermann (9):
  drm/ast: Embed CRTC and connector in struct ast_private
  drm/ast: Separate DRM driver from PCI code
  drm/ast: Replace driver load/unload functions with device
    create/destroy
  drm/ast: Replace struct_drm_device.dev_private with to_ast_private()
  drm/ast: Don't use ast->dev if dev is available
  drm/ast: Embed struct drm_device in struct ast_private
  drm/ast: Managed release of ast firmware
  drm/ast: Manage release of firmware backup memory
  drm/ast: Managed device release

 drivers/gpu/drm/ast/ast_cursor.c |  8 ++--
 drivers/gpu/drm/ast/ast_dp501.c  | 23 +++++----
 drivers/gpu/drm/ast/ast_drv.c    | 82 ++++++++++++++------------------
 drivers/gpu/drm/ast/ast_drv.h    | 43 +++++++++--------
 drivers/gpu/drm/ast/ast_main.c   | 74 ++++++++++++++--------------
 drivers/gpu/drm/ast/ast_mm.c     |  2 +-
 drivers/gpu/drm/ast/ast_mode.c   | 40 ++++------------
 drivers/gpu/drm/ast/ast_post.c   |  6 +--
 8 files changed, 130 insertions(+), 148 deletions(-)

--
2.27.0

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2020-07-30 13:52 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-07-30 13:51 [PATCH v2 0/9] drm/ast: Convert to managed initialization Thomas Zimmermann
2020-07-30 13:51 ` [PATCH v2 1/9] drm/ast: Embed CRTC and connector in struct ast_private Thomas Zimmermann
2020-07-30 13:51 ` [PATCH v2 2/9] drm/ast: Separate DRM driver from PCI code Thomas Zimmermann
2020-07-30 13:52 ` [PATCH v2 3/9] drm/ast: Replace driver load/unload functions with device create/destroy Thomas Zimmermann
2020-07-30 13:52 ` [PATCH v2 4/9] drm/ast: Replace struct_drm_device.dev_private with to_ast_private() Thomas Zimmermann
2020-07-30 13:52 ` [PATCH v2 5/9] drm/ast: Don't use ast->dev if dev is available Thomas Zimmermann
2020-07-30 13:52 ` [PATCH v2 6/9] drm/ast: Embed struct drm_device in struct ast_private Thomas Zimmermann
2020-07-30 13:52 ` [PATCH v2 7/9] drm/ast: Managed release of ast firmware Thomas Zimmermann
2020-07-30 13:52 ` [PATCH v2 8/9] drm/ast: Manage release of firmware backup memory Thomas Zimmermann
2020-07-30 13:52 ` [PATCH v2 9/9] drm/ast: Managed device release Thomas Zimmermann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox