mbox series

[00/17] drm/msm/mdp[45]: use managed memory allocations

Message ID 20230708010407.3871346-1-dmitry.baryshkov@linaro.org
Headers show
Series drm/msm/mdp[45]: use managed memory allocations | expand

Message

Dmitry Baryshkov July 8, 2023, 1:03 a.m. UTC
Follow the DPU patchset ([1]) and use devm_ and drmm_ functions to
allocate long-living data structures in mdp4 and mdp5 drivers.

[1] https://patchwork.freedesktop.org/series/120366/

Dmitry Baryshkov (17):
  drm/msm: add arrays listing formats supported by MDP4/MDP5 hardware
  drm/msm/mdp5: use devres-managed allocation for configuration data
  drm/msm/mdp5: use devres-managed allocation for CTL manager data
  drm/msm/mdp5: use devres-managed allocation for mixer data
  drm/msm/mdp5: use devres-managed allocation for pipe data
  drm/msm/mdp5: use devres-managed allocation for SMP data
  drm/msm/mdp5: use devres-managed allocation for INTF data
  drm/msm/mdp5: use drmm-managed allocation for mdp5_crtc
  drm/msm/mdp5: use drmm-managed allocation for mdp5_encoder
  drm/msm/mdp5: use drmm-managed allocation for mdp5_plane
  drm/msm/mdp4: use bulk regulators API for LCDC encoder
  drm/msm/mdp4: use drmm-managed allocation for mdp4_crtc
  drm/msm/mdp4: use drmm-managed allocation for mdp4_dsi_encoder
  drm/msm/mdp4: use drmm-managed allocation for mdp4_dtv_encoder
  drm/msm/mdp4: use drmm-managed allocation for mdp4_lcdc_encoder
  drm/msm/mdp4: use drmm-managed allocation for mdp4_plane
  drm/msm: drop mdp_get_formats()

 drivers/gpu/drm/msm/disp/mdp4/mdp4_crtc.c     | 33 +++----
 .../gpu/drm/msm/disp/mdp4/mdp4_dsi_encoder.c  | 32 ++-----
 .../gpu/drm/msm/disp/mdp4/mdp4_dtv_encoder.c  | 37 ++------
 .../gpu/drm/msm/disp/mdp4/mdp4_lcdc_encoder.c | 87 +++++--------------
 drivers/gpu/drm/msm/disp/mdp4/mdp4_plane.c    | 59 +++++--------
 drivers/gpu/drm/msm/disp/mdp5/mdp5_cfg.c      | 24 ++---
 drivers/gpu/drm/msm/disp/mdp5/mdp5_cfg.h      |  1 -
 drivers/gpu/drm/msm/disp/mdp5/mdp5_crtc.c     | 30 +++----
 drivers/gpu/drm/msm/disp/mdp5/mdp5_ctl.c      | 21 +----
 drivers/gpu/drm/msm/disp/mdp5/mdp5_ctl.h      |  1 -
 drivers/gpu/drm/msm/disp/mdp5/mdp5_encoder.c  | 29 +------
 drivers/gpu/drm/msm/disp/mdp5/mdp5_kms.c      | 25 +-----
 drivers/gpu/drm/msm/disp/mdp5/mdp5_mixer.c    | 10 +--
 drivers/gpu/drm/msm/disp/mdp5/mdp5_mixer.h    |  4 +-
 drivers/gpu/drm/msm/disp/mdp5/mdp5_pipe.c     | 10 +--
 drivers/gpu/drm/msm/disp/mdp5/mdp5_pipe.h     |  4 +-
 drivers/gpu/drm/msm/disp/mdp5/mdp5_plane.c    | 40 ++-------
 drivers/gpu/drm/msm/disp/mdp5/mdp5_smp.c      | 19 +---
 drivers/gpu/drm/msm/disp/mdp5/mdp5_smp.h      |  1 -
 drivers/gpu/drm/msm/disp/mdp_format.c         | 67 +++++++++-----
 drivers/gpu/drm/msm/disp/mdp_kms.h            |  6 +-
 21 files changed, 171 insertions(+), 369 deletions(-)