mbox series

[v3,0/7] drm: Try to fix encoder possible_clones/crtc

Message ID 20200211162208.16224-1-ville.syrjala@linux.intel.com (mailing list archive)
Headers show
Series drm: Try to fix encoder possible_clones/crtc | expand

Message

Ville Syrjälä Feb. 11, 2020, 4:22 p.m. UTC
From: Ville Syrjälä <ville.syrjala@linux.intel.com>

Another respin of the possible_clones/crtcs fixing.

Changes based on v2 review:
- introduce drm_mode_config_validate()
- WARN for possible_clones!=0 when the encoder
  itself isn't in the mask
- update the documentation to match the code

Other changes:
- sligth refactoring of the code to make it
  more consistent
- add a patch to fixup possible_crtcs too (might not
  be needed but included it just in case).

Cc: Thomas Zimmermann <tzimmermann@suse.de>
Cc: Daniel Vetter <daniel@ffwll.ch>

Ville Syrjälä (7):
  drm: Include the encoder itself in possible_clones
  drm/gma500: Sanitize possible_clones
  drm/exynos: Use drm_encoder_mask()
  drm/imx: Remove the bogus possible_clones setup
  drm: Validate encoder->possible_clones
  drm: Validate encoder->possible_crtcs
  drm: Allow drivers to leave encoder->possible_crtcs==0

 drivers/gpu/drm/drm_crtc_internal.h     |  1 +
 drivers/gpu/drm/drm_drv.c               |  3 +
 drivers/gpu/drm/drm_mode_config.c       | 97 +++++++++++++++++++++++++
 drivers/gpu/drm/exynos/exynos_drm_drv.c |  5 +-
 drivers/gpu/drm/gma500/framebuffer.c    | 16 ++--
 drivers/gpu/drm/gma500/mdfld_dsi_dpi.c  |  4 +-
 drivers/gpu/drm/imx/imx-drm-core.c      |  4 +-
 include/drm/drm_encoder.h               | 12 ++-
 8 files changed, 125 insertions(+), 17 deletions(-)