All of lore.kernel.org
 help / color / mirror / Atom feed
* [GIT PULL] drm/imx: fixes and drm managed resources
@ 2021-01-04 17:10 Philipp Zabel
  2021-01-07 10:25 ` Daniel Vetter
  0 siblings, 1 reply; 2+ messages in thread
From: Philipp Zabel @ 2021-01-04 17:10 UTC (permalink / raw)
  To: David Airlie, Daniel Vetter; +Cc: kernel, dri-devel

Hi Dave, Daniel,

this PR includes the drmm encoder/plane/crtc allocation functions and
converts the imx-drm driver to use them.

The following changes since commit 5c8fe583cce542aa0b84adc939ce85293de36e5e:

  Linux 5.11-rc1 (2020-12-27 15:30:22 -0800)

are available in the Git repository at:

  git://git.pengutronix.de/git/pza/linux.git tags/imx-drm-next-2021-01-04

for you to fetch changes up to 16da8e9a7767ac77720f49bfa870def61a250cda:

  drm/imx: ipuv3-crtc: use drm managed resources (2021-01-04 12:59:34 +0100)

----------------------------------------------------------------
drm/imx: fixes and drm managed resources

- Reduce stack usage in ipu-di.
- Fix imx-ldb for compile tests.
- Make drm encoder control functions optional.
- Add drm managed variants drmm_encoder_alloc(),
  drmm_simple_encoder_alloc(), drmm_universal_plane_alloc(), and
  drmm_crtc_alloc_with_planes() for drm_encoder_init(),
  drm_simple_encoder_init(), drm_universal_plane_init(), and
  drm_crtc_init_with_planes(), respectively.
- Update imx-drm to use the new functions for drm managed resource
  allocation, moving initialization from bind to probe where possible.
- Fix imx-tve clock provider leak.

----------------------------------------------------------------
Krzysztof Kozlowski (1):
      drm/imx: depend on COMMON_CLK to fix compile tests

Lee Jones (1):
      gpu/ipu-v3/ipu-di: Strip out 2 unused 'di_sync_config' entries

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

Zheng Yongjun (1):
      gpu: drm: imx: convert comma to semicolon

 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/Kconfig             |   1 +
 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  |  93 +++++++++++-----------
 drivers/gpu/ipu-v3/ipu-di.c             |   4 -
 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 ++++++
 18 files changed, 712 insertions(+), 421 deletions(-)
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

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

* Re: [GIT PULL] drm/imx: fixes and drm managed resources
  2021-01-04 17:10 [GIT PULL] drm/imx: fixes and drm managed resources Philipp Zabel
@ 2021-01-07 10:25 ` Daniel Vetter
  0 siblings, 0 replies; 2+ messages in thread
From: Daniel Vetter @ 2021-01-07 10:25 UTC (permalink / raw)
  To: Philipp Zabel; +Cc: David Airlie, kernel, dri-devel

On Mon, Jan 04, 2021 at 06:10:31PM +0100, Philipp Zabel wrote:
> Hi Dave, Daniel,
> 
> this PR includes the drmm encoder/plane/crtc allocation functions and
> converts the imx-drm driver to use them.
> 
> The following changes since commit 5c8fe583cce542aa0b84adc939ce85293de36e5e:
> 
>   Linux 5.11-rc1 (2020-12-27 15:30:22 -0800)
> 
> are available in the Git repository at:
> 
>   git://git.pengutronix.de/git/pza/linux.git tags/imx-drm-next-2021-01-04

Pulled, thanks. Daniel

> 
> for you to fetch changes up to 16da8e9a7767ac77720f49bfa870def61a250cda:
> 
>   drm/imx: ipuv3-crtc: use drm managed resources (2021-01-04 12:59:34 +0100)
> 
> ----------------------------------------------------------------
> drm/imx: fixes and drm managed resources
> 
> - Reduce stack usage in ipu-di.
> - Fix imx-ldb for compile tests.
> - Make drm encoder control functions optional.
> - Add drm managed variants drmm_encoder_alloc(),
>   drmm_simple_encoder_alloc(), drmm_universal_plane_alloc(), and
>   drmm_crtc_alloc_with_planes() for drm_encoder_init(),
>   drm_simple_encoder_init(), drm_universal_plane_init(), and
>   drm_crtc_init_with_planes(), respectively.
> - Update imx-drm to use the new functions for drm managed resource
>   allocation, moving initialization from bind to probe where possible.
> - Fix imx-tve clock provider leak.
> 
> ----------------------------------------------------------------
> Krzysztof Kozlowski (1):
>       drm/imx: depend on COMMON_CLK to fix compile tests
> 
> Lee Jones (1):
>       gpu/ipu-v3/ipu-di: Strip out 2 unused 'di_sync_config' entries
> 
> 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
> 
> Zheng Yongjun (1):
>       gpu: drm: imx: convert comma to semicolon
> 
>  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/Kconfig             |   1 +
>  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  |  93 +++++++++++-----------
>  drivers/gpu/ipu-v3/ipu-di.c             |   4 -
>  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 ++++++
>  18 files changed, 712 insertions(+), 421 deletions(-)

-- 
Daniel Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

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

end of thread, other threads:[~2021-01-07 10:25 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-04 17:10 [GIT PULL] drm/imx: fixes and drm managed resources Philipp Zabel
2021-01-07 10:25 ` Daniel Vetter

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.