Skip to content

drm/ast: Convert to managed initialization

Thomas Zimmermann dri-devel 2 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest9 patches 0 repliesNew
  2. v113 patches 13 repliesSuperseded

Changes in v2 from the cover letter

* removed I2C patches from series

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/9drm/ast: Embed CRTC and connector in struct ast_privatedrivers/gpu/drm/ast/ast_drv.h drivers/gpu/drm/ast/ast_mode.c+26 -410 replies
2/9drm/ast: Separate DRM driver from PCI codedrivers/gpu/drm/ast/ast_drv.c+31 -280 replies
3/9drm/ast: Replace driver load/unload functions with device create/destroydrivers/gpu/drm/ast/ast_drv.c drivers/gpu/drm/ast/ast_drv.h drivers/gpu/drm/ast/ast_main.c+33 -210 replies
4/9drm/ast: Replace struct_drm_device.dev_private with to_ast_private()drivers/gpu/drm/ast/ast_cursor.c drivers/gpu/drm/ast/ast_mode.c+2 -20 replies
5/9drm/ast: Don't use ast->dev if dev is availabledrivers/gpu/drm/ast/ast_mode.c drivers/gpu/drm/ast/ast_post.c+3 -30 replies
6/9drm/ast: Embed struct drm_device in struct ast_privatedrivers/gpu/drm/ast/ast_cursor.c drivers/gpu/drm/ast/ast_drv.c drivers/gpu/drm/ast/ast_drv.h +4 more+22 -380 replies
7/9drm/ast: Managed release of ast firmwaredrivers/gpu/drm/ast/ast_dp501.c drivers/gpu/drm/ast/ast_drv.h drivers/gpu/drm/ast/ast_main.c+14 -130 replies
8/9drm/ast: Manage release of firmware backup memorydrivers/gpu/drm/ast/ast_main.c+3 -40 replies
9/9drm/ast: Managed device releasedrivers/gpu/drm/ast/ast_drv.c drivers/gpu/drm/ast/ast_drv.h drivers/gpu/drm/ast/ast_main.c+19 -210 replies

Reviews trailers per patch

All 9 patches have a Reviewed-by or Acked-by.

PatchDaniel VetterSam Ravnborg
1/9A-b A-b
2/9A-b A-b
3/9A-b A-b
4/9A-b A-b
5/9A-b A-b
6/9A-b A-b
7/9A-b A-b
8/9A-b
9/9A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/9] drm/ast: Convert to managed initialization

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
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel