drm: managed encoder/plane/crtc allocation
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v5 Latest19 patches 0 repliesNew
- 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().
Patches in v5 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/19 | drm/encoder: make encoder control functions optionaldrivers/ drivers/ include/ | +4 | 0 replies | |
| 2/19 | drm: add drmm_encoder_alloc()drivers/ include/ | +116 | 0 replies | |
| 3/19 | drm/simple_kms_helper: add drmm_simple_encoder_alloc()drivers/ include/ | +36 | 0 replies | |
| 4/19 | drm/plane: add drmm_universal_plane_alloc()drivers/ include/ | +147 | 0 replies | |
| 5/19 | drm/crtc: add drmm_crtc_alloc_with_planes()drivers/ include/ | +130 | 0 replies | |
| 6/19 | drm/imx: dw_hdmi-imx: move initialization into probedrivers/ | +26 | 0 replies | |
| 7/19 | drm/imx: imx-ldb: use local connector variabledrivers/ | +6 | 0 replies | |
| 8/19 | drm/imx: imx-ldb: move initialization into probedrivers/ | +37 | 0 replies | |
| 9/19 | drm/imx: imx-tve: use local encoder and connector variablesdrivers/ | +8 | 0 replies | |
| 10/19 | drm/imx: imx-tve: move initialization into probedrivers/ | +19 | 0 replies | |
| 11/19 | drm/imx: imx-tve: use devm_clk_registerdrivers/ | +1 | 0 replies | |
| 12/19 | drm/imx: parallel-display: use local bridge and connector variablesdrivers/ | +10 | 0 replies | |
| 13/19 | drm/imx: parallel-display: move initialization into probedrivers/ | +20 | 0 replies | |
| 14/19 | drm/imx: dw_hdmi-imx: use drm managed resourcesdrivers/ | +17 | 0 replies | |
| 15/19 | drm/imx: imx-ldb: use drm managed resourcesdrivers/ | +22 | 0 replies | |
| 16/19 | drm/imx: imx-tve: use drm managed resourcesdrivers/ | +39 | 0 replies | |
| 17/19 | drm/imx: parallel-display: use drm managed resourcesdrivers/ | +29 | 0 replies | |
| 18/19 | drm/imx: ipuv3-plane: use drm managed resourcesdrivers/ drivers/ drivers/ | +36 | 0 replies | |
| 19/19 | drm/imx: ipuv3-crtc: use drm managed resourcesdrivers/ | +43 | 0 replies |
Reviews trailers per patch
All 19 patches have a Reviewed-by or Acked-by.
| Patch | Laurent Pinchart | Daniel Vetter |
|---|---|---|
| 1/19 | R-b | R-b |
| 2/19 | R-b | R-b |
| 3/19 | R-b | R-b |
| 4/19 | R-b | R-b |
| 5/19 | R-b | R-b |
| 6/19 | A-b | |
| 7/19 | A-b | |
| 8/19 | A-b | |
| 9/19 | A-b | |
| 10/19 | A-b | |
| 11/19 | A-b | |
| 12/19 | A-b | |
| 13/19 | A-b | |
| 14/19 | A-b | |
| 15/19 | A-b | |
| 16/19 | A-b | |
| 17/19 | A-b | |
| 18/19 | A-b | |
| 19/19 | A-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
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