Skip to content

drm: managed encoder/plane/crtc allocation

Philipp Zabel dri-devel 2 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v5 Latest19 patches 0 repliesNew
  2. v419 patches 15 repliesSuperseded

Changes in v5 from the cover letter

- Roll back drm_mode_config_cleanup() change, any encoders that are kept on the mode_config.encoder_list until then are still required to have funcs set.
- Mention that {encoder,plane,crtc}_funcs.destroy should cleanup and kfree() the structure, and that it should not be allocated with devm_kzalloc().
- Point out drmm_encoder_alloc in the drm_encoder_init() documentation, drmm_universal_plane_alloc() in the drm_universal_plane_init() documentation, and drmm_crtc_alloc_with_planes() in the drm_crtc_alloc_with_planes() documentation.
- WARN_ON(!funcs->destroy) in drm_{encoder,universal_plane}_init() and in drm_crtc_init_with_planes().
- WARN_ON(!funcs || funcs->destroy) in drmm_universal_plane_alloc() and in drmm_crtc_allow_with_planes().
- Mark funcs parameter as optional in drmm_encoder_alloc() documentation.
- Address FIXME in drm_simple_encoder_init() documentation by pointing out drmm_simple_encoder_alloc().

[1] https://lore.kernel.org/dri-devel/[email protected]/

Patches in v5 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/19drm/encoder: make encoder control functions optionaldrivers/gpu/drm/drm_encoder.c drivers/gpu/drm/drm_mode_config.c include/drm/drm_encoder.h+4 -40 replies
2/19drm: add drmm_encoder_alloc()drivers/gpu/drm/drm_encoder.c include/drm/drm_encoder.h+116 -230 replies
3/19drm/simple_kms_helper: add drmm_simple_encoder_alloc()drivers/gpu/drm/drm_simple_kms_helper.c include/drm/drm_simple_kms_helper.h+36 -20 replies
4/19drm/plane: add drmm_universal_plane_alloc()drivers/gpu/drm/drm_plane.c include/drm/drm_plane.h+147 -290 replies
5/19drm/crtc: add drmm_crtc_alloc_with_planes()drivers/gpu/drm/drm_crtc.c include/drm/drm_crtc.h+130 -280 replies
6/19drm/imx: dw_hdmi-imx: move initialization into probedrivers/gpu/drm/imx/dw_hdmi-imx.c+26 -480 replies
7/19drm/imx: imx-ldb: use local connector variabledrivers/gpu/drm/imx/imx-ldb.c+6 -60 replies
8/19drm/imx: imx-ldb: move initialization into probedrivers/gpu/drm/imx/imx-ldb.c+37 -350 replies
9/19drm/imx: imx-tve: use local encoder and connector variablesdrivers/gpu/drm/imx/imx-tve.c+8 -70 replies
10/19drm/imx: imx-tve: move initialization into probedrivers/gpu/drm/imx/imx-tve.c+19 -230 replies
11/19drm/imx: imx-tve: use devm_clk_registerdrivers/gpu/drm/imx/imx-tve.c+1 -10 replies
12/19drm/imx: parallel-display: use local bridge and connector variablesdrivers/gpu/drm/imx/parallel-display.c+10 -100 replies
13/19drm/imx: parallel-display: move initialization into probedrivers/gpu/drm/imx/parallel-display.c+20 -220 replies
14/19drm/imx: dw_hdmi-imx: use drm managed resourcesdrivers/gpu/drm/imx/dw_hdmi-imx.c+17 -80 replies
15/19drm/imx: imx-ldb: use drm managed resourcesdrivers/gpu/drm/imx/imx-ldb.c+22 -90 replies
16/19drm/imx: imx-tve: use drm managed resourcesdrivers/gpu/drm/imx/imx-tve.c+39 -350 replies
17/19drm/imx: parallel-display: use drm managed resourcesdrivers/gpu/drm/imx/parallel-display.c+29 -280 replies
18/19drm/imx: ipuv3-plane: use drm managed resourcesdrivers/gpu/drm/imx/ipuv3-crtc.c drivers/gpu/drm/imx/ipuv3-plane.c drivers/gpu/drm/imx/ipuv3-plane.h+36 -630 replies
19/19drm/imx: ipuv3-crtc: use drm managed resourcesdrivers/gpu/drm/imx/ipuv3-crtc.c+43 -710 replies

