[Intel-gfx] [PATCH 00/12] drm/i915: Eliminate DDI encoder->type frobbery

ville.syrjala at linux.intel.com ville.syrjala at linux.intel.com
Wed Jun 8 10:41:35 UTC 2016


From: Ville Syrjälä <ville.syrjala at linux.intel.com>

DDI encoders changing encoder->type at random points in time is a
bit of a problem. Earlier I posted a series [1] to split DDI encoders
into separate HDMI and DP encoders, but now that LSPCON is coming
we'll anyway need some way to change the encoder role dynamically.
So I figured I'd take a step back from the split DDI encoers, and
instead try to do the role switching in a more controlled fashion.
I'm still a bit tempted to finish the encoder split for DDI, but
that should at least wait until we figure out LSPCON.

I also briefly considered that we might have two encoders and one
connector for LSPCON, but I suspect that might require some bigger
surgery in the hotplug code since that tries to deal in encoders
for whatever reason.

I came up with the output_types bitmask idea originally just to
eliminate all the silly encoder type related loops in the DPLL
code (as part of my lvds_downclock branch). But recently I realized
that it could help with DDI/LSPCON as well, and so here we are.

Entire series available here:
git://github.com/vsyrjala/linux.git output_type_bitmask

[1] https://lists.freedesktop.org/archives/intel-gfx/2015-December/082384.html

Ville Syrjälä (12):
  drm/i915: Don't mark eDP encoders as MST capable
  drm/i915: Remove encoder type checks from MST suspend/resume
  drm/i915: Add output_types bitmask into the crtc state
  drm/i915: Unify intel_pipe_has_type() and intel_pipe_will_have_type()
  drm/i915: Replace manual lvds and sdvo/hdmi counting with
    intel_crtc_has_type()
  drm/i915: Kill has_dp_encoder from pipe_config
  drm/i915: Replace some open coded intel_crtc_has_dp_encoder()s
  drm/i915: s/INTEL_OUTPUT_DISPLAYPORT/INTEL_OUTPUT_DP/
  drm/i915: Kill has_dsi_encoder
  drm/i915: Simplify hdmi_12bpc_possible()
  drm/i915: Check for invalid cloning earlier during modeset
  drm/i915: Stop frobbing with DDI encoder->type

 drivers/gpu/drm/i915/i915_debugfs.c   |   8 +-
 drivers/gpu/drm/i915/intel_audio.c    |  15 +-
 drivers/gpu/drm/i915/intel_color.c    |   2 +-
 drivers/gpu/drm/i915/intel_ddi.c      | 207 ++++++++++++++---------
 drivers/gpu/drm/i915/intel_display.c  | 309 ++++++++++++++--------------------
 drivers/gpu/drm/i915/intel_dp.c       |  51 ++----
 drivers/gpu/drm/i915/intel_dp_mst.c   |   3 -
 drivers/gpu/drm/i915/intel_dpll_mgr.c |  21 +--
 drivers/gpu/drm/i915/intel_drv.h      |  20 ++-
 drivers/gpu/drm/i915/intel_dsi.c      |   4 -
 drivers/gpu/drm/i915/intel_hdmi.c     |  30 +---
 drivers/gpu/drm/i915/intel_opregion.c |   4 +-
 12 files changed, 305 insertions(+), 369 deletions(-)

-- 
2.7.4



More information about the Intel-gfx mailing list