drm/i915/vlv: use W_SYNC_SHIFT for interlaced modes on VLV
Subsystems (2)
PATCH 1/1 drm/i915/vlv: use W_SYNC_SHIFT for interlaced modes on VLV
This makes HDMI testers happier on VLV platforms. It may be that we need it for any non-SVO platform, but I don't have any tests to back that up, so I'm leaving other pre-ILK platforms alone for now.
--- drivers/gpu/drm/i915/intel_display.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
drivers/gpu/drm/i915/intel_display.c +4 -1
@@ -5541,8 +5541,11 @@ static void i9xx_set_pipeconf(struct intel_crtc *intel_crtc) } } -if (!IS_GEN2 (dev) && +if (IS_VALLEYVIEW (dev) && intel_crtc->config.adjusted_mode.flags &DRM_MODE_FLAG_INTERLACE ) + pipeconf |=PIPECONF_INTERLACE_W_SYNC_SHIFT ; +else if (!IS_GEN2 (dev) && + intel_crtc->config.adjusted_mode.flags &DRM_MODE_FLAG_INTERLACE ) pipeconf |=PIPECONF_INTERLACE_W_FIELD_INDICATION ;else pipeconf |=PIPECONF_PROGRESSIVE ;
Signature · 1 line
1.7.9.5
Quoted 3 lines · Jesse Barnes
This makes HDMI testers happier on VLV platforms. It may be that we need it for any non-SVO platform, but I don't have any tests to back that up, so I'm leaving other pre-ILK platforms alone for now.
It looks like we should use PIPECONF_INTERLACE_W_FIELD_INDICATION only with sdvo on gen4+, and always on gen3 (simply because VSYNCSHIFT didn't yet exist).
Oh and we seem to misprogram VSYNCSHIFT on ILK+ with SDVO. The correct value would be htotal/2 instead of the midway point between hsync pulses. That's the value PIPECONF_INTERLACE_W_FIELD_INDICATION also implies, but ILK+ no longer has that option in PIPECONF, so VSYNCSHIFT must be progammed manually.
Quoted 31 lines
Tested-by "Clint Taylor <[email protected]>"Signed-off-by Jesse Barnes <[email protected]>--- drivers/gpu/drm/i915/intel_display.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)drivers/gpu/drm/i915/intel_display.c +4
-1@@ -5541,8 +5541,11 @@ static void i9xx_set_pipeconf(struct intel_crtc *intel_crtc) } } -if (!IS_GEN2 (dev) && +if (IS_VALLEYVIEW (dev) && intel_crtc->config.adjusted_mode.flags &DRM_MODE_FLAG_INTERLACE ) + pipeconf |=PIPECONF_INTERLACE_W_SYNC_SHIFT ; +else if (!IS_GEN2 (dev) && + intel_crtc->config.adjusted_mode.flags &DRM_MODE_FLAG_INTERLACE ) pipeconf |=PIPECONF_INTERLACE_W_FIELD_INDICATION ;else pipeconf |=PIPECONF_PROGRESSIVE ;Signature · 6 lines
1.7.9.5PIPECONF_PROGRESSIVE _______________________________________________ Intel-gfx mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/intel-gfx
Signature · 2 lines
Ville Syrjälä Intel OTC
Quoted 6 lines · Jesse Barnes
This makes HDMI testers happier on VLV platforms. It may be that we need it for any non-SVO platform, but I don't have any tests to back that up, so I'm leaving other pre-ILK platforms alone for now.
Tested-by "Clint Taylor <[email protected]>"Signed-off-by Jesse Barnes <[email protected]>
Quoted 28 lines
--- drivers/gpu/drm/i915/intel_display.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)drivers/gpu/drm/i915/intel_display.c +4
-1@@ -5541,8 +5541,11 @@ static void i9xx_set_pipeconf(struct intel_crtc *intel_crtc) } } -if (!IS_GEN2 (dev) && +if (IS_VALLEYVIEW (dev) && intel_crtc->config.adjusted_mode.flags &DRM_MODE_FLAG_INTERLACE ) + pipeconf |=PIPECONF_INTERLACE_W_SYNC_SHIFT ; +else if (!IS_GEN2 (dev) && + intel_crtc->config.adjusted_mode.flags &DRM_MODE_FLAG_INTERLACE ) pipeconf |=PIPECONF_INTERLACE_W_FIELD_INDICATION ;else pipeconf |=PIPECONF_PROGRESSIVE ;Signature · 6 lines
1.7.9.5 _______________________________________________ Intel-gfx mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/intel-gfx
Signature · 2 lines
Ville Syrjälä Intel OTC
Quoted 9 lines · Ville Syrjälä
Quoted 6 lines · Jesse Barnes
This makes HDMI testers happier on VLV platforms. It may be that we need it for any non-SVO platform, but I don't have any tests to back that up, so I'm leaving other pre-ILK platforms alone for now.
Tested-by "Clint Taylor <[email protected]>"Signed-off-by Jesse Barnes <[email protected]>Reviewed-by Ville Syrjälä <[email protected]>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=74964
Shouldn't this only be applied if sdvo or hdmi?
-Chris
Signature · 1 line
Chris Wilson, Intel Open Source Technology Centre
Quoted 6 lines · Chris Wilson
Quoted 5 lines · Ville Syrjälä
Quoted 4 lines · Jesse Barnes
This makes HDMI testers happier on VLV platforms. It may be that we need it for any non-SVO platform, but I don't have any tests to back that up, so I'm leaving other pre-ILK platforms alone for now.
Quoted 8 lines
Quoted 4 lines
Quoted 2 lines
Tested-by "Clint Taylor <[email protected]>"Signed-off-by Jesse Barnes <[email protected]>Reviewed-by Ville Syrjälä <[email protected]>Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=74964
Shouldn't this only be applied if sdvo or hdmi?
Thanks for patch, review and bz link, applied. Ville has some follow-up patches to rectify, I'll slurp them in now.
-Daniel
Signature · 3 lines
Daniel Vetter Software Engineer, Intel Corporation +41 (0) 79 365 57 48 - http://blog.ffwll.ch