Skip to content

drm: Try to fix encoder possible_clones/crtc

Ville Syrjala amd-gfx dri-devel intel-gfx 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest7 patches 20 repliesIn review
  2. v2 posting 2/26 patches 14 repliesSuperseded
  3. v2 posting 1/214 patches 2 repliesSuperseded

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7drm: Include the encoder itself in possible_clonesdrivers/gpu/drm/drm_crtc_internal.h drivers/gpu/drm/drm_drv.c drivers/gpu/drm/drm_mode_config.c +1 more+26 -11 reply
2/7drm/gma500: Sanitize possible_clonesdrivers/gpu/drm/gma500/framebuffer.c drivers/gpu/drm/gma500/mdfld_dsi_dpi.c+10 -100 replies
3/7drm/exynos: Use drm_encoder_mask()drivers/gpu/drm/exynos/exynos_drm_drv.c+2 -32 replies
4/7drm/imx: Remove the bogus possible_clones setupdrivers/gpu/drm/imx/imx-drm-core.c+2 -20 replies
5/7drm: Validate encoder->possible_clonesdrivers/gpu/drm/drm_mode_config.c include/drm/drm_encoder.h+42 -03 replies
6/7drm: Validate encoder->possible_crtcsdrivers/gpu/drm/drm_mode_config.c include/drm/drm_encoder.h+27 -29 replies
7/7drm: Allow drivers to leave encoder->possible_crtcs==0drivers/gpu/drm/drm_mode_config.c include/drm/drm_encoder.h+18 -15 replies

Reviews trailers per patch

All 7 patches have a Reviewed-by or Acked-by.

PatchThomas ZimmermannDaniel VetterInki Dae
1/7A-b R-b
2/7A-b
3/7A-b A-b
4/7A-b
5/7A-b R-b
6/7R-b
7/7R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v3 thread

Cover letter [PATCH v3 0/7] drm: Try to fix encoder possible_clones/crtc

From: Ville Syrjälä <[email protected]>

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 <[email protected]>
Cc Daniel Vetter <[email protected]>

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(-)
Signature · 6 lines
2.24.1

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel