public inbox for intel-gfx@lists.freedesktop.org
 help / color / mirror / Atom feed
* [PATCH 01/15] drm/i915: handle DP_MST correctly in bxt_get_dpll
@ 2016-07-07 11:55 Maarten Lankhorst
  2016-07-07 11:55 ` [PATCH 02/15] drm/i915: Pass atomic state to crtc enable/disable functions Maarten Lankhorst
                   ` (15 more replies)
  0 siblings, 16 replies; 22+ messages in thread
From: Maarten Lankhorst @ 2016-07-07 11:55 UTC (permalink / raw)
  To: intel-gfx

No idea if it supports it, but this is the minimum required from get_dpll.

Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
---
 drivers/gpu/drm/i915/intel_dpll_mgr.c | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/drivers/gpu/drm/i915/intel_dpll_mgr.c b/drivers/gpu/drm/i915/intel_dpll_mgr.c
index 5c1f2d235ffa..655a5b382cf9 100644
--- a/drivers/gpu/drm/i915/intel_dpll_mgr.c
+++ b/drivers/gpu/drm/i915/intel_dpll_mgr.c
@@ -1535,7 +1535,8 @@ bxt_get_dpll(struct intel_crtc *crtc, struct intel_crtc_state *crtc_state,
 
 		vco = best_clock.vco;
 	} else if (encoder->type == INTEL_OUTPUT_DP ||
-		   encoder->type == INTEL_OUTPUT_EDP) {
+		   encoder->type == INTEL_OUTPUT_EDP ||
+		   encoder->type == INTEL_OUTPUT_DP_MST) {
 		int i;
 
 		clk_div = bxt_dp_clk_val[0];
@@ -1611,7 +1612,12 @@ bxt_get_dpll(struct intel_crtc *crtc, struct intel_crtc_state *crtc_state,
 	crtc_state->dpll_hw_state.pcsdw12 =
 		LANESTAGGER_STRAP_OVRD | lanestagger;
 
-	intel_dig_port = enc_to_dig_port(&encoder->base);
+	if (encoder->type == INTEL_OUTPUT_DP_MST) {
+		struct intel_dp_mst_encoder *intel_mst = enc_to_mst(&encoder->base);
+
+		intel_dig_port = intel_mst->primary;
+	} else
+		intel_dig_port = enc_to_dig_port(&encoder->base);
 
 	/* 1:1 mapping between ports and PLLs */
 	i = (enum intel_dpll_id) intel_dig_port->port;
-- 
2.5.5

_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

^ permalink raw reply related	[flat|nested] 22+ messages in thread
* [PATCH 00/15] drm/i915: Use connector atomic state in encoders.
@ 2016-08-09 15:03 Maarten Lankhorst
  2016-08-09 15:04 ` [PATCH 03/15] drm/i915: Remove unused mode_set hook from encoder Maarten Lankhorst
  0 siblings, 1 reply; 22+ messages in thread
From: Maarten Lankhorst @ 2016-08-09 15:03 UTC (permalink / raw)
  To: intel-gfx

This is required for supporting nonblocking modeset and atomic connector properties.
Connector properties will need the connector state to be passed or it will not work
as intended.

Nonblocking modesets need to iterate over the atomic state, instead of relying on
the legacy state fixed up by atomic.

Maarten Lankhorst (15):
  drm/i915: handle DP_MST correctly in bxt_get_dpll
  drm/i915: Pass atomic state to crtc enable/disable functions
  drm/i915: Remove unused mode_set hook from encoder
  drm/i915: Walk over encoders in crtc enable/disable using atomic
    state.
  drm/i915: Pass crtc_state and connector_state to encoder functions
  drm/i915: Make encoder->compute_config take the connector state
  drm/i915: Remove unused loop from intel_dp_mst_compute_config
  drm/i915: Convert intel_crt to use atomic state
  drm/i915: Convert intel_dvo to use atomic state
  drm/i915: Convert intel_dsi to use atomic state
  drm/i915: Convert intel_sdvo to use atomic state
  drm/i915: Convert intel_lvds to use atomic state
  drm/i915: Convert intel_dp_mst to use atomic state
  drm/i915: Convert intel_dp to use atomic state
  drm/i915: Use more atomic state in intel_color.c

 drivers/gpu/drm/i915/i915_drv.h       |   6 +-
 drivers/gpu/drm/i915/intel_color.c    |  24 +--
 drivers/gpu/drm/i915/intel_crt.c      |  33 ++--
 drivers/gpu/drm/i915/intel_ddi.c      |  42 +++--
 drivers/gpu/drm/i915/intel_display.c  | 304 +++++++++++++++++++++++-----------
 drivers/gpu/drm/i915/intel_dp.c       | 174 ++++++++++---------
 drivers/gpu/drm/i915/intel_dp_mst.c   |  91 ++++------
 drivers/gpu/drm/i915/intel_dpll_mgr.c |  10 +-
 drivers/gpu/drm/i915/intel_drv.h      |  44 +++--
 drivers/gpu/drm/i915/intel_dsi.c      |  41 +++--
 drivers/gpu/drm/i915/intel_dvo.c      |  27 +--
 drivers/gpu/drm/i915/intel_hdmi.c     |  75 ++++++---
 drivers/gpu/drm/i915/intel_lvds.c     |  54 +++---
 drivers/gpu/drm/i915/intel_sdvo.c     |  52 +++---
 drivers/gpu/drm/i915/intel_tv.c       |  15 +-
 15 files changed, 615 insertions(+), 377 deletions(-)

-- 
2.7.4

_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

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

end of thread, other threads:[~2016-08-18 13:20 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-07-07 11:55 [PATCH 01/15] drm/i915: handle DP_MST correctly in bxt_get_dpll Maarten Lankhorst
2016-07-07 11:55 ` [PATCH 02/15] drm/i915: Pass atomic state to crtc enable/disable functions Maarten Lankhorst
2016-07-07 11:55 ` [PATCH 03/15] drm/i915: Remove unused mode_set hook from encoder Maarten Lankhorst
2016-07-08 10:19   ` Ville Syrjälä
2016-07-07 11:55 ` [PATCH 04/15] drm/i915: Walk over encoders in crtc enable/disable using atomic state Maarten Lankhorst
2016-07-08 10:30   ` Ville Syrjälä
2016-07-11  4:54     ` Maarten Lankhorst
2016-07-07 11:55 ` [PATCH 05/15] drm/i915: Pass crtc_state and connector_state to encoder functions Maarten Lankhorst
2016-07-07 11:55 ` [PATCH 06/15] drm/i915: Make encoder->compute_config take the connector state Maarten Lankhorst
2016-07-07 11:55 ` [PATCH 07/15] drm/i915: Remove unused loop from intel_dp_mst_compute_config Maarten Lankhorst
2016-07-07 11:55 ` [PATCH 08/15] drm/i915: Convert intel_crt to use atomic state Maarten Lankhorst
2016-07-07 11:55 ` [PATCH 09/15] drm/i915: Convert intel_dvo " Maarten Lankhorst
2016-07-07 11:55 ` [PATCH 10/15] drm/i915: Convert intel_dsi " Maarten Lankhorst
2016-07-07 11:55 ` [PATCH 11/15] drm/i915: Convert intel_sdvo " Maarten Lankhorst
2016-07-07 11:55 ` [PATCH 12/15] drm/i915: Convert intel_lvds " Maarten Lankhorst
2016-07-07 11:55 ` [PATCH 13/15] drm/i915: Convert intel_dp_mst " Maarten Lankhorst
2016-07-07 11:55 ` [PATCH 14/15] drm/i915: Convert intel_dp " Maarten Lankhorst
2016-07-07 11:55 ` [PATCH 15/15] drm/i915: Use more atomic state in intel_color.c Maarten Lankhorst
2016-07-07 12:23 ` ✗ Ro.CI.BAT: warning for series starting with [01/15] drm/i915: handle DP_MST correctly in bxt_get_dpll Patchwork
2016-07-08  9:58 ` [PATCH 01/15] " Ville Syrjälä
  -- strict thread matches above, loose matches on Subject: below --
2016-08-09 15:03 [PATCH 00/15] drm/i915: Use connector atomic state in encoders Maarten Lankhorst
2016-08-09 15:04 ` [PATCH 03/15] drm/i915: Remove unused mode_set hook from encoder Maarten Lankhorst
2016-08-18 13:20   ` Daniel Vetter

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox