All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drm/i915: Reset dpll_hw_state when selecting a new pll on hsw
@ 2015-09-23 15:34 Gabriel Feceoru
  2015-10-13 13:18 ` Maarten Lankhorst
  0 siblings, 1 reply; 19+ messages in thread
From: Gabriel Feceoru @ 2015-09-23 15:34 UTC (permalink / raw)
  To: intel-gfx

Using 2 connectors (DVI and VGA) will cause wrpll to be set for
INTEL_OUTPUT_HDMI but never reset if switching to INTEL_OUTPUT_VGA

Supresses errors like these:
[drm:intel_pipe_config_compare [i915]] *ERROR* mismatch in dpll_hw_state.wrpll

Signed-off-by: Gabriel Feceoru <gabriel.feceoru@intel.com>
---
 drivers/gpu/drm/i915/intel_ddi.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/gpu/drm/i915/intel_ddi.c b/drivers/gpu/drm/i915/intel_ddi.c
index 4823184..1e5001a 100644
--- a/drivers/gpu/drm/i915/intel_ddi.c
+++ b/drivers/gpu/drm/i915/intel_ddi.c
@@ -1245,6 +1245,9 @@ hsw_ddi_pll_select(struct intel_crtc *intel_crtc,
 {
 	int clock = crtc_state->port_clock;
 
+	memset(&crtc_state->dpll_hw_state, 0,
+	       sizeof(crtc_state->dpll_hw_state));
+
 	if (intel_encoder->type == INTEL_OUTPUT_HDMI) {
 		struct intel_shared_dpll *pll;
 		uint32_t val;
@@ -1256,9 +1259,6 @@ hsw_ddi_pll_select(struct intel_crtc *intel_crtc,
 		      WRPLL_DIVIDER_REFERENCE(r2) | WRPLL_DIVIDER_FEEDBACK(n2) |
 		      WRPLL_DIVIDER_POST(p);
 
-		memset(&crtc_state->dpll_hw_state, 0,
-		       sizeof(crtc_state->dpll_hw_state));
-
 		crtc_state->dpll_hw_state.wrpll = val;
 
 		pll = intel_get_shared_dpll(intel_crtc, crtc_state);
-- 
1.9.1

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

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

end of thread, other threads:[~2015-11-12 18:28 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-09-23 15:34 [PATCH] drm/i915: Reset dpll_hw_state when selecting a new pll on hsw Gabriel Feceoru
2015-10-13 13:18 ` Maarten Lankhorst
2015-10-13 13:35   ` Daniel Vetter
2015-10-13 13:43     ` Daniel Vetter
2015-10-13 13:43     ` Maarten Lankhorst
2015-10-13 13:58       ` Daniel Vetter
2015-10-13 14:00         ` Maarten Lankhorst
2015-10-13 14:08           ` Daniel Vetter
2015-10-14  8:21             ` Ander Conselvan De Oliveira
2015-10-14 12:44               ` Daniel Vetter
2015-10-14 13:58                 ` Ander Conselvan De Oliveira
2015-10-14 15:03                   ` Daniel Vetter
2015-11-10 12:53                     ` Jani Nikula
2015-11-11  9:25                       ` Ander Conselvan De Oliveira
2015-11-11 14:21                         ` Jani Nikula
2015-11-11 16:41                           ` [PATCH] drm/i915: Clear DDI pll selection in intel_crtc_compute_config() Ander Conselvan de Oliveira
2015-11-11 18:27                           ` [PATCH] drm/i915: Reset dpll_hw_state when selecting a new pll on hsw Gabriel Feceoru
2015-11-12  8:28                             ` Lankhorst, Maarten
2015-11-12 18:35                               ` Gabriel Feceoru

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.