Reviews trailers per patch

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

PatchLaurent PinchartDaniel Vetter
1/19R-b R-b
2/19R-b R-b
3/19R-b R-b
4/19R-b R-b
5/19R-b R-b
6/19A-b
7/19A-b
8/19A-b
9/19A-b
10/19A-b
11/19A-b
12/19A-b
13/19A-b
14/19A-b
15/19A-b
16/19A-b
17/19A-b
18/19A-b
19/19A-b

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

Read the v5 thread

Cover letter [PATCH v5 00/19] drm: managed encoder/plane/crtc allocation

Hi,

update of v4 [1] with review feedback integrated.

Changes since v4:
- Roll back drm_mode_config_cleanup() change, any encoders that are kept on the mode_config.encoder_list until then are still required to have funcs set.
- Mention that {encoder,plane,crtc}_funcs.destroy should cleanup and kfree() the structure, and that it should not be allocated with devm_kzalloc().
- Point out drmm_encoder_alloc in the drm_encoder_init() documentation, drmm_universal_plane_alloc() in the drm_universal_plane_init() documentation, and drmm_crtc_alloc_with_planes() in the drm_crtc_alloc_with_planes() documentation.
- WARN_ON(!funcs->destroy) in drm_{encoder,universal_plane}_init() and in drm_crtc_init_with_planes().
- WARN_ON(!funcs || funcs->destroy) in drmm_universal_plane_alloc() and in drmm_crtc_allow_with_planes().
- Mark funcs parameter as optional in drmm_encoder_alloc() documentation.
- Address FIXME in drm_simple_encoder_init() documentation by pointing out drmm_simple_encoder_alloc().

[1] https://lore.kernel.org/dri-devel/[email protected]/

regards
Philipp

Philipp Zabel (19):
drm/encoder: make encoder control functions optional
drm: add drmm_encoder_alloc()
drm/simple_kms_helper: add drmm_simple_encoder_alloc() drm/plane: add drmm_universal_plane_alloc()
drm/crtc: add drmm_crtc_alloc_with_planes()
drm/imx: dw_hdmi-imx: move initialization into probe drm/imx: imx-ldb: use local connector variable
drm/imx: imx-ldb: move initialization into probe drm/imx: imx-tve: use local encoder and connector variables drm/imx: imx-tve: move initialization into probe drm/imx: imx-tve: use devm_clk_register
drm/imx: parallel-display: use local bridge and connector variables drm/imx: parallel-display: move initialization into probe drm/imx: dw_hdmi-imx: use drm managed resources
drm/imx: imx-ldb: use drm managed resources
drm/imx: imx-tve: use drm managed resources
drm/imx: parallel-display: use drm managed resources drm/imx: ipuv3-plane: use drm managed resources
drm/imx: ipuv3-crtc: use drm managed resources

 drivers/gpu/drm/drm_crtc.c              | 125 +++++++++++++++++-----
 drivers/gpu/drm/drm_encoder.c           | 113 +++++++++++++++-----
 drivers/gpu/drm/drm_mode_config.c       |   2 +-
 drivers/gpu/drm/drm_plane.c             | 134 +++++++++++++++++++-----
 drivers/gpu/drm/drm_simple_kms_helper.c |  14 ++-
 drivers/gpu/drm/imx/dw_hdmi-imx.c       |  95 ++++++++---------
 drivers/gpu/drm/imx/imx-ldb.c           | 109 ++++++++++---------
 drivers/gpu/drm/imx/imx-tve.c           | 109 +++++++++----------
 drivers/gpu/drm/imx/ipuv3-crtc.c        | 131 +++++++----------------
 drivers/gpu/drm/imx/ipuv3-plane.c       |  69 ++++++------
 drivers/gpu/drm/imx/ipuv3-plane.h       |   3 -
 drivers/gpu/drm/imx/parallel-display.c  |  91 ++++++++--------
 include/drm/drm_crtc.h                  |  33 ++++++
 include/drm/drm_encoder.h               |  32 +++++-
 include/drm/drm_plane.h                 |  42 ++++++++
 include/drm/drm_simple_kms_helper.h     |  24 +++++
 16 files changed, 710 insertions(+), 416 deletions(-)
Signature · 6 lines
2.20.1

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel