drm/i915: Fix HSW sync flags to use pipe config adjusted_mode
Subsystems (2)
PATCH 1/1 drm/i915: Fix HSW sync flags to use pipe config adjusted_mode
From: Ville Syrjälä <[email protected]>
intel_ddi_enable_transcoder_func() picked the sync flags from crtc->mode instead of the pipe config adjusted_mode. Fix the problem and hopefully rid my HSW machine of the remaining pipe config warnings.
Signed-off-by Ville Syrjälä <[email protected]>
--- drivers/gpu/drm/i915/intel_ddi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/gpu/drm/i915/intel_ddi.c +2 -2
@@ -767,9 +767,9 @@ void intel_ddi_enable_transcoder_func(struct drm_crtc *crtc)BUG (); } -if (crtc->mode.flags &DRM_MODE_FLAG_PVSYNC ) +if (intel_crtc->config.adjusted_mode.flags &DRM_MODE_FLAG_PVSYNC ) temp |=TRANS_DDI_PVSYNC ; -if (crtc->mode.flags &DRM_MODE_FLAG_PHSYNC ) +if (intel_crtc->config.adjusted_mode.flags &DRM_MODE_FLAG_PHSYNC ) temp |=TRANS_DDI_PHSYNC ;if (cpu_transcoder ==TRANSCODER_EDP ) {
Signature · 6 lines
1.8.1.5 _______________________________________________ Intel-gfx mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/intel-gfx
Quoted 7 lines · On Tue, Sep 10, 2013 at 05:03:41PM +0300, [email protected] wrote:
From: Ville Syrjälä <[email protected]>
intel_ddi_enable_transcoder_func()picked the sync flags fromcrtc->modeinstead of the pipe configadjusted_mode. Fix the problem and hopefully rid my HSW machine of the remaining pipe config warnings.Signed-off-by Ville Syrjälä <[email protected]>
Make sense. Queued for -next, thanks for the patch. -Daniel
Signature · 3 lines
Daniel Vetter Software Engineer, Intel Corporation +41 (0) 79 365 57 48 - http://blog.ffwll.ch