[PATCH v3 0/7] drm: Try to fix encoder possible_clones/crtc
Ville Syrjala
ville.syrjala at linux.intel.com
Tue Feb 11 16:22:01 UTC 2020
From: Ville Syrjälä <ville.syrjala at 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 at suse.de>
Cc: Daniel Vetter <daniel at 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(-)
--
2.24.1
More information about the dri-devel
mailing